On 01/10/2017 02:32 PM, Pavel Sanda wrote:
Richard Heck wrote:
That would definitely work for me, provided that xdg-open was first
rather than last on each list. Since it uses the system default
applications, it seems to me it belongs at the start of the lists.
Pavel will probably explain why we keep deciding not to do this. I can't
remember.
No need to remember, the link for xdg-open issues is right in the script.
For the rest, I am not going to fanatically fight it but I indeed feel
uneasy enough about the comprehesivness.
Some parts what you write make sense. But if wine is the culprit, isn't
the proper solution to put notepad at the end of the list in the first
place? You say it earns spot of evince. Hot that implies the changes
in dvi? etc.
To sum up I let someone else commit and take responsibility for that :)
Pavel
I randomly sampled the email archive regarding xdg-open (didn't have
time to check all the messages), and I can appreciate why it was not
adopted back then.
Today I ran 'printenv | grep -i desktop' on both my laptop and PC. Both
run Linux Mint, but with different display managers. On the laptop the
result contained
XDG_SESSION_DESKTOP=xfce
XDG_CURRENT_DESKTOP=XFCE
while on the PC it contained
XDG_SESSION_DESKTOP=mate
XDG_CURRENT_DESKTOP=MATE
reflecting the difference in display managers. I didn't see any mention
of those two variables in the old threads, so perhaps they've been added
recently.
I wonder if the configuration script could check for the existence of an
environmental variable named XDG_CURRENT_DESKTOP, use xdg-open if found,
and use the current list if not found? Unfortunately, I can't test the
presence of this variable on non-Mint systems, but perhaps others can.
Even if some systems with xdg-utils installed are missed, those users
would be no worse off than they are now.
Paul