mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
ratpoison: convert to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
3affe19857
commit
c3768ee397
@ -1,37 +0,0 @@
|
|||||||
################################################################################
|
|
||||||
# Copyright (C) 2009-2010 OpenELEC.tv
|
|
||||||
# http://www.openelec.tv
|
|
||||||
#
|
|
||||||
# This Program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2, or (at your option)
|
|
||||||
# any later version.
|
|
||||||
#
|
|
||||||
# This Program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
|
||||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
|
||||||
# http://www.gnu.org/copyleft/gpl.html
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
# starting windowmanager
|
|
||||||
#
|
|
||||||
# runlevels: openelec
|
|
||||||
|
|
||||||
(
|
|
||||||
progress "starting Windowmanager"
|
|
||||||
|
|
||||||
# waiting for Xorg to start
|
|
||||||
wait_for_xorg
|
|
||||||
|
|
||||||
# starting ratpoison
|
|
||||||
if [ -f /storage/.config/ratpoisonrc ]; then
|
|
||||||
exec ratpoison -f /storage/.config/ratpoisonrc -d :0.0 > /dev/null 2>&1
|
|
||||||
else
|
|
||||||
exec ratpoison -d :0.0 > /dev/null 2>&1
|
|
||||||
fi
|
|
||||||
)&
|
|
@ -54,3 +54,7 @@ post_makeinstall_target() {
|
|||||||
mkdir -p $INSTALL/etc
|
mkdir -p $INSTALL/etc
|
||||||
cp $PKG_DIR/config/ratpoisonrc $INSTALL/etc
|
cp $PKG_DIR/config/ratpoisonrc $INSTALL/etc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
enable_service ratpoison.service
|
||||||
|
}
|
||||||
|
13
packages/x11/other/ratpoison/system.d/ratpoison.service
Normal file
13
packages/x11/other/ratpoison/system.d/ratpoison.service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Ratpoison Window Manager
|
||||||
|
After=xorg-server.service
|
||||||
|
Requires=graphical.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Environment=DISPLAY=:0.0
|
||||||
|
ExecStart=/bin/sh -c 'sleep 1; exec /usr/bin/ratpoison'
|
||||||
|
KillMode=process
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical.target
|
Loading…
x
Reference in New Issue
Block a user