summaryrefslogtreecommitdiff
path: root/kanotix-reset-plasma-panel
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-05-18 05:56:33 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2012-05-18 05:56:33 +0200
commitd18ec281cdcf2851180de54620206f394fda255e (patch)
tree323a5773652937eef705869e5bf29136cce72fa1 /kanotix-reset-plasma-panel
parente42c2f330d1a997433323977734a26d3ab99f755 (diff)
downloadetcskel-kanotix-d18ec281cdcf2851180de54620206f394fda255e.zip
etcskel-kanotix-d18ec281cdcf2851180de54620206f394fda255e.tar.gz
import changes from debian package version 2.0.0
Diffstat (limited to 'kanotix-reset-plasma-panel')
-rwxr-xr-xkanotix-reset-plasma-panel10
1 files changed, 9 insertions, 1 deletions
diff --git a/kanotix-reset-plasma-panel b/kanotix-reset-plasma-panel
index 4974b52..79dbf9f 100755
--- a/kanotix-reset-plasma-panel
+++ b/kanotix-reset-plasma-panel
@@ -1,7 +1,15 @@
#!/bin/sh
+if [ "$(id -u)" = "0" ]; then
+ echo "Error: Do NOT run this script as root!" >&2
+ exit 1
+fi
+if [ -z "$DISPLAY" ]; then
+ echo "Error: This script does NOT run without X!" >&2
+ exit 2
+fi
echo "creating backup of ~/.kde/share/config/plasma-desktop-appletsrc"
rm -f ~/.kde/share/config/plasma-desktop-appletsrc.bak
cp ~/.kde/share/config/plasma-desktop-appletsrc ~/.kde/share/config/plasma-desktop-appletsrc.bak
echo "loading panel reset script to plasma desktop console"
-qdbus org.kde.plasma-desktop /MainApplication loadScriptInInteractiveConsole /usr/share/kde4/apps/plasma-desktop/updates/01-kanotix-default-setup.js 2> /dev/null
+qdbus org.kde.plasma-desktop /MainApplication loadScriptInInteractiveConsole /usr/share/kde-kanotix-settings/share/apps/plasma-desktop/updates/02-kanotix-default-setup.js 2> /dev/null
echo "to start plasma panel reset, press execute button"