54-menu 902 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. set -e
  3. echo "Registering and tweaking menus"
  4. for app in tails-installer-launcher tails-persistence-delete tails-persistence-setup tails-about tails-documentation; do
  5. xdg-desktop-menu install --novendor \
  6. /usr/share/desktop-directories/Tails.directory \
  7. "/usr/share/applications/${app}.desktop"
  8. done
  9. rm \
  10. /usr/share/applications/gnome-online-accounts-panel.desktop \
  11. /usr/share/applications/laptop-mode-tools.desktop \
  12. /usr/share/applications/sniff.desktop \
  13. /usr/share/applications/system-config-printer.desktop
  14. sed -i'' --regexp-extended 's,^Exec=pidgin$,Exec=/usr/local/bin/pidgin,' \
  15. /usr/share/applications/pidgin.desktop
  16. # Run OpenPGP Applet automatically, but do not show it in the Applications menu
  17. rm /etc/xdg/autostart/openpgp-applet.desktop
  18. mv /usr/share/applications/openpgp-applet.desktop \
  19. /etc/xdg/autostart/
  20. xdg-desktop-menu forceupdate