[X2go-Dev] x2golxdebindings (was Re: [X2go-User] Local share appears as a text file in $HOME/Desktop - cluttering the desktop)

Milan Knížek knizek.confy at volny.cz
Tue Aug 16 17:25:09 CEST 2011


Hello Mike,

V Tue, 16 Aug 2011 14:14:34 +0200
Mike Gabriel <mike.gabriel at das-netzwerkteam.de> napsáno:

> Thanks for your input on this!!! Fixed in latest Debian package and
> in X2go Git (Ubuntu packages will follow some time during the next
> 24h automatically).

I have further looked on git on the x2go*bindings and it seems that the
default file manager for handling the shared (sshfs) mounted directory
is hardcoded - i.e. nautilus for GNOME, pcmanfm for LXDE.

How about using xdg-open for that? While it might make sense to expect
that GNOME users have nautilus installed, users of less-fat environments
usually prefer various file managers (thunar, pcmanfm) and not
neccessarily the default one.

I tried to edit /usr/bin/x2gopcmanfm and replace the command:

system( "pcmanfm $dir" );

with

system( "xdg-open $dir" );

and it seems to work just fine.

What do you think?

(If it is fine, then the command could actually be named more
neutrally, like x2gofilemanager and also the corresponding
x2gofilemanager.desktop file and also the definition of mime type 
sshfs-x2go.xml - which would lead to unification of the code across
desktop environments.)


regards,
Milan
-- 
http://www.milan-knizek.net/
About linux and photography (Czech only)
O linuxu a fotografování



More information about the x2go-dev mailing list