[Solved]Autostart xmms2 daemon

Everything about X, Gnome, KDE, ... and everything running on it

[Solved]Autostart xmms2 daemon

Postby None1975 » 2018-06-25 17:23

Hello I have one question. In one of my machines, which works without a x server, I installed xmms2. I know that in order to listen to music, you should run the demon
Code: Select all
xmms2-launcher
It's simple. But I would like this daemon to start automatically when I log into the system, as an ordinary user, not root. I know that when using mpd and run it as user, it's enough to use the systemd command
Code: Select all
systemtl --user enable mpd.service
And what command to use for xmms2? Is it right to use systemctl --user enable xmms2-launcher? I read the official documentation, but I did not find the answer. I would appreciate the information and explanation. By the way, i run Debian 9.4, fully updated.
Last edited by None1975 on 2018-06-26 12:50, edited 1 time in total.
User avatar
None1975
 
Posts: 703
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: Autostart xmms2 daemon

Postby Dai_trying » 2018-06-25 17:39

I use xmms2 and have never needed to ensure the daemon is running because whenever a command is issued it will load it automatically, although I m not an expert in it and there may be reasons for needing it to be loaded that I am unaware of...
Dai_trying
 
Posts: 567
Joined: 2016-01-07 12:25

Re: Autostart xmms2 daemon

Postby Head_on_a_Stick » 2018-06-25 18:02

None1975 wrote:Is it right to use systemctl --user enable xmms2-launcher?

I don't think that would work, there don't appear to be any systemd unit files supplied with the package so the command would fail.

If you need to run a command automatically on login then add it to ~/.profile (for a console login) or ~/.xsessionrc (for a display manager login).
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8324
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Autostart xmms2 daemon

Postby debiman » 2018-06-26 08:20

you could also have a look at the mpd service file, copy it and modify it to launch xmms2.
User avatar
debiman
 
Posts: 3064
Joined: 2013-03-12 07:18

Re: Autostart xmms2 daemon

Postby None1975 » 2018-06-26 12:49

Dai_trying wrote:I use xmms2 and have never needed to ensure the daemon is running because whenever a command is issued it will load it automatically

I understand this, but i would like to automate this process.
Head_on_a_Stick wrote:If you need to run a command automatically on login then add it to ~/.profile (for a console login)

It turns out that the decision is simple, as two times two. Great tip. I did it. Thank you.
debiman wrote:you could also have a look at the mpd service file, copy it and modify it to launch xmms2.

Thanks for the idea. I had the idea to do this, but I do not know how the program will react. I should think about it. So far, I will use a simpler solution.
User avatar
None1975
 
Posts: 703
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: Autostart xmms2 daemon

Postby debiman » 2018-06-26 20:22

None1975 wrote:Thanks for the idea. I had the idea to do this, but I do not know how the program will react. I should think about it. So far, I will use a simpler solution.

there's really nothing complicated about it, esp. since the mpd service does pretty much exactly the same.

oh look, xmms2 has a huge wiki:
https://github.com/xmms2/wiki/wiki
User avatar
debiman
 
Posts: 3064
Joined: 2013-03-12 07:18


Return to Desktop & Multimedia

Who is online

Users browsing this forum: zorzi and 4 guests

fashionable