When I have edited the Gnome menu with alacarte as root, I do #!/bin/sh mkdir -p /etc/my-gnome-menus rm -rf /etc/my-gnome-menus/* cp -r /root/.config/menus /etc/my-gnome-menus/ cp -r ...
how do you create a menu item in the Ubuntu applications menu which changes the current directory before running a shell script?
I'm looking to add a menu item to the applications menu in Ubuntu which will run a shell script. In order for the shell script to work I need to cd into the directory which contains the shell script. ...