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

>
>
>
> 2013/11/19 christ...@surlykke.dk <christ...@surlykke.dk>
>
> Hi
>>
>> 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:
>>
>> diff --git a/startlxde-qt.in b/startlxde-qt.in
>> index 4a56d8d..8b1e7e3 100755
>> --- a/startlxde-qt.in
>> +++ b/startlxde-qt.in
>> @@ -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.


>
>
Regards,
> Julien Lavergne
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Razor-qt" group.
> For more options, visit this group at
> http://groups.google.com/group/razor-qt?hl=en
>
> ---
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to