LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Autorun option (https://www.linuxquestions.org/questions/linux-newbie-8/autorun-option-772630/)

saran_redhat 12-01-2009 04:30 AM

Autorun option
 
Hai friends

I have one problem. how to make autorun option in linux. that means when put cd or dvd in system. how to make it automatically open run all files. atlease home page . now i put cd in system. i manually open all files. how to make everything open automatically
Thanks

i92guboj 12-01-2009 04:37 AM

That entirely depends on what do you exactly mean. I have some problem understanding you.

KDE and Gnome have some kind of autorun feature, in the sense that they are able to detect when a disk is open, and will offer a menu with some options, similar to this of WinXP offering you some options on what to do with the disk.

If you mean to launch a program when inserting the disk, I am not aware of any linux way to do this. There are a number of problems to achieve this, the program would need to be portable enough or be wrapped into some kind of scripting mechanism that's architecture-agnostic, since Linux works in a number of architectures. It would need to be compiled statically as well.

Anyway, try to define a bit better what do you mean so we can try to give a more concrete answer to your question.

saran_redhat 12-01-2009 10:24 PM

autorun problem
 
Quote:

Originally Posted by i92guboj (Post 3775503)
That entirely depends on what do you exactly mean. I have some problem understanding you.

KDE and Gnome have some kind of autorun feature, in the sense that they are able to detect when a disk is open, and will offer a menu with some options, similar to this of WinXP offering you some options on what to do with the disk.

If you mean to launch a program when inserting the disk, I am not aware of any linux way to do this. There are a number of problems to achieve this, the program would need to be portable enough or be wrapped into some kind of scripting mechanism that's architecture-agnostic, since Linux works in a number of architectures. It would need to be compiled statically as well.

Anyway, try to define a bit better what do you mean so we can try to give a more concrete answer to your question.

Thanks for u r reply

My need is when i put cd in winxp it automatically open run some flash player program or any swf format program contains that cd . so in the same way i need in linux. if it is possible to make this. please advise me.

thank u

i92guboj 12-02-2009 02:40 AM

I guess that KDE and Gnome already do that for many file types, at least to some degree, don't they? It should pop up a Window letting you choose between many actions, just like in WinXP, however I doubt that swf is between the default file types, you will have to find a way to configure/add it, and I don't even know if there's a working swf player in Linux (I'd look at gnash).

Nowadays, this is highly dependent on the desktop you use, there's no system-wide daemon or something like that to do it.

saran_redhat 12-02-2009 06:45 AM

autorun problem
 
Quote:

Originally Posted by i92guboj (Post 3776701)
I guess that KDE and Gnome already do that for many file types, at least to some degree, don't they? It should pop up a Window letting you choose between many actions, just like in WinXP, however I doubt that swf is between the default file types, you will have to find a way to configure/add it, and I don't even know if there's a working swf player in Linux (I'd look at gnash).

Nowadays, this is highly dependent on the desktop you use, there's no system-wide daemon or something like that to do it.

Sorry , I cant understand please advise me.

Thanks


All times are GMT -5. The time now is 07:05 AM.