Concession: Update, polish up startup tasks a bit

This commit is contained in:
Salt 2018-10-21 15:11:14 -05:00
parent 84289484be
commit b1d5d069dc
3 changed files with 25 additions and 12 deletions

@ -1 +1 @@
Subproject commit 20652520191813acdbd6f8afeb190b63bec02eb8
Subproject commit eb590f5f6a20c5e09f7c97c2dfafbb3a6586c718

View File

@ -1,11 +0,0 @@
#! /bin/sh
#
# 00_dbus-launch.sh
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
#
# Distributed under terms of the MIT license.
#
tsk_log "Launching dbus"
export $(dbus-launch)

View File

@ -0,0 +1,24 @@
#! /bin/sh
#
# 01_ksmserver.sh
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
#
# Distributed under terms of the MIT license.
#
main() {
if ! which ksmserver > /dev/null 2>&1; then
tsk_log "Could not find ksmserver" 2
return 50
fi
if pgrep -U "$UID" ksmserver > /dev/null 2>&1; then
tsk_log "ksmserver is already running" 2
return 51
fi
ksmserver -w "/bin/true" --no-lockscreen &
sleep 1
export $(dbus-launch)
}
main $@