Skip to content

Commit afeacd0

Browse files
committed
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.
1 parent b46d7f5 commit afeacd0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

start_wayfire.sh.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
# if $XDG_DATA_DIRS is not set, set it to the spec recommended value
4+
[ -z "$XDG_DATA_DIRS" ] && export XDG_DATA_DIRS="/usr/local/share:/usr/share"
5+
36
# path for wf-config and wlroots
47
LD_LIBRARY_PATH=$LD_LIBRARY_PATH
58
# path is needed for wf-shell clients

0 commit comments

Comments
 (0)