LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-08-2008, 03:07 PM   #16
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675

Original Poster
Blog Entries: 11

Rep: Reputation: 36
what I found


Quote:
Originally Posted by radiodee1 View Post
HI,

I kind of prefer xmms, and so I want it so that the program that is started when I double click a music file in gnome is xmms, not rhythmbox. I went to the 'System->Preferred-Applications' dialog, and then to the 'multimedia' tab, where I typed in 'xmms' in the space provided, but that doesn't change anything. I use lenny and gnome and everything is up to date. Any help would be appreciated. Thanks in advance!!
Although everybody says I should have been able to, I never could switch my audio player using this method... I ended up reverting to using update-alternatives, which worked in it's own limited way.
 
Old 07-08-2008, 07:34 PM   #17
FireFerum
Member
 
Registered: Apr 2004
Location: Lawrenceville, GA
Distribution: Debian
Posts: 115

Rep: Reputation: 15
When you say limited way... what kind of limits are you looking at? Also, do you happen to know if you can undo the changes once you try update-alternatives?
 
Old 07-09-2008, 09:02 AM   #18
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675

Original Poster
Blog Entries: 11

Rep: Reputation: 36
I really don't know if this will help you. There are three parts to what I finally did. 1) I wrote a special script, 2) I found someplace to put it, and 3) I installed the script with update-alternatives.

1) here's the latest version of the script. It's not very good. I named it 'totem-replace.sh'.
Code:
#!/bin/sh

#use 'file' to figure out what kind of file it is.
if file $1 | grep "avi" > /dev/null
then
#start gmplayer
gmplayer "$1"
fi

#use 'file' to figure out what kind of file it is.
if file $1 | grep "mp3" > /dev/null
then
#start audacious
audacious "$1"
fi
2) I changed to root and put the script at '/usr/local/bin'. I chose this location somewhat arbitrarily.

3) I executed this statement with update-alternatives
Code:
update-alternatives --install /usr/bin/totem totem /usr/local/bin/totem-replace.sh 55
Some problems:
- The script launches audacious if it encounters an audio file, but audacious is broken for me in lenny right now. To play music right now I generally right click on the file and select xmms from the drop down menu.
- If the name of the file has the characters 'avi' in it, it tries to launch mplayer.
- This solution is basically for launching the right program when you double click on an icon. I don't know how to deal with streaming audio.

This should be reversible with update alternatives. You should read up on update-alternatives before you do anything like this. I think you type 'update-alternatives --config totem' and select from the list the old configuration.
 
Old 07-09-2008, 09:25 AM   #19
FireFerum
Member
 
Registered: Apr 2004
Location: Lawrenceville, GA
Distribution: Debian
Posts: 115

Rep: Reputation: 15
I will give that a try. Thanks for the help
 
Old 07-15-2008, 09:47 PM   #20
Flab0y352
Member
 
Registered: Aug 2007
Location: Sunshine State
Distribution: Debian Testing
Posts: 72

Rep: Reputation: 15
Try using Listen instead of Rhythmbox 10X better
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound conflict between Skype & XMMS/Rhythmbox el amigo* Fedora 1 11-17-2007 07:13 AM
[HOWTO] MP3 Support in XMMS + Rhythmbox contra Fedora 12 12-05-2006 08:18 PM
Need mp3 support for xmms and rhythmbox cranium2004 Linux - Software 5 01-21-2006 11:15 PM
Rhythmbox EQ... or am I stuck with xmms? goldie1 Linux - Software 0 10-12-2004 12:20 PM
GRIPE - Fedora, Rhythmbox, XMMS, etc... TheMooch Linux - Software 1 05-21-2004 11:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration