Xfce: fix duplicated launcher in xfce4-panel (fixes #139)

This commit is contained in:
Daniel Ruiz de Alegría 2022-06-02 18:19:37 +02:00
parent 6633eac355
commit 7c47f9d01b
No known key found for this signature in database
GPG Key ID: 59667A77E8BFCB6C
2 changed files with 20 additions and 0 deletions

View File

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

View File

@ -0,0 +1,11 @@
#!/bin/sh
# Kill xfconf to force reading the modified configuration
pkill -9 xfconf
sed -i -zE 's|(\s+<value[^\n]+)\1|<value type="string" value="xfce4-terminal-emulator.desktop"/>\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