Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Applications
Reload this Page CD application automatically starts stuff?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Applications I cant get "X" app to work... also discussion about linux programs.

Reply
 
Thread Tools Display Modes
Old 06-12-2008   #1 (permalink)
Just Joined!
 
Join Date: Jun 2008
Posts: 15
Arrow CD application automatically starts stuff?

My version of Linux doesn't have the program that automatically starts an application when a CD is inserted so as to allow me to insert a CD with say mp3's and automatically runs a player, so where do I get such a beast and what would it be called?
RuffLiner5579 is offline   Reply With Quote
Old 06-12-2008   #2 (permalink)
Super Moderator
 
Join Date: May 2004
Location: Arch Linux
Posts: 8,565
You didn't say what distribution you are running, or what desktop environment you are running on it. That information would be very helpful to anyone trying to provide a good answer.
__________________
oz

New Users: * FAQ *

ozar is offline   Reply With Quote
Old 06-12-2008   #3 (permalink)
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 1,036
That usually depends on the desktop environment, as long as the hal daemon is running, that is. As someone said, your distro (name + version number) and your desktop (kde/gnome/xfce + version number) are critical factors to start diagnosing this.
i92guboj is offline   Reply With Quote
Old 06-17-2008   #4 (permalink)
Just Joined!
 
Join Date: Jun 2008
Posts: 15
Quote:
Originally Posted by i92guboj View Post
That usually depends on the desktop environment, as long as the hal daemon is running, that is. As someone said, your distro (name + version number) and your desktop (kde/gnome/xfce + version number) are critical factors to start diagnosing this.
Ya I know its Slackware based but I don't think that any other info will help much if I need a desktop because I don't use one much if ever.
RuffLiner5579 is offline   Reply With Quote
Old 06-17-2008   #5 (permalink)
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 1,036
Quote:
Originally Posted by RuffLiner5579 View Post
Ya I know its Slackware based but I don't think that any other info will help much if I need a desktop because I don't use one much if ever.
If you don't own a desktop then explain a bit more accurately what results are you expecting from such autoplay feature. In linux, even on desktops, autoplay usually just means open a explorer or play an audio cd. What are you expecting this feature to do on command line?

The audiocd autoplay might be easily achievable by writing some udev rules, if that's what you want. I've never done it, but it should be possible.
i92guboj is offline   Reply With Quote
Old 06-17-2008   #6 (permalink)
Just Joined!
 
Join Date: Jun 2008
Posts: 15
Quote:
Originally Posted by i92guboj View Post
If you don't own a desktop then explain a bit more accurately what results are you expecting from such autoplay feature. In linux, even on desktops, autoplay usually just means open a explorer or play an audio cd. What are you expecting this feature to do on command line?

The audiocd autoplay might be easily achievable by writing some udev rules, if that's what you want. I've never done it, but it should be possible.
I have games, mp3, DVD, and much more that I would like to run automatically.
I also had this crazy idea that may be this could work on ISO files mounted to some directory like ~/mnt or something.
Any thoughts?
RuffLiner5579 is offline   Reply With Quote
Old 06-17-2008   #7 (permalink)
Super Moderator
 
techieMoe's Avatar
 
Join Date: Aug 2004
Location: Texas
Posts: 8,604
Quote:
Originally Posted by RuffLiner5579 View Post
I have games, mp3, DVD, and much more that I would like to run automatically.
There are ways to make things happen when you insert a CD if you're using a desktop environment like GNOME. For instance, there's a setting to open your music player when an audio CD is inserted or your multimedia app when a DVD is put in.

On my machine these are set in the "Media" tab of the preferences dialog in Nautilus File Manager. I'm not sure how you would set them up in other environments.
__________________
Registered Linux user #270181
TechieMoe's Tech Rants
techieMoe is offline   Reply With Quote
Old 06-17-2008   #8 (permalink)
Just Joined!
 
Join Date: Jun 2008
Posts: 15
When I use a desktop if ever its JVM.
RuffLiner5579 is offline   Reply With Quote
Old 06-17-2008   #9 (permalink)
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 1,036
Quote:
Originally Posted by RuffLiner5579 View Post
I have games, mp3, DVD, and much more that I would like to run automatically.
I also had this crazy idea that may be this could work on ISO files mounted to some directory like ~/mnt or something.
Any thoughts?
Are you using X at all or just plain console? You are not using a desktop, I know, but now that I think I am not clear if you are using a lighter window manager under x, or if you are using plain console.

If you want to fire up something based on addition or removal of devices you can use udev, but for insertion of dvd or cd disks, now that I think, you would need to do some serious hacking using hal. ivman is based on hal and is used to automount disks when you insert them so it might serve as a model for you, but if you are not using some pre-made tool then there's no easy way to achieve this outside one of the major desktops (which use hal just like I told you).

Then you are going to need to program your own solution based on hal, I guess.
i92guboj is offline   Reply With Quote
Old 06-17-2008   #10 (permalink)
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 1,036
Quote:
Originally Posted by RuffLiner5579 View Post
When I use a desktop if ever its JVM.
When you are in X you might have some luck traying to run the gnome-volume-manager. I know it's supposed to handle all that stuff under gnome, and it might work on other environments as wel. You need to have the hal daemon running, of course.
i92guboj is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 10:10 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0