Skip to content

Commit

Permalink
Do not set obsolete and useless environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
plfiorini committed Dec 30, 2023
1 parent ff897a5 commit 22b8935
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/manager/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,9 @@ static void setupEnvironment()
qputenv("XDG_SESSION_DESKTOP", "liri");

// Set environment for the programs we will launch from here
#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)
qputenv("QT_QPA_PLATFORM", "wayland;xcb");
#else
qputenv("QT_QPA_PLATFORM", "wayland");
#endif
qputenv("QT_QPA_PLATFORMTHEME", "liri");
qputenv("QT_WAYLAND_SHELL_INTEGRATION", "xdg-shell");
qputenv("QT_QUICK_CONTROLS_1_STYLE", "Flat");
qputenv("QT_QUICK_CONTROLS_STYLE", "material");
qputenv("QT_WAYLAND_DECORATION", "material");
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
qputenv("XCURSOR_THEME", "Paper");
qunsetenv("QT_SCALE_FACTOR");
qunsetenv("QT_SCREEN_SCALE_FACTORS");
}

int main(int argc, char *argv[])
Expand Down

0 comments on commit 22b8935

Please sign in to comment.