commit 99b5e5b0111eb7367d355e81244c78ce0bcca71f parent f08b4e358cd78d6044db7d036336d80c6854054c Author: Scott Moreau <oreaus@gmail.com> Date: Fri, 3 Apr 2020 23:00:46 -0600 Add option to install wayfire desktop session file Diffstat:
| M | install.sh | | | 9 | +++++++++ |
| A | wayfire.desktop.in | | | 7 | +++++++ |
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/install.sh b/install.sh @@ -170,4 +170,13 @@ if [ $yn = Y ]; then $SUDO ninja -C build install fi +SESSIONS_DIR=/usr/share/wayland-sessions +ask_confirmation "Do you want to install wayfire.desktop to $SESSIONS_DIR/ [y/n]?" +if [ $yn = Y ]; then + cp $BUILDROOT/wayfire.desktop.in $BUILDROOT/wayfire.desktop + sed -i "s@^Exec.*@Exec=$PREFIX/bin/startwayfire@g" $BUILDROOT/wayfire.desktop + sed -i "s@^Icon.*@Icon=$PREFIX/share/wayfire/icons/wayfire.png@g" $BUILDROOT/wayfire.desktop + $SUDO cp $BUILDROOT/wayfire.desktop $SESSIONS_DIR +fi + echo "Installation done. Run $PREFIX/bin/startwayfire to start wayfire." diff --git a/wayfire.desktop.in b/wayfire.desktop.in @@ -0,0 +1,7 @@ +[Desktop Entry] +Version=0.4 +Name=Wayfire Session +Comment=Use this session to run Wayfire as your desktop environment +Exec=$PREFIX/bin/startwayfire +Icon=$PREFIX/share/wayfire/icons/wayfire.png +Type=Application