Xfce Forum

Sub domains
 

You are not logged in.

#1 2015-06-08 10:30:54

Gosseyn
Member
Registered: 2015-06-08
Posts: 3

Thunar custom action - Open with Clementine

Hi,
I'm looking for a way to add music files to Clementine by right-clicking a folder. I guess that's possible with custom actions but can't figure out the way to do it.
Is that even possible ?
Thanks for your answer,
D.

Offline

#2 2015-06-08 10:50:18

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Thunar custom action - Open with Clementine

Create a Thunar Custom Action with these settings:

Basic Tab:
   Name = Add to Playlist
   Command = clementime -a %F
Advanced Tab:
   File Pattern = *
   Directories = checked

This will add the contents of any directory to Clementine's playlist. If you want to replace the existing playlist, use "clementine -l %F" instead.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#3 2015-06-08 15:23:17

Gosseyn
Member
Registered: 2015-06-08
Posts: 3

Re: Thunar custom action - Open with Clementine

Thanks a lot, that's great !
For the replacing playlist custom action, would there be any way to automatically play the new tracks ? Because as it is, Clementine keeps playing the current track even though it is not in the playlist anymore.
Also, the replacing only occurs if Clementine is already running.. If it's not opened already, it just adds the tracks to the existing playlist.
That's great already but it would be perfect if it was fixed !
Thanks again,
D.

Offline

#4 2015-06-08 16:26:11

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Thunar custom action - Open with Clementine

Gosseyn wrote:

For the replacing playlist custom action, would there be any way to automatically play the new tracks ? Because as it is, Clementine keeps playing the current track even though it is not in the playlist anymore.

It would appear that with Clementine you have to force it to play the next song for it to re-read the list. Try:

clementine -a %F && clementine -f

...or:

clementine -l %F && clementine -f

Also, the replacing only occurs if Clementine is already running.. If it's not opened already, it just adds the tracks to the existing playlist.
That's great already but it would be perfect if it was fixed !

This appears to be an issue with Clementine. If you run that command from a terminal window, the same happens. It would be best to ask the Clementine developers to fix that inconsistency. There's nothing Thunar can do about it.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#5 2015-06-08 17:19:36

Gosseyn
Member
Registered: 2015-06-08
Posts: 3

Re: Thunar custom action - Open with Clementine

Ok, thanks a lot for your help !

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 534.73 KiB (Peak: 535.57 KiB) ]