[X11] Run gnome-settings-daemon only if it exists
This commit is contained in:
parent
f5c9cbd83b
commit
6564c283cd
@ -2,6 +2,10 @@ function command_exists {
|
||||
hash "$1" 2>/dev/null 1>/dev/null
|
||||
}
|
||||
|
||||
function run_if_exists {
|
||||
command_exists "$@" && "$@"
|
||||
}
|
||||
|
||||
function shell_contains () {
|
||||
local e
|
||||
for e in "${@:2}"; do
|
||||
|
@ -1 +1,2 @@
|
||||
source "$HOME/.lib/shellenv.sh"
|
||||
run_if_exists gnome-settings-daemon &
|
||||
|
Loading…
Reference in New Issue
Block a user