xdg-open should allow user to force "desktop environment" detection
Bug #220774 reported by
John Carlyle-Clarke
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xdg-utils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: xdg-utils
The xdg-open code attempts to detect a desktop environment (GNOME, KDE, XFCE4, other) and choose a way of opening files accordingly.
Users of Fluxbox, Openbox and other WM's may have gnome-open or the corresponding KDE or XFCE components installed and may wish xdg-open to use them.
detectDE() could have code added to check for a variable - say XDG_OPEN_FORCE_DE - and use that value (kde, gnome, xfce, generic) instead of attemtpting a detection if it is present.
Changed in xdg-utils (Ubuntu): | |
status: | New → Confirmed |
To post a comment you must log in.
Such a variable to simulate any DE has been already invented. It is named XDG_CURRENT_ DESKTOP. To get a glimpse how to use it, see test cases. xdg-utils first try to use DE specific tools and, in case of error, fallback to internal implementations for generic mode.
https:/ /git.launchpad. net/ubuntu/ +source/ xdg-utils/ tree/autotests/ test-lib. sh?id=9df748081 6442225cc59373d 62a475247318b0d 8#n55