mirror of
https://github.com/tuxedocomputers/tuxedo-touchpad-switch.git
synced 2025-01-18 11:41:10 +01:00
Root does not help with XDG variables
This commit is contained in:
parent
5d2875e2b0
commit
152dffd4b3
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ int main() {
|
|||
|
||||
char *xdg_current_desktop = getenv("XDG_CURRENT_DESKTOP");
|
||||
if (!xdg_current_desktop) {
|
||||
cout << "Your desktop environment could not be determined. Maybe running as root?" << endl;
|
||||
cout << "Your desktop environment could not be determined." << endl;
|
||||
gracefull_exit(SIGTERM);
|
||||
}
|
||||
else if (strstr(xdg_current_desktop, "GNOME")) {
|
||||
|
|
Loading…
Reference in a new issue