On Mon, 3 Jan 2005 13:49, Chris wrote:
> How in the heck do I keep KsCD from popping up when I load a cd?  I
> untagged "Autoplay when cd insterted" but it still pops up.  I prefer to
> use xmms and its a PITA to keep closing out KsCD.  I've set all audio file
> associations, .mp3, .wav for xmms already.

KsCD pops up because Hotplug/Magicdev tells it to when you insert the CD.  To 
quote in part from an earlier e-mail of mine (soon to be appearing in the 
Twiki):

------------------------------------------------------------------------------

Now, for the obvious question, how to get autoplay to use a digital player 
rather than an audio cable one? �At the command line, su to root and edit the 
following file:
� � �/etc/dynamic/user-scripts/audio_cd.script

This file contains a list of programs that the system will try to start when 
an audio CD is inserted. �The important part of the file are the lines:

� =========================================================
� � �if under_gnome; then
� � � � � �launch gnome-cd --unique --play --device "$DEV"
� � �fi

� � �launch kscd --device "$DEV"
� � �launch gnome-cd --unique --play --device "$DEV"
� =========================================================

If you are a KDE3.2 user, you need to replace the 'launch kscd' line with your 
choice of digital player (or insert it as a new line before it). �If you are 
a Gnome user, you need to replace the 'launch gnome-cd' line after 'if 
under_gnome' with your choice of digital player.

If your choice of digital player is Kaffeine, you need the line:
� � �launch kaffeine $DEV

If your choice of digital player is Amarok, you need the line:
� � �launch amarok $DEV
(Note I'm not 100% sure on this, Amarok keeps crashing with my sound set-up)

If your choice of digital player is XMMS, you need the line:
� � �launch xmms $DEV
(Make sure you have the xmms-cdread package installed).

If your choice of digital player is Totem, its a little more complex. �First 
you need to add the following just before the 'if under_gnome' line:

� ==========================================================================
� function launch_totem {
� � type -p totem > /dev/null && gconftool -s /apps/totem/mediadev -t string 
$1 && exec totem cd:
� }
� ==========================================================================

That section between the {} brackets should be on 1 line. �Then you need to 
replace the 'launch gnome-cd' line with the line:
� � �launch_totem $DEV
(Note the '_' in launch_totem)

Note that this also applies if you want to change which Video player launches 
when you insert a DVD, just edit the 
file /etc/dynamic/user-scripts/video_dvd.script .

Cheers!

John.



-----------------------------------------------------------------------------
Forget that new hard drive, save some lives instead, donate to the Red Cross:
  USA:  https://www.redcross.org/donate/donation-form.asp
  UK:  https://www.donate.bt.com/bt_form_dec.htm
  Oz:  https://www.redcross.org.au/Donations/onlineTsunamiDonations.asp
  NZ:  https://www.banqonit.com/proxypage.aspx?boiid=205

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to