You are not logged in.

#1 2011-04-30 14:52:34

centos
Member
From: Ostrava, Czech Republic
Registered: 2009-01-09
Posts: 65

Make mpd to start automatically as normal user [Solved]

Hi, I'd like to pick up again this issue https://bbs.archlinux.org/viewtopic.php?id=98863 in a new thread since that one was marked Solved. The .xinitrc solution for starting mpd doesn't work for me, neither does the Stebalien's one. Starting from terminal does the job.
I understand from that post that for me as for GNOME-Shell user the .xinitrc file doesn't do anything. So how is it possible that mpdscribble works? I set it up in .xinitrc file, as wiki says, and it scrobbles my songs (well not now because last.fm is down). Can someone explain to me how is it and how can I force mpd to start automatically? And I don't want to start it as a deamon.

edit: I looked into lastfm.journal file. There's something there, but not songs i listened to this morning. Maybe I started it manually once and forget about it. So please consider the "my .xinitrc partially works" part as "inaccurate", thanks smile

Last edited by centos (2011-04-30 22:10:32)

Offline

#2 2011-04-30 15:07:39

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Make mpd to start automatically as normal user [Solved]

You can use gnome-session-properties.

Offline

#3 2011-04-30 15:16:10

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: Make mpd to start automatically as normal user [Solved]

I just create a desktop entry in ~/.config/autostart:

ewaller@odin:~ 1014 %cat .config/autostart/mpd.desktop 
[Desktop Entry]
Comment=
Exec=mpd
GenericName=
Icon=system-run
MimeType=
Name=MPD Daemon
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

ewaller@odin:~ 1015 %

Works great on Openbox and Xfce4.  IIRC, it works for KDE.  It should work for the others, but I've never tried.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2011-04-30 15:18:25

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: Make mpd to start automatically as normal user [Solved]

Great, now that I followed your link, I see my solution is the same as Stebalien's.  hmm


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2011-04-30 15:51:59

centos
Member
From: Ostrava, Czech Republic
Registered: 2009-01-09
Posts: 65

Re: Make mpd to start automatically as normal user [Solved]

Thank you both. Maybe the reason autostart solution didn't work for me was that i used wrong filename. And I hope that for mpdscribble this will work too. smile

Last edited by centos (2011-04-30 15:58:06)

Offline

#6 2011-04-30 22:09:33

centos
Member
From: Ostrava, Czech Republic
Registered: 2009-01-09
Posts: 65

Re: Make mpd to start automatically as normal user [Solved]

gnome-session-properties is an easy solution. MPD added there - works. scribbler added into the daemon array in rc.conf and into the g-s-p - works. Thanks again.

Offline

Board footer

Powered by FluxBB