pcmanfm won't sftp with icewm launched by LXDE? [Solved]

Discussions Regarding Software

Moderator: Moderators

pcmanfm won't sftp with icewm launched by LXDE? [Solved]

Postby BHReach » Thu Jan 19, 2012 20:09

pcmanfm can navigate to computers running sshd using sftp under LXDE (requires gvfs to be added to base Sabayon LXDE install). If I change the WM from open-box to icewm or switch to plain icewm, 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, 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 found a solution:

Code: Select all
su -c 'nano /etc/lxdm/xinitrc'

#Created 1/19/2012 to get pcmanfm to sftp.

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

exec ck-launch-session icewm-session


Make it executable:

Code: Select all
su -c 'chmod +x /etc/lxdm/xinitrc'


This is really a temporary fix, Gentoo should write a custom /etc/lxdm/xinitrc that works correctly with all available WMs and DEs.
BHReach
Growing Hen
 
Posts: 193
Joined: Thu Jan 31, 2008 20:40

Re: pcmanfm won't sftp with icewm launched by LXDE? [Solved]

Postby BHReach » Sun Jan 22, 2012 14:59

That is not a very effective fix because it launches icewm no matter what I choose from the login screen.

Here is a better fix:

Add these lines to /etc/lxdm/Xsession just before the last exec line in the file.

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


I files a bug report with LXDE.
BHReach
Growing Hen
 
Posts: 193
Joined: Thu Jan 31, 2008 20:40

Re: pcmanfm won't sftp with icewm launched by LXDE? [Solved]

Postby BHReach » Thu Jan 26, 2012 13:35

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

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


Make it executable:

Code: Select all
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: Select all
su -c "sed -i -e 's/\. \/etc\/lxdm\/xinitrc/\. \/etc\/lxdm\/xinitrc \"\$LXSESSION\"/' /etc/lxdm/Xsession"
BHReach
Growing Hen
 
Posts: 193
Joined: Thu Jan 31, 2008 20:40

Re: pcmanfm won't sftp with icewm launched by LXDE? [Solved]

Postby BHReach » Sat Feb 04, 2012 21:25

I checked the LXDE bug tracker and the bug I reported is marked as fixed so the next LXDE upgrade should not require this fix.
BHReach
Growing Hen
 
Posts: 193
Joined: Thu Jan 31, 2008 20:40


Return to Software in General

Who is online

Users browsing this forum: No registered users and 3 guests