summaryrefslogtreecommitdiff
path: root/kanotix-reset-plasma-panel
blob: 79dbf9f2d45f657f6f603cf4f2292ca098e2401e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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/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"