mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-09 13:32:55 +02:00
parent
79c16c5fa6
commit
b42220d344
3 changed files with 32 additions and 0 deletions
11
srcpkgs/dot-xsession/files/dot-xsession
Executable file
11
srcpkgs/dot-xsession/files/dot-xsession
Executable 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
|
6
srcpkgs/dot-xsession/files/dot-xsession.desktop
Normal file
6
srcpkgs/dot-xsession/files/dot-xsession.desktop
Normal 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
|
15
srcpkgs/dot-xsession/template
Normal file
15
srcpkgs/dot-xsession/template
Normal 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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue