diff options
Diffstat (limited to 'desktop/qtile/qtile.SlackBuild')
-rw-r--r-- | desktop/qtile/qtile.SlackBuild | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/desktop/qtile/qtile.SlackBuild b/desktop/qtile/qtile.SlackBuild index a7d0c1da8e..1914fa644e 100644 --- a/desktop/qtile/qtile.SlackBuild +++ b/desktop/qtile/qtile.SlackBuild @@ -26,8 +26,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=qtile -VERSION=${VERSION:-0.21.0} -BUILD=${BUILD:-3} +VERSION=${VERSION:-0.22.1} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -89,11 +89,15 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr mkdir -p $PKG/etc/X11/xinit install -m 0755 $CWD/xinitrc.$PRGNAM $PKG/etc/X11/xinit/xinitrc.$PRGNAM -# Install desktop file +# Install Xsession file mkdir -p $PKG/usr/share/xsessions install -D -m644 resources/$PRGNAM.desktop $PKG/usr/share/xsessions/$PRGNAM.desktop -mkdir -p $PKG/usr/share/wayland-sessions -install -D -m644 resources/$PRGNAM-wayland.desktop $PKG/usr/share/wayland-sessions/$PRGNAM-wayland.desktop + +# If pywlroots is installed, install Wayland session file +if $(python3 -c 'import pkgutil; exit(not pkgutil.find_loader("wlroots"))'); then + mkdir -p $PKG/usr/share/wayland-sessions + install -D -m644 resources/$PRGNAM-wayland.desktop $PKG/usr/share/wayland-sessions/$PRGNAM-wayland.desktop +fi # example for default config file maybe installed ~/$USER/.config/qtile CONFIG="libqtile/resources/default_config.py" |