[X11] Run gnome-settings-daemon only if it exists

This commit is contained in:
Ivan Malison 2016-09-19 16:46:35 -07:00
parent f5c9cbd83b
commit 6564c283cd
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -1 +1,2 @@
source "$HOME/.lib/shellenv.sh"
run_if_exists gnome-settings-daemon &