Skip to content

Commit aa10d5a

Browse files
author
Suzanne Soy
committed
Create /usr/share/wayland-sessions/ if it does not exist
1 parent 5e9ee59 commit aa10d5a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ if [ $yn = Y ]; then
180180
$SUDO ninja -C build install
181181
fi
182182

183-
SESSIONS_DIR=/usr/share/wayland-sessions
183+
SESSIONS_DIR=/usr/share/wayland-sessions/
184184
SUDO_FOR_SESSIONS=sudo
185185
if [ -w $SESSIONS_DIR ] || ! which sudo > /dev/null; then
186186
SUDO_FOR_SESSIONS=
@@ -190,6 +190,7 @@ if [ $yn = Y ]; then
190190
cp $BUILDROOT/wayfire.desktop.in $BUILDROOT/wayfire.desktop
191191
sed -i "s@^Exec.*@Exec=$PREFIX/bin/startwayfire@g" $BUILDROOT/wayfire.desktop
192192
sed -i "s@^Icon.*@Icon=$PREFIX/share/wayfire/icons/wayfire.png@g" $BUILDROOT/wayfire.desktop
193+
sudo mkdir -p $SESSIONS_DIR
193194
$SUDO_FOR_SESSIONS install -m 644 $BUILDROOT/wayfire.desktop $SESSIONS_DIR
194195
fi
195196

0 commit comments

Comments
 (0)