Skip to content

Specify the environment variables named DISPLAY and XAUTHORITY #384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2025

Conversation

Shyliuli
Copy link
Contributor

@Shyliuli Shyliuli commented Jan 7, 2025

This PR introduces updates to ensure proper handling of the DISPLAY and XAUTHORITY environment variables when executing commands with pkexec.

@Shyliuli
Copy link
Contributor Author

Shyliuli commented Jan 7, 2025

pkexec removes most environment variables, which can prevent Timeshift from starting on some distributions. For example: https://www.reddit.com/r/voidlinux/comments/t1f2it/timeshift_gui_error_gtkwarning_cannot_open_display/?rdt=35784

@mtwebster mtwebster merged commit 98af104 into linuxmint:master Jul 28, 2025
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.

2 participants