← Back to team overview

desktop-packages team mailing list archive

[Bug 1388922] Re: xdg-open doesn't properly detect XFCE DE

 

Launchpad has imported 15 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=33321.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2011-01-20T22:35:43+00:00 George Kibardin wrote:

it seems that "xprop -root _DT_SAVE_MODE" doesn't work anymore

Reply at: https://bugs.launchpad.net/ubuntu/+source/xdg-
utils/+bug/1388922/comments/0

------------------------------------------------------------------------
On 2011-01-21T07:12:44+00:00 Christoph Wickert wrote:

Works fine for me:
$ xprop -root _DT_SAVE_MODE
_DT_SAVE_MODE(STRING) = "xfce4"

Reply at: https://bugs.launchpad.net/ubuntu/+source/xdg-
utils/+bug/1388922/comments/1

------------------------------------------------------------------------
On 2011-01-21T07:14:36+00:00 Rdieter-math wrote:

Reporter, what does
xprop -root _DT_SAVE_MODE
report for you then?

Reply at: https://bugs.launchpad.net/ubuntu/+source/xdg-
utils/+bug/1388922/comments/2

------------------------------------------------------------------------
On 2011-01-21T07:15:07+00:00 Rdieter-math wrote:

and what version of xdg-utils are you using?

Reply at: https://bugs.launchpad.net/ubuntu/+source/xdg-
utils/+bug/1388922/comments/3

------------------------------------------------------------------------
On 2011-01-21T07:22:03+00:00 Rdieter-math wrote:

I suppose we could fallback to try $DESKTOP_SESSION env, on my xfce-4.6
environment, it reports

$ echo $DESKTOP_SESSION
xfce4

(and apparently xfce 4.8 returns just 'xfce', but I'd like to confirm if
you see that too)

Reply at: https://bugs.launchpad.net/ubuntu/+source/xdg-
utils/+bug/1388922/comments/4

------------------------------------------------------------------------
On 2011-01-21T10:27:42+00:00 George Kibardin wrote:

xprop -root _DT_SAVE_MODE is used by xdg-open script to detect that
currently running DE is xfce. For me it worked fine in xfce 4.6, but in
4.8 it doesn't work.

$ echo $DESKTOP_SESSION
xfce

(not xfce4)

I'm using xdg-utils 1.0.2 in Arch

Reply at: https://bugs.launchpad.net/ubuntu/+source/xdg-
utils/+bug/1388922/comments/5

------------------------------------------------------------------------
On 2011-01-21T10:29:26+00:00 George Kibardin wrote:

Sorry, forgot to paste this:

$ xprop -root _DT_SAVE_MODE
_DT_SAVE_MODE:  no such atom on any window.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xdg-
utils/+bug/1388922/comments/6

------------------------------------------------------------------------
On 2011-02-06T13:53:50+00:00 mkkot wrote:

Confirming this problem. I use Archlinux as the reporter. People, it's
really serious, Chromium opens all files in Mozilla Firefox (!!) and
Xarchiver does the same. I had to manually edit all xdg-* scripts (can't
send a patch because it's a dirty hack :)

Reply at: https://bugs.launchpad.net/ubuntu/+source/xdg-
utils/+bug/1388922/comments/7

------------------------------------------------------------------------
On 2011-02-06T14:02:08+00:00 Rdieter-math wrote:

I'd suggestion someone with contact with xfce upstream... ask them how
best to detect it.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xdg-
utils/+bug/1388922/comments/8

------------------------------------------------------------------------
On 2011-02-06T22:13:43+00:00 George Kibardin wrote:

mkkot, as a workaround I would suggest to make "export DE=xfce"
somewhere. This act as a fallback entry for xdg-open when desktop
environment isn't detected.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xdg-
utils/+bug/1388922/comments/9

------------------------------------------------------------------------
On 2011-02-15T11:18:41+00:00 Iwtcex wrote:

Bug #25941 seems to be related.

(In reply to comment #9)
> mkkot, as a workaround I would suggest to make "export DE=xfce" somewhere. This
> act as a fallback entry for xdg-open when desktop environment isn't detected.

This doesn't work since this commit: http://cgit.freedesktop.org/xdg
/xdg-utils/commit/?id=c9551d250722081cbf7d6611f417bc597765e5c9 .

Reply at: https://bugs.launchpad.net/ubuntu/+source/xdg-
utils/+bug/1388922/comments/10

------------------------------------------------------------------------
On 2011-02-15T11:46:45+00:00 Rdieter-math wrote:

In retrospect, I'm unsure of the wisdom of clearing DE in that
referenced commit.  Perhaps that portion should be reverted (unless
there was some good reason for it, that I fail to fathom).

Reply at: https://bugs.launchpad.net/ubuntu/+source/xdg-
utils/+bug/1388922/comments/11

------------------------------------------------------------------------
On 2011-02-15T23:37:30+00:00 George Kibardin wrote:

(In reply to comment #11)
> In retrospect, I'm unsure of the wisdom of clearing DE in that referenced
> commit.  Perhaps that portion should be reverted (unless there was some good
> reason for it, that I fail to fathom).

Totally agree, I had to remove this line so that my workaround with
"export DE=xfce" could work again.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xdg-
utils/+bug/1388922/comments/12

------------------------------------------------------------------------
On 2011-02-26T18:08:41+00:00 Ja-safonau wrote:

Commenting out this DE clearing helped me. It doesn't overwrite my
"export DE=xfce" in .xinitrc. Ideally there should be a check if it was
already defined manually.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xdg-
utils/+bug/1388922/comments/13

------------------------------------------------------------------------
On 2011-03-28T08:52:55+00:00 Rdieter-math wrote:

this should hopefully do the trick:

http://cgit.freedesktop.org/xdg/xdg-
utils/commit/?id=a9d65ff51ce0dd40cf0cb39b0f3c36dca100c527

For posterity, I would still appreciate someone investigate why/how
xprop fails on some platforms and/or ping xfce upstream for a better or
proper way to detect it's use.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xdg-
utils/+bug/1388922/comments/14


** Changed in: xdg-utils
       Status: Unknown => Fix Released

** Changed in: xdg-utils
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xdg-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1388922

Title:
  xdg-open doesn't properly detect XFCE DE

Status in Xdg-utils:
  Fix Released
Status in “xdg-utils” package in Ubuntu:
  Confirmed

Bug description:
  xdg-open doesn't detect the XFCE desktop environment on its fresh install on Ubuntu (not Xubuntu).
  I was able to fix that by adding 'elif [ x"$DESKTOP_SESSION" = x"xubuntu" ]; then DE=xfce;' line in 'detectDE()' function.

To manage notifications about this bug go to:
https://bugs.launchpad.net/xdg-utils/+bug/1388922/+subscriptions


References