How do I autostart an application in Gnome when a volume is mounted?
5
votes
3
answers
3409
views
According to Gnome's Desktop Application Autostart Specification , I should be able to have a program execute simply by naming it any of ".autorun", "autorun", or "autorun.sh". None of these seem to work: I get a prompt from nautilus-autorun-software asking if I want to let it run, I say "Run", and it results in a dialog that says "Error autorunning software: Cannot find the autorun program". Is it a bug or am I not doing something correctly?
The autorun file contains the following:
#! /bin/sh
gnome-terminal -x sh -c '~/bin/podcatcher/copypodcasts.sh; echo Done!; read pause'
It works if I manually run the autorun file.
The filesystem is fat, here's the mtab entry:
/dev/sdd1 /media/disk vfat rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush 0 0
Asked by Shawn J. Goff
(47179 rep)
Nov 30, 2010, 01:47 PM
Last activity: Dec 1, 2019, 01:53 PM
Last activity: Dec 1, 2019, 01:53 PM