Skip to content
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

Command line interface need X server #489

Closed
Clementine-Issue-Importer opened this issue Dec 6, 2013 · 0 comments
Closed

Command line interface need X server #489

Clementine-Issue-Importer opened this issue Dec 6, 2013 · 0 comments

Comments

@Clementine-Issue-Importer

From calvinh34 on July 08, 2010 15:41:07

Hi there ! First of all, thank you for Clementine, witch is the exact music player I need :) Great job !

But I think Clementine have a wrong behaviour with the command line. What steps will reproduce the problem? 1. Start playing on computer A
2. SSH computer A from computer B
3. Try to control clementine with some command line What is the expected output? What do you see instead? clementine is already playing on brasserie

[goudale@Chaipa ~]$ clementine --help
Usage: clementine [options] [URL(s)]

Options du lecteur:
-p, --play Commencer la liste de lecture jouée actuellement
-t, --play-pause Play if stopped, pause if playing
-u, --pause Mettre la lecture en pause
-s, --stop Arrêter la lecture
-r, --previous Lire la piste précédente
-f, --next Lire la piste suivante
-v, --volume Définir le volume à pourcents
--volume-up Augmenter le volume de 4%
--volume-down Baisser le volume de 4%
--seek-to Seek the currently playing track to an absolute position
--seek-by Seek the currently playing track by a relative amount

Options de la liste de lecture:
-a, --append Ajouter des fichiers/URLs à la liste de lecture
-l, --load Charger des fichiers/URLs, et remplacer la liste de lecture actuelle
-k, --play-track Jouer la ème piste de la liste de lecture

Autres options:
-o, --show-osd Display the on-screen-display
-e, --engine Select engine
[goudale@Chaipa ~]$ ssh goudale@192.168.1.180
goudale@192.168.1.180's password:
Last login: Thu Jul 8 14:30:54 2010
[goudale@brasserie ~]$ clementine -t
clementine: cannot connect to X server
[goudale@brasserie ~]$

Is there a way to bypass it ?
This is my very first report, please tell me if you need more information.

And I'm currently writing an interface to control clementine via anyRemote. (anyRemote is a Bluetooth remote control for cellphones). If someone is interested, I will post it here. :)

Original issue: http://code.google.com/p/clementine-player/issues/detail?id=489

@Clementine-Issue-Importer
Copy link
Author

From calvinh34 on July 08, 2010 08:43:30

Hi again ! I avoided that "bug" using DBUS :

[goudale@Chaipa ~]$ ssh goudale@192.168.1.180
goudale@192.168.1.180's password:
Last login: Thu Jul 8 17:15:43 2010 from chaipa
[goudale@brasserie ~]$ export grep DBUS_SESSION_BUS_ADDRESS= $(ls -t ~/.dbus/session-bus/* | head -1)
[goudale@brasserie ~]$ qdbus 'org.mpris.clementine' /Player Play
[goudale@brasserie ~]$ qdbus 'org.mpris.clementine' /Player Next

I think I will use mpris instead of command line for my remote interface. Do you think it's a better idea ?

@Clementine-Issue-Importer
Copy link
Author

From yellow_onion@orcon.net.nz on July 08, 2010 22:41:58

this isn't exactly a bug, if you want it to work you need to specify the DISPLAY variable so it knows what X to connect to

$ DISPLAY=:0 clementine -t

for example

@Clementine-Issue-Importer
Copy link
Author

From andrew.gaydenko on July 08, 2010 23:15:12

I have voted for the issue by slightly another reason. I use CLI for LIRCing. Repeatable commands (say, volume regulation) produce frequent sequnce of 'clementine' call (with appropriate options). So we have sequence of multiple loading of 8MB executable.

From my point, it would be handy to separate CLI in another executable (say, 'clementine-client', which would be 100 times smaller) with code needed to communicate only with running 'clementine' instance.

@Clementine-Issue-Importer
Copy link
Author

From davidsansome on July 10, 2010 09:20:11

This issue was closed by revision r1432 .

Status: Fixed

@Clementine-Issue-Importer
Copy link
Author

From davidsansome on July 10, 2010 09:22:29

I like the sound of the anyRemote interface - please do post it here :)

@Clementine-Issue-Importer
Copy link
Author

From calvinh34 on July 10, 2010 10:24:46

I already writed a very basic config file that's work. Unfortunately (or not :p ) I'm in holidays for the moment, and I don't have an access on this file. I will post it next week ;)

DBus is really fine for it, but thanks all for your answers anyway :)

@Clementine-Issue-Importer
Copy link
Author

From jl.bahamonde.a on July 19, 2011 09:39:15

Hi there calvinh34.
I have just seen your post and I would like to know if the config file that you wrote makes a remote control for clementine out of a bluetooth-capable cell phone...
If so, would you be willing to share it? I'd appreciate it a lot!
I'm using clementine on Mac OSX and I'm searching for a way to control it from a distance...

Many thanks in advance, you can write to hendrixman at hotmail.com if you please.

Thanks again.

@Clementine-Issue-Importer
Copy link
Author

From calvinh34 on July 19, 2011 09:49:59

As far as i remember, i wrote the config files for anyremote ;) it just need
a jsr82 (Bluetooth over java) capable phone.
But i don't know if the server parts run on osx

Le 19 juil. 2011 18:39, clementine-player@googlecode.com a écrit :

@Clementine-Issue-Importer
Copy link
Author

From tjofle on August 27, 2012 11:32:51

An alternative to anyRemote for smartphone users is Clementine Web Remote: http://code.google.com/p/clementine-webremote/

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

No branches or pull requests

1 participant