From b42220d344c5cd85d4f5a3dda82b1e760afcef89 Mon Sep 17 00:00:00 2001 From: Florian Wagner Date: Mon, 26 Jun 2017 15:05:54 +0200 Subject: [PATCH] New package: dot-xsession-0.1-1. Closes: #6854 [via git-merge-pr] --- srcpkgs/dot-xsession/files/dot-xsession | 11 +++++++++++ srcpkgs/dot-xsession/files/dot-xsession.desktop | 6 ++++++ srcpkgs/dot-xsession/template | 15 +++++++++++++++ 3 files changed, 32 insertions(+) create mode 100755 srcpkgs/dot-xsession/files/dot-xsession create mode 100644 srcpkgs/dot-xsession/files/dot-xsession.desktop create mode 100644 srcpkgs/dot-xsession/template diff --git a/srcpkgs/dot-xsession/files/dot-xsession b/srcpkgs/dot-xsession/files/dot-xsession new file mode 100755 index 00000000000..b0a1a42abfd --- /dev/null +++ b/srcpkgs/dot-xsession/files/dot-xsession @@ -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 diff --git a/srcpkgs/dot-xsession/files/dot-xsession.desktop b/srcpkgs/dot-xsession/files/dot-xsession.desktop new file mode 100644 index 00000000000..1c455f1d023 --- /dev/null +++ b/srcpkgs/dot-xsession/files/dot-xsession.desktop @@ -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 diff --git a/srcpkgs/dot-xsession/template b/srcpkgs/dot-xsession/template new file mode 100644 index 00000000000..b75b58f68eb --- /dev/null +++ b/srcpkgs/dot-xsession/template @@ -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 " +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 +}