commit afeacd015fa52caeddb514523ce1598ed6e79d0a
parent b46d7f5f99e9e11cd82f75f712fe6ac3df1c4b90
Author: Scott Moreau <oreaus@gmail.com>
Date: Wed, 17 Jun 2020 09:12:59 -0600
startwayfire: Set XDG_DATA_DIRS if unset
According to the xdg spec, "If XDG_DATA_DIRS is either not set or empty,
a value equal to /usr/local/share/:/usr/share/ should be used.". Without
this, if XDG_DATA_DIRS is unset, it may prevent gtk applications from starting.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/start_wayfire.sh.in b/start_wayfire.sh.in
@@ -1,5 +1,8 @@
#!/bin/bash
+# if $XDG_DATA_DIRS is not set, set it to the spec recommended value
+[ -z "$XDG_DATA_DIRS" ] && export XDG_DATA_DIRS="/usr/local/share:/usr/share"
+
# path for wf-config and wlroots
LD_LIBRARY_PATH=$LD_LIBRARY_PATH
# path is needed for wf-shell clients