commit 723a413b88e53d3bd277fec0da36a5e88ce3f2af
parent 99b5e5b0111eb7367d355e81244c78ce0bcca71f
Author: Scott Moreau <oreaus@gmail.com>
Date: Fri, 3 Apr 2020 23:08:33 -0600
Set XDG_DATA_DIRS to find .desktop files installed to
This effectively make wcm appear in wf-panel menu widget.
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/install.sh b/install.sh
@@ -157,6 +157,7 @@ cp $BUILDROOT/start_wayfire.sh.in $BUILDROOT/start_wayfire.sh
if [ ${PREFIX} != '/usr' ]; then
sed -i "s@^LD_.*@export LD_LIBRARY_PATH=${PREFIX}/${DEST_LIBDIR}:\$LD_LIBRARY_PATH@g" $BUILDROOT/start_wayfire.sh
sed -i "s@^PATH.*@export PATH=${PREFIX}/bin:\$PATH@g" $BUILDROOT/start_wayfire.sh
+ sed -i "s@^XDG_.*@export XDG_DATA_DIRS=${PREFIX}/share:\$XDG_DATA_DIRS@g" $BUILDROOT/start_wayfire.sh
fi
chmod 755 $BUILDROOT/start_wayfire.sh
$SUDO cp $BUILDROOT/start_wayfire.sh $PREFIX/bin/startwayfire
diff --git a/start_wayfire.sh.in b/start_wayfire.sh.in
@@ -4,6 +4,8 @@
LD_LIBRARY_PATH=$LD_LIBRARY_PATH
# path is needed for wf-shell clients
PATH=$PATH
+# path to find .desktop files like wcm
+XDG_DATA_DIRS=$XDG_DATA_DIRS
if [ -d "$XDG_DATA_HOME" ]; then
DEFAULT_LOG_DIR=$XDG_DATA_HOME/wayfire