We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c34f99 commit 7107d08Copy full SHA for 7107d08
src/detection/de/de_linux.c
@@ -12,11 +12,18 @@
12
#include <ctype.h>
13
#ifdef __FreeBSD__
14
#include <paths.h>
15
+ #ifndef _PATH_LOCALBASE
16
+ #define _PATH_LOCALBASE "/usr/local"
17
+ #endif
18
+#elif __OpenBSD__
19
20
+#elif __NetBSD__
21
+ #define _PATH_LOCALBASE "/usr/pkg"
22
#endif
23
24
static void getKDE(FFstrbuf* result, FFDEOptions* options)
25
{
-#ifdef __FreeBSD__
26
+#ifdef _PATH_LOCALBASE
27
ffParsePropFile(_PATH_LOCALBASE "/share/wayland-sessions/plasma.desktop", "X-KDE-PluginInfo-Version =", result);
28
if(result->length == 0)
29
ffParsePropFile(_PATH_LOCALBASE "/share/xsessions/plasmax11.desktop", "X-KDE-PluginInfo-Version =", result);
0 commit comments