Skip to content

Conversation

@ygerlach
Copy link
Contributor

@ygerlach ygerlach commented Oct 5, 2025

Fixes #457

I now overwrite the default behavior of the AboutDialog with our own xdg_open, that uses the sudo or pkexec calling user to drop into his environment.
I am currently guessing the DBUS_SESSION_BUS_ADDRESS (firefox seems to need this to find its open processes). Maybe it would be a good idea to copy the entire env from the parent of pkexec or sudo, when using xdg-open.

I have also removed some unused user functions, as they can be largely reimplemented with a single line of Posix.getpwuid(uid)?.pw_dir or similar if we ever need something like that again.

Comment on lines -61 to -67

int uid = -1;
string cmd = "id -u";
string std_out, std_err;
exec_sync(cmd, out std_out, out std_err);
if ((std_out != null) && (std_out.length > 0)){
uid = int.parse(std_out);
Copy link
Contributor Author

@ygerlach ygerlach Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grafik

This subprocess could have been a syscall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Links in the "About Timeshift-gtk" window do not open

1 participant