File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
src/detection/displayserver Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.1.0 ) # Threads::Threads
2
2
3
3
project (fastfetch
4
- VERSION 1.4.2
4
+ VERSION 1.4.3
5
5
LANGUAGES C
6
6
)
7
7
Original file line number Diff line number Diff line change @@ -98,7 +98,15 @@ static void getKDE(FFDisplayServerResult* result)
98
98
{
99
99
ffStrbufSetS (& result -> deProcessName , "plasmashell" );
100
100
ffStrbufSetS (& result -> dePrettyName , "KDE Plasma" );
101
+
101
102
ffParsePropFile (FASTFETCH_TARGET_DIR_USR "/share/xsessions/plasma.desktop" , "X-KDE-PluginInfo-Version =" , & result -> deVersion );
103
+ if (result -> deVersion .length == 0 )
104
+ ffParsePropFile (FASTFETCH_TARGET_DIR_USR "/share/xsessions/plasma5.desktop" , "X-KDE-PluginInfo-Version =" , & result -> deVersion );
105
+ if (result -> deVersion .length == 0 )
106
+ ffParsePropFile (FASTFETCH_TARGET_DIR_USR "/share/wayland-sessions/plasmawayland.desktop" , "X-KDE-PluginInfo-Version =" , & result -> deVersion );
107
+ if (result -> deVersion .length == 0 )
108
+ ffParsePropFile (FASTFETCH_TARGET_DIR_USR "/share/wayland-sessions/plasmawayland5.desktop" , "X-KDE-PluginInfo-Version =" , & result -> deVersion );
109
+
102
110
applyBetterWM (result , getenv ("KDEWM" ));
103
111
}
104
112
You can’t perform that action at this time.
0 commit comments