View previous topic :: View next topic |
Author |
Message |
xkalibur n00b
Joined: 21 Jul 2002 Posts: 25
|
Posted: Sat Mar 29, 2003 8:13 pm Post subject: enqeue mp3s in xmms from kde menu |
|
|
want to right click on your mp3s and select "Enqeue in Xmms" under KDE ?
use kde service menu, here is how:
create file
/home/username/.kde/share/apps/konqueror/servicemenus/enqeuexmms.desktop
or
/usr/kde/3.1/share/apps/konqueror/servicemenus/enqeuexmms.desktop
containing:
[Desktop Entry]
ServiceTypes=audio/x-mpegurl,audio/x-mp3,application/x-ogg
Actions=enqeueInXmms
[Desktop Action enqeueInXmms]
Name=Enqeue in Xmms
Icon=xmms
Exec=xmms -e %U
see example
http://bruceyoung.tripod.com/pics/snapshot.html
sources:
http://developer.kde.org/documentation/tutorials/dot/servicemenus.html
link
EDIT: Added url tags around long link for word wrapping. -- pjp |
|
Back to top |
|
|
S_aIN_t Guru
Joined: 11 May 2002 Posts: 488 Location: Ottawa
|
Posted: Sat Mar 29, 2003 11:44 pm Post subject: |
|
|
that is pretty cool. thanks. _________________ "That which is overdesigned, too highly
specific, anticipates outcome; the anicipation of
outcome guatantees, if not failure, the
absence of grace."
- William Gibson, "All Tomorrow's Parties"
----
http://petro.tanreisoftware.com |
|
Back to top |
|
|
Uranus Guru
Joined: 07 May 2002 Posts: 438 Location: Portugal, Braga
|
Posted: Sun Mar 30, 2003 2:27 am Post subject: |
|
|
cool... since I use gnome I created the file -> "/home/uranus/.gnome2/nautilus-scripts/Enqueue in xmms"
it's contents are:
now it'll show up under the scripts menu when you right-click an icon
supports multiple files |
|
Back to top |
|
|
krivi n00b
Joined: 29 Jul 2003 Posts: 6 Location: Odense, Denmark
|
Posted: Thu Jul 31, 2003 9:19 pm Post subject: Enqueue in xmms... |
|
|
Hi,
I did it this way:
My ~/.kde3.1/share/applnk/Multimedia/xmms.desktop says:
[Desktop Entry]
BinaryPattern=
Comment=
Encoding=UTF-8
Exec=xmms --enqueue %U # <--- added "enqueue" here!!
GenericName=Multimedia Player
Icon=xmms
MimeType=audio/x-mp3;audio/x-mod;audio/x-wav;audio/x-mpegurl;audio/x-scpls;Appli
cation
Name=XMMS
Path=
ServiceTypes=
SwallowExec=
SwallowTitle=
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=None
X-KDE-StartupNotify=false
X-KDE-SubstituteUID=false
X-KDE-Username=
Only "trouble" now is that when I click on an xmms file it doesn't play automatically, I have to press "Play". But it works.
Jens _________________ Regards/Hilsen
Jens Villadsen
Odense, Denmark |
|
Back to top |
|
|
neon l33t
Joined: 04 Aug 2003 Posts: 759 Location: Catania, Italy, Europe
|
Posted: Mon Aug 04, 2003 4:17 pm Post subject: |
|
|
I've made some corrections to the gnome script... now it won't add the entire dir but only selected files.
Code: |
#! /bin/bash
quoted=$(echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | awk 'BEGIN {
FS = "\n" } { printf "\"%s\" ", $1 }' | sed -e s#\"\"##)
eval "xmms -e $quoted"
|
hope it helps
I'm tring to port it in python, but i don't know that language...
p.s.: sorry for bad english... |
|
Back to top |
|
|
neon l33t
Joined: 04 Aug 2003 Posts: 759 Location: Catania, Italy, Europe
|
Posted: Tue Aug 05, 2003 12:31 pm Post subject: |
|
|
learned
Code: |
#! /usr/bin/env python
import os
files = ""
result = os.environ['NAUTILUS_SCRIPT_SELECTED_FILE_PATHS'].split('\n')
for i in range(0,len(result)-1):
files = files + " \"" + result[i] + "\""
os.system("xmms -e" + files)
|
|
|
Back to top |
|
|
ntd n00b
Joined: 10 Jul 2003 Posts: 5
|
Posted: Sat Aug 16, 2003 6:20 pm Post subject: Re: Enqueue in xmms... |
|
|
krivi wrote: | Only "trouble" now is that when I click on an xmms file it doesn't play automatically, I have to press "Play". But it works. |
Good tip xkalibur.
If you add in a '-p' option in your xmms command it will play the current list. |
|
Back to top |
|
|
VisualPhoenix Tux's lil' helper
Joined: 26 Sep 2002 Posts: 135 Location: (CT v NJ)
|
Posted: Fri Sep 05, 2003 5:22 pm Post subject: |
|
|
is there a way to enqueue a whole folder? |
|
Back to top |
|
|
MaD-DaRiUs n00b
Joined: 21 Aug 2002 Posts: 46 Location: BC, Canada
|
|
Back to top |
|
|
b0fh Guru
Joined: 16 Jun 2003 Posts: 426
|
Posted: Sat Feb 14, 2004 4:48 pm Post subject: |
|
|
This doesn't work for me in kde 3.2... Any fix? |
|
Back to top |
|
|
MaD-DaRiUs n00b
Joined: 21 Aug 2002 Posts: 46 Location: BC, Canada
|
Posted: Thu Feb 26, 2004 5:59 am Post subject: |
|
|
Still works great for me with this in $HOME/.kde/share/apps/konqueror/servicemenus/enqueuexmms.desktop
Code: | [Desktop Entry]
ServiceTypes=audio/x-mpegurl,audio/x-mp3,application/x-ogg,inode/directory
Actions=enqeueInXmms
[Desktop Action enqeueInXmms]
Name=Enqeue in Xmms
Icon=xmms
Exec=xmms -e %U
|
and this one i threw together just because
playinxmms.desktop
Code: | [Desktop Entry]
ServiceTypes=audio/x-mpegurl,audio/x-mp3,application/x-ogg,inode/directory
Actions=playInXmms
[Desktop Action playInXmms]
Name=Play in Xmms
Icon=xmms
Exec=xmms %U
|
_________________ Required Reading list.
http://www.catb.org/~esr/faqs/smart-questions.html
http://www-106.ibm.com/developerworks/linux/library/l-faq/index.html
http://wiktionary.org |
|
Back to top |
|
|
|