New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change command-line options, .desktop files to allow launching from xdg-open #67

Closed
lazka opened this Issue Mar 14, 2015 · 18 comments

Comments

Projects
None yet
1 participant
@lazka
Member

lazka commented Mar 14, 2015

Original issue 67 created by mocaeruk@guerrillamail.org on 2008-12-02T06:56:50.000Z:

double click to open a media file with quodlibet need

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #1 originally posted by glenkirkup on 2009-11-24T20:38:28.000Z:

Always read the --help output and the manual page of an application first when you're
stuck. quodlibet --help prints:

--play-file=filename Play a file

as an available option. Therefore, you can play a song via the following command:

quodlibet --play-file path_to_song.ogg

To do this from a file manager, right click on the file and choose the 'Open with..'
option (may differ per file manager). It should allow you to enter a command for
opening the file. This will simply be:

quodlibet --play-file

There should also be an option for making this command the default command for this
type of file. You may need to repeat this for different media files (if you want both
.ogg and .flac, for instance.

If you want further help feel free to join the #quodlibet IRC channel on irc.oftc.net

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #2 originally posted by steven.strobe.cc on 2010-02-25T18:41:52.000Z:

<empty>

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #3 originally posted by nomnex on 2011-07-21T09:10:47.000Z:

I read the help file:

--play-file=filename

does not work with PCmanFM on LXDE. Can you help? I would like to open the files from my filemanager. thanks.

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #4 originally posted by nomnex on 2011-07-21T09:12:19.000Z:

edit: this command to set qt the default player does not work with pcmanfm:
quodlibet --play-file

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #5 originally posted by nomnex on 2011-07-21T09:13:40.000Z:

edit: I meant the command: quodlibet --play-file

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #6 originally posted by finnpanther@yahoo.com on 2011-07-21T11:54:58.000Z:

I have in my ~/.local/share/applications/defaults.list:

audio/flac=quodlibet_queue.desktop;

and in my ~/.local/share/applications/quodlibet_queue.desktop:

Exec=/usr/programs/quodlibet/quodlibet --enqueue=%f

and it's working OK. I just tried with --play-file=%f and it worked also. Note that Quod Libet must be running when you make the call.

Are you sure your file manager is passing the whole path to the file and not just the filename?

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #7 originally posted by nodatalog on 2011-07-26T22:55:51.000Z:

Note that Quod Libet must be running when you make the call.

Was the missing part. The command works, thank you. although, I am limited playing a single file (I can't right-select a bunch of files and play them).

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #8 originally posted by nick.boultbee on 2011-10-12T12:26:33.000Z:

I'm also sick of this gotcha - it's fine for me most of the time but only since I have QL running a lot, but it's poor that it can't be started up to play a file, like nearly every media player out there.

I'll have a look into this when I get some time (@devs is there a good reason for this I'm missing?)

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #9 originally posted by reiter.christoph on 2011-10-12T13:30:50.000Z:

I remember that I tried it once but gave up.

We could create the socket, fork, send the args and wait for the child to react to that (and redirect stdout for the child maybe, so --print-playing etc works ??)

or something completely different...

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #10 originally posted by reiter.christoph on 2012-11-19T19:38:11.000Z:

Issue #467 has been merged into this issue.

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #11 originally posted by reiter.christoph on 2012-12-03T22:08:42.000Z:

Issue #1073 has been merged into this issue.

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #12 originally posted by reiter.christoph on 2013-06-20T08:41:34.000Z:

Issue #1189 has been merged into this issue.

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #13 originally posted by arijspieter on 2014-09-28T20:52:23.000Z:

I would like to insist that quodlibet would get support for opening files passed as an argument(-list) just like about all other applications
eg: quodlibet song1.mp3 song2.mp3 song3.mp3
should launch quodlibet if it isn't started already and enqueue the files passed as arguments
quodlibet is a nice player and I was really surprised to see that this hasn't been implemented, why not?
thanks

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #14 originally posted by josh@joshtriplett.org on 2014-11-29T07:34:41.000Z:

I'm interested in this as well, for another reason: GNOME extensions for MPRIS typically allow launching the default audio player if they don't detect an MPRIS-compatible player running.

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #15 originally posted by reiter.christoph on 2015-03-07T19:26:32.000Z:

Some progress: revision b4a1277

todo: Issue #1537 and changing the desktop file

Feedback welcome

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #16 originally posted by reiter.christoph on 2015-03-09T13:53:08.000Z:

Should work now for single files. I've opened a separate issue for opening multiple files: Issue #1555

@lazka

This comment has been minimized.

Member

lazka commented Mar 14, 2015

Comment #17 originally posted by reiter.christoph on 2015-03-09T15:15:47.000Z:

Meh, desktop files get started by just stripping the path.. which breaks normal QL start. Reopening, sorry for the noise.

@lazka lazka removed the priority-normal label Mar 15, 2015

lazka added a commit that referenced this issue Apr 7, 2015

Add --run which makes QL start if isn't already. See issue #67.
e.g. quodlibet --play-file somefile.mp3 --run

@lazka lazka removed the confirmed label Apr 22, 2015

@lazka

This comment has been minimized.

Member

lazka commented Aug 22, 2015

A (hacky) workaround was added in a895811

Closing.

@lazka lazka closed this Aug 22, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment