diff --git a/etc/skel/.config/autostart/fix-duplicated-xfce-panel-launcher.desktop b/etc/skel/.config/autostart/fix-duplicated-xfce-panel-launcher.desktop new file mode 100644 index 00000000..4ddd8406 --- /dev/null +++ b/etc/skel/.config/autostart/fix-duplicated-xfce-panel-launcher.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Name=Fix bug duplicated launcher in xfce4-panel +Exec=/usr/share/kali-themes/fix-duplicated-xfce-panel-launcher.sh +OnlyShowIn=XFCE; +RunHook=1 +StartupNotify=false +Terminal=false diff --git a/share/kali-themes/fix-duplicated-xfce-panel-launcher.sh b/share/kali-themes/fix-duplicated-xfce-panel-launcher.sh new file mode 100755 index 00000000..0fb58de2 --- /dev/null +++ b/share/kali-themes/fix-duplicated-xfce-panel-launcher.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# Kill xfconf to force reading the modified configuration +pkill -9 xfconf + + +sed -i -zE 's|(\s+\1|' \ + ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml + +# Remove autorun file after first run +rm -f ~/.config/autostart/fix-duplicated-xfce-panel-launcher.desktop