Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
Xsession.d/99mdm: Set default XDG_DATA_DIRS if the variable is not set
Browse files Browse the repository at this point in the history
In Betsy, XDG_DATA_DIRS isn't set. The responsibility falls on the DM.
Without this, the session can fail (tested with MATE).
  • Loading branch information
clefebvre committed Nov 9, 2016
1 parent c87627b commit bb3e3cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion files/etc/X11/Xsession.d/99mdm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
# using a different display manager.

if [ -n "$MDMSESSION" ]; then
XDG_DATA_DIRS="$XDG_DATA_DIRS":"/usr/share/mdm/"
if [ -n "$XDG_DATA_DIRS" ]; then
XDG_DATA_DIRS="$XDG_DATA_DIRS":"/usr/share/mdm/"
else
XDG_DATA_DIRS="/usr/local/share/:/usr/share/:/usr/share/mdm/"
fi
export XDG_DATA_DIRS
fi

0 comments on commit bb3e3cf

Please sign in to comment.