Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xfce4 ~/.xinitrc using exec or not?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jordanweb
n00b
n00b


Joined: 27 Oct 2020
Posts: 14

PostPosted: Thu Nov 26, 2020 7:11 pm    Post subject: xfce4 ~/.xinitrc using exec or not? Reply with quote

Hi, I take notes on how to install Gentoo, there's a part where I read on Gentoo wiki about xfce4 .xinitrc file.
https://wiki.gentoo.org/wiki/Xfce

gentoo wiki ~/.xinitrc contents section:
Code:
~/.xinitrcStarting xfce4 the right way when invoking startx
ck-launch-session dbus-launch --sh-syntax --exit-with-session xfce4-session


should I add exec for the xfce4 ~/.xinitrc file? or no need to add exec?
echo "exec .. " > ~/.xinitrc
Code:
 exec ck-launch-session dbus-launch --sh-syntax --exit-with-session xfce4-session

Code:
 ck-launch-session dbus-launch --sh-syntax --exit-with-session xfce4-session


I'm still using other DE,I haven't tried this on xfce4 startx, if anyone using xfce4 please reply, Thank you.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9691
Location: almost Mile High in the USA

PostPosted: Thu Nov 26, 2020 7:24 pm    Post subject: Reply with quote

Well, Consolekit is deprecated, so we should be moving away from it. You should be using elogind/pam, and you should be getting a session if your login setup is setup correctly.

Are you using 'startx' or 'xinit' or otherwise manually starting X11? Then .xinitrc may be the right place to put stuff.

If you're using a graphical login, then .xinitrc is not the right place to put things. Seems to automagically work for me.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
jordanweb
n00b
n00b


Joined: 27 Oct 2020
Posts: 14

PostPosted: Thu Nov 26, 2020 7:42 pm    Post subject: Reply with quote

Thanks I'm using graphical manager and now I understand how. :)
also my bad I did not see the wiki already mentioned just "replace the above line in ~/.xinitrc with the following entry "
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2965
Location: Edge of marsh USA

PostPosted: Fri Nov 27, 2020 3:46 am    Post subject: Reply with quote

If using a display manger (graphical login) the user's .xinitrc is not used.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum