Skip to content

Conversation

ygerlach
Copy link
Contributor

@ygerlach ygerlach commented Oct 5, 2025

instead of using env in the timeshift-launcher like proposed in #384, the timeshift process itself now searches its parents until it finds a process that is not owned by the same user as timeshift (root) and then copies interesting environment variables from there. This allows pkexec to handle the command correctly.

This should fix: #452
And: #450

It might also be interesting for #459 as it allows us to use the original $DBUS_SESSION_BUS_ADDRESS

I know this kinda breaks some principles. But i guess that is the price you have to pay if you want to run a root process in a user session. Maybe timeshift should be moved to a server/client approach (similar to modemmanager) where we have a daemon that is root and a client that can be run by a user and then communicate using system-dbus objects. That would also allow us to have multiple timeshift actions running at the same time. But i guess that would be a bigger topic for another time.

instead of using env in the timeshift-launcher like proposed in linuxmint#384, the timeshift process itself now searches its parents until it finds a process that is not owned by the same user as timeshift (root) and then copies interesting environment variables from there. This allows pkexec to handle the command correctly.
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.

Authentication Window contains path information Mint 22.2

1 participant