mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
a
This commit is contained in:
parent
04a964e45f
commit
7d65fadbc7
1 changed files with 6 additions and 3 deletions
|
|
@ -62,9 +62,13 @@
|
|||
#ifdef __linux__
|
||||
void desktopEnvironmentInit(){
|
||||
printf("[desktopEnvironmentInit] desktopEnvironmentInit()\n");
|
||||
if (desktop != "uninitialized") {
|
||||
if (desktop != "uninitialized")
|
||||
return;
|
||||
|
||||
desktop = shState->oneshot().desktopEnv;
|
||||
if (desktop != "nope") {
|
||||
#ifdef DEBUG
|
||||
printf("[desktopEnvironmentInit] Running on standalone Window Manager?Trying identify configuration...\n");
|
||||
printf("[desktopEnvironmentInit] Running on standalone Window Manager?Trying identify configuration...\n");
|
||||
#endif
|
||||
// If Nitrogen wallpaper manager and feh is aviable we can just use nitrogen --restore command and feh --bg-scale:P
|
||||
if (FILE *file = fopen("/usr/bin/nitrogen", "r")){
|
||||
|
|
@ -85,7 +89,6 @@
|
|||
return;
|
||||
}
|
||||
}
|
||||
desktop = shState->oneshot().desktopEnv;
|
||||
if (desktop == "cinnamon" || desktop == "gnome" || desktop == "mate" || desktop == "deepin") {
|
||||
if (desktop == "cinnamon" || desktop == "gnome" || desktop == "deepin") {
|
||||
if (desktop == "cinnamon") bgsetting = g_settings_new("org.cinnamon.desktop.background");
|
||||
|
|
|
|||
Loading…
Reference in a new issue