New package: dot-xsession-0.1-1.

Closes: #6854 [via git-merge-pr]
This commit is contained in:
Florian Wagner 2017-06-26 15:05:54 +02:00 committed by Michael Aldridge
parent 79c16c5fa6
commit b42220d344
3 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#!/bin/sh
exit_msg() {
xmessage -buttons Exit "$@"
exit 1
}
[ ! -e ~/.xsession ] && exit_msg "File ~/.xsession doesn't exist."
[ ! -x ~/.xsession ] && exit_msg "File ~/.xsession not executable."
exec ~/.xsession

View file

@ -0,0 +1,6 @@
[Desktop Entry]
Name=~/.xsession
Comment=Run the user's ~/.xsession if it exists
Exec=/usr/libexec/dot-xsession
TryExec=/usr/libexec/dot-xsession
Type=XSession

View file

@ -0,0 +1,15 @@
# Template file for 'dot-xsession'
pkgname=dot-xsession
version=0.1
revision=1
noarch=yes
depends="xmessage"
short_desc="XSession file to run the users ~/.xsession"
maintainer="Florian Wagner <florian@wagner-flo.net>"
license="Public domain"
homepage="http://www.voidlinux.eu"
do_install() {
vinstall ${FILESDIR}/dot-xsession.desktop 644 usr/share/xsessions
vinstall ${FILESDIR}/dot-xsession 755 usr/libexec
}