File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 10
10
#include "util/stringUtils.h"
11
11
12
12
#include <ctype.h>
13
+ #ifdef __FreeBSD__
14
+ #include <paths.h>
15
+ #endif
13
16
14
17
static void getKDE (FFstrbuf * result , FFDEOptions * options )
15
18
{
16
- ffParsePropFileValues (FASTFETCH_TARGET_DIR_USR "/share/wayland-sessions/plasma.desktop" , 1 , (FFpropquery []) {
17
- {"X-KDE-PluginInfo-Version =" , result }
18
- });
19
+ #ifdef __FreeBSD__
20
+ ffParsePropFile (_PATH_LOCALBASE "/share/wayland-sessions/plasma.desktop" , "X-KDE-PluginInfo-Version =" , result );
19
21
if (result -> length == 0 )
20
- {
21
- ffParsePropFileValues (FASTFETCH_TARGET_DIR_USR "/share/xsessions/plasmax11.desktop" , 1 , (FFpropquery []) {
22
- {"X-KDE-PluginInfo-Version =" , result }
23
- });
24
- }
22
+ ffParsePropFile (_PATH_LOCALBASE "/share/xsessions/plasmax11.desktop" , "X-KDE-PluginInfo-Version =" , result );
23
+ #else
24
+ ffParsePropFile (FASTFETCH_TARGET_DIR_USR "/share/wayland-sessions/plasma.desktop" , "X-KDE-PluginInfo-Version =" , result );
25
+ if (result -> length == 0 )
26
+ ffParsePropFile (FASTFETCH_TARGET_DIR_USR "/share/xsessions/plasmax11.desktop" , "X-KDE-PluginInfo-Version =" , result );
27
+ #endif
28
+
25
29
if (result -> length == 0 )
26
30
ffParsePropFileData ("xsessions/plasma.desktop" , "X-KDE-PluginInfo-Version =" , result );
27
31
if (result -> length == 0 )
You can’t perform that action at this time.
0 commit comments