Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to Launch icewm correctly from LXDE? [Solved]
View unanswered posts
View posts from last 24 hours

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


Joined: 24 Jan 2012
Posts: 40

PostPosted: Tue Jan 24, 2012 11:39 am    Post subject: How to Launch icewm correctly from LXDE? [Solved] Reply with quote

pcmanfm can navigate to computers running sshd using sftp under LXDE (requires gvfs). If I change the WM from open-box to icewm or switch to plain icewm from the LXDE login screen, sftp stops working in pcmanfm.

The cause of the problem is in this file:

/etc/lxdm/Xsession

They have custom xsession launchers for fedora, mandriva, debian, suse and ubuntu all other distros are classified as unknown and the script suggests that you create a custom xinitrc file here:

/etc/lxdm/xinitrc

If that file doesn't exist (the default) it runs a generic launcher which does not launch dbus-launch which is why pcmanfm can't do sftp with icewm.

I have a quick and dirty fix, add these lines to /etc/lxdm/Xsession just before the last exec line in the file.

Code:
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS";
then
       eval "$(dbus-launch --sh-syntax --exit-with-session)"
fi


That fixes the pcmanfm problem but the menu does not update for icewm.

I would like to place entries in /etc/lxdm/xinitrc to make lxdm launch icewm using the built in Gentoo mechanism.

This directory has the scripts that should be run before launching icewm-session: /etc/X11/xinit/xinitrc.d/

Can someone show me how to do that?


Last edited by BHReach on Thu Jan 26, 2012 12:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
BHReach
n00b
n00b


Joined: 24 Jan 2012
Posts: 40

PostPosted: Thu Jan 26, 2012 12:31 pm    Post subject: Reply with quote

I figured out how to create a custom /etc/lxdm/xinitrc that works with lxdm.

Code:
su -c "echo 'export XSESSION=\$1
> exec -l \$SHELL -c \". /etc/X11/xinit/xinitrc\"
> ' > /etc/lxdm/xinitrc"


Make it executable:

Code:
su -c "chmod +x /etc/lxdm/xinitrc"


Pass the DE/WM chosen to /etc/lxdm/xinitrc.

Replace <. /etc/lxdm/xinitrc> line with <. /etc/lxdm/xinitrc "$LXSESSION"> in /etc/lxdm/Xsession:

Code:
su -c "sed -i -e 's/\. \/etc\/lxdm\/xinitrc/\. \/etc\/lxdm\/xinitrc \"\$LXSESSION\"/' /etc/lxdm/Xsession"
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