From e5373f8fd04dd356f631afa09ce48a6957fb84ae Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 7 May 2013 23:29:17 +0000 Subject: use drakx-update-background instead of broken perl one-liner (fails when resolution is not set in Xorg.conf) --- scripts/switch-themes | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/switch-themes b/scripts/switch-themes index 9f8b6c3..91b9fe2 100755 --- a/scripts/switch-themes +++ b/scripts/switch-themes @@ -60,9 +60,7 @@ function update () { /usr/sbin/plymouth-set-default-theme $theme fi - [ -f /usr/lib/libDrakX/Xconfig/resolution_and_depth.pm ] && perl -I/usr/lib/libDrakX -MXconfig::xfree -MXconfig::resolution_and_depth -e 'Xconfig::resolution_and_depth::set_default_background(Xconfig::xfree->read->get_resolution)' - - + [ -x /usr/sbin/drakx-update-background ] && /usr/sbin/drakx-update-background } function switch_theme () { -- cgit v1.2.1