Skip to content

Fixed issue #183.#192

Merged
Splayer0 merged 12 commits into
Hogjects:devfrom
Radiump123:dev
May 10, 2026
Merged

Fixed issue #183.#192
Splayer0 merged 12 commits into
Hogjects:devfrom
Radiump123:dev

Conversation

@Radiump123
Copy link
Copy Markdown
Contributor

@Radiump123 Radiump123 commented May 9, 2026

Fixed issue #183. To make @Hog185 and @Splayer0 happy, I'll just go and explain how this works :D
So, I made a small worker that starts before PKEXEC, logs XDG_DOWNLOAD_DIR (or ~/ if XDG_DOWNLOAD_DIR doesn't exist) to a variable, passes it to the app running as root before exiting in nanoseconds.
The file manager from the GUI automatically takes the content of the variable as default directory.
Made sure utils.py doesn't erase the variable.
I also made tests (including edge cases), ruff-formatted and tested.
No AI used.

All of the commits before 459502e were deleted, so don't worry about them.

And in 00b2c94's commit message, I meant @Splayer0.

R. Larocque and others added 11 commits May 5, 2026 09:14
 with '' will be ignored, and an empty message aborts the commit.

 On branch dev
 Your branch is up to date with 'origin/dev'.

 Changes to be committed:
	new file:   build-musl.sh
	new file:   build.sh
… lignes

 commençant par '' seront ignorées, et un message vide abandonne la validation.

 Sur la branche dev
 Votre branche est à jour avec 'origin/dev'.

 Modifications qui seront validées :
	supprimé :        build-musl.sh
	supprimé :        build.sh
 Veuillez saisir le message de validation pour vos modifications. Les lignes
 commençant par '' seront ignorées, et un message vide abandonne la validation.

 Sur la branche dev
 Votre branche est à jour avec 'origin/dev'.

 Modifications qui seront validées :
	nouveau fichier : deps.txt
… lignes

 commençant par '' seront ignorées, et un message vide abandonne la validation.

 Sur la branche dev
 Votre branche est en avance sur 'origin/dev' de 1 commit.
   (utilisez "git push" pour publier vos commits locaux)

 Modifications qui seront validées :
	modifié :         src/lufus/writing/install_ventoy.py
	modifié :         src/lufus/writing/windows/flash.py
	modifié :         src/lufus/writing/windows/tweaks.py
…st go and explain how this works :D

So, I made a small worker that starts before PKEXEC, logs XDG_DOWNLOAD_DIR (or ~/ if XDG_DOWNLOAD_DIR doesn't exist) to a variable, passes it to the app running as root before exiting in nanoseconds.
The file manager from the GUI automatically takes the content of the variable as default directory.
Made sure utils.py doesn't erase the variable.
I also made tests (including edge cases), ruff-formatted and tested.

 Sur la branche dev
 Votre branche est à jour avec 'origin/dev'.

 Modifications qui seront validées :
	modifié :         src/lufus/gui/gui.py
	modifié :         src/lufus/gui/start_gui.py
	nouveau fichier : src/lufus/user_paths.py
	modifié :         src/lufus/utils.py
	nouveau fichier : tests/test_user_paths.py
P.S. From the provious commit and this one, NO AI USED!
 Sur la branche dev
 Votre branche est à jour avec 'origin/dev'.

 Modifications qui seront validées :
	modifié :         .github/workflows/ci.yml
@Radiump123 Radiump123 marked this pull request as ready for review May 9, 2026 19:02
@Radiump123 Radiump123 closed this May 9, 2026
 Veuillez saisir le message de validation pour vos modifications. Les lignes
 commençant par '' seront ignorées, et un message vide abandonne la validation.

 Sur la branche dev
 Votre branche est à jour avec 'origin/dev'.

 Modifications qui seront validées :
	modifié :         install_ventoy.py
	modifié :         windows/flash.py
	modifié :         windows/tweaks.py
@Radiump123 Radiump123 reopened this May 9, 2026
@Radiump123
Copy link
Copy Markdown
Contributor Author

There were some changes I forgot to remove from wrong commits, they are fixed now!

@Radiump123
Copy link
Copy Markdown
Contributor Author

Radiump123 commented May 9, 2026

Next thing I will do after this PR is merged, I will start to remove subprocesses and replace them by native Python utils. I'll also try to fix status bar.

@Splayer0
Copy link
Copy Markdown
Collaborator

LGTM

@Splayer0 Splayer0 merged commit a398c48 into Hogjects:dev May 10, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants