On 09/01/2009 07:07 AM, Girish Venkatachalam wrote:
On Mon, Aug 31, 2009 at 10:49 PM, bala
chandar<[email protected]>  wrote:
 Hi luggies,
    I know that by using autorun.inf file and bat file we can create
 autoplay cd's in windows.But i want to know how to create autoplay
 cd's in linux.

Good question. ;)

Let us see if anyone answers it.

There is automount in Gnome, KDE and other graphical
environments.

There is no concept of autoplay I think.

That's quite right, as far as I know. However, if I'm not mistaken, the Gnome Desktop (or rather the nautilus file manager) will pop up a prompt if it see an autorun.[sh|exe] file on the CD.

hmmm ...after a quick glace at gconf settings[1], I see that nautilus has some gconf keys named /apps/nautilus/preferences/media_autorun_*. You may want to google for those.

double hmmm ...after looking at the nautilus preferences (Open a File Manager window -> Edit -> Preferences -> Media), I see an option where one can configure 'what happens when inserting media or connecting devices to the system' ...which also lists 'Software' ...but like all things Gnome, there is no clue what 'exactly' that would do, instead you are left to make guesses about what that means for 'an average desktop user' :)

So, you answer the question -- you cannot be sure the CD you create will autoplay in linux. However, _if_ the user uses Gnome, _and_ is using it's default file manager (Nautilus) _and_ has not changed the default preferences, there will be a prompt shown to the user asking whether the autorun.sh file should be run.

HTH,
cheers,
- steve

[1] using gconf-editor and searching for 'autorun' in both keys and values.

--
random non tech spiel: http://lonetwin.blogspot.com/
tech randomness: http://lonehacks.blogspot.com/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
_______________________________________________
To unsubscribe, email [email protected] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to