One small change, the Exec line needs one dummy argument because bash -c fills the command line arguments starting from $0:
Exec=bash -c 'for i in "$@" ; do echo "$i" >> ${HOME}/.safe-rm; done' dummy %F ** Attachment removed: "safe-rm.desktop" https://bugs.launchpad.net/ubuntu/+source/safe-rm/+bug/1070368/+attachment/3410427/+files/safe-rm.desktop ** Attachment added: "safe-rm.desktop" https://bugs.launchpad.net/ubuntu/+source/safe-rm/+bug/1070368/+attachment/3410432/+files/safe-rm.desktop -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070368 Title: safe-rm .desktop file for right-click adding action To manage notifications about this bug go to: https://bugs.launchpad.net/safe-rm/+bug/1070368/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs