2013/11/19 Julien Lavergne <julien.lavergne@gmail.com>

2013/11/19 christian@surlykke.dk <christian@surlykke.dk>


Running lxde-qt as my desktop I ran into a small glitch: The script startlxde-qt runs:

lxsession -s LXDE-Qt -e LXDE

The -e switch defines name of the desktop environment, and it is stored into the XDG_CURRENT_DESKTOP variable. 

Now, I'm on Arch, and use stock xdg-scripts. If I run

xdg-open some-file 

xdg-open decides, based on XDG_CURRENT_DESKTOP=LXDE, to hand over some-file to pcmanfm, but that fails as I haven't got pcmanfm installed (I have pcmanfm-qt).

Bottom line: I cannot, for example, open a downloaded pdf-file from my browser.

 This patch on lxde-common fixes it for me:

index 4a56d8d..8b1e7e3 100755
@@ -34,4 +34,4 @@ fi
 export XDG_MENU_PREFIX="lxde-"
 # Start the LXDE session
-exec lxsession -s LXDE-Qt -e LXDE
+exec lxsession -s LXDE-Qt -e LXDE-Qt

So we get XDG_CURRENT_SESSION=LXDE-Qt instead. I hesitate to commit && push, though, as I'm not sure it won't break something else. Does anybody know if this will cause problems? 

(Maybe we should decide a name for this brand-new desktop :-) Soonish. There is a risk if we use LXDE-Qt that 3rd-party tools and apps will begin to depend on it.)

-e is supposed to set the XDG desktop environment you want to run (like LXDE, GNOME, KDE ....). It's also useful for the .desktop which will be displayed on the menu. So, as LXDE-Qt is not an environment on XDG, is probably not a good idea.

Not sure I agree here. If xdg-open doesn't know $XDG_CURRENT_DESKTOP, it falls back to default behavior, which is to use the desktop database to figure out which application to use. That's how it worked with Razor which didn't have any special handling in xdg-open (or other xdg scripts). I think this is the correct behavior if we want to adhere to standards.
I think the proper short-term fix is to symlink pcmanfm-qt to pcmanfm. I think what ever pcmanfm can open, pcmanfm-qt will be able to do the same job.

Well, it's a fix, yes. But I think it is wrong to hardwire the use of pcmanfm-qt. LXDE-Qt should be a modular desktop system, meaning if a user wants to use another file manager, things should still be able to work. That is best achieved (IMHO) by letting xdg scripts do their thing without lxde-qt components getting involved.

br. Chr. 
Julien Lavergne

You received this message because you are subscribed to the Google
Groups "Razor-qt" group.
For more options, visit this group at
You received this message because you are subscribed to the Google Groups "Razor-qt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to razor-qt+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.