You are not logged in.

#1 2010-06-10 16:55:54

shak
Member
Registered: 2009-03-16
Posts: 405

[SOLVED] mpd doesn't start with .xinitrc but works ok with terminal

Hi !

I've decided to install mpd with the second approach of archwiki by adding the mpd entry to .xinitrc

Here's the code of .xinitrc

#!/bin/sh
#
# ~/.xinitrc
#

# this starts mpd as normal user
mpd /home/andreas/.mpd/config

# Executed by startx (run your window manager from here)

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice

After i get to gnome the sonata client can't connect to mpd . When i try mpd /home/andreas/.mpd/config from terminal everything goes fine and sonata connects just fne

What might be the issue ? It seems the .xinitrc doesn't load mpd

THanks

Last edited by shak (2010-06-10 17:25:38)

Offline

#2 2010-06-10 17:18:05

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: [SOLVED] mpd doesn't start with .xinitrc but works ok with terminal

It seems that .xinitrc doesn't load at all. tongue
.xinitrc only loads if you are using startx or something like the slim display manager. More complex display managers like GDM/KDM etc. will not run .xinitrc.
You should create a ".desktop" file in your ~/.config/autostart/ directory that loads mpd.

[Desktop Entry]
Encoding=UTF-8
Name=Music Player Daemon
Exec=/usr/bin/mpd /home/andreas/.mpd/config
Terminal=false
Type=Application
Categories=Application;Sound;

Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#3 2010-06-10 17:25:22

shak
Member
Registered: 2009-03-16
Posts: 405

Re: [SOLVED] mpd doesn't start with .xinitrc but works ok with terminal

Thanks for your reply , i've managed to solve by running the mpd daemon . I've followed the first choice in the archwiki for mpd

Thanks again wink

Offline

#4 2011-07-19 17:19:23

davirrirri
Member
Registered: 2011-01-13
Posts: 14

Re: [SOLVED] mpd doesn't start with .xinitrc but works ok with terminal

I had the same problem, start mpd from .xinitrc doesn't work. Arch Wiki should edit and fix this info because create confusion.
The info is locate here: https://wiki.archlinux.org/index.php/Mp … _as_a_User

Last edited by davirrirri (2011-07-19 17:21:33)

Offline

#5 2011-07-19 17:44:21

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: [SOLVED] mpd doesn't start with .xinitrc but works ok with terminal

@Davirrirri, the wiki is open to editing by anyone you know.

Offline

#6 2011-07-19 17:44:52

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] mpd doesn't start with .xinitrc but works ok with terminal

davirrirri wrote:

I had the same problem, start mpd from .xinitrc doesn't work. Arch Wiki should edit and fix this info because create confusion.
The info is locate here: https://wiki.archlinux.org/index.php/Mp … _as_a_User

davirrirri, this thread is more than a year old. Please do not necrobump.

As for mpd not starting from .xinitrc, that I do not think is the case. Depending on how you login, appropriate files need to be sourced. So if you are using gdm, I believe that .xinitrc is not sourced and therefore your apps listed in it will not start. For users not using gdm (or atleast a dm that sources .xinitrc), it works fine. That might indicate that the problem is not with mpd per se, but with how the .xinitrc file is sourced.

If you however believe that there is a genuine problem that has cropped up in the latest release, then please list all that you have tried so the bug can be fixed.


Although not relevant in this instance, the wiki is a collaborative effort and you can correct things if you see something mis-represented in the wiki instead of asking someone else to correct it.

Closing...


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB