Comment 1 for bug 220774

Revision history for this message
Nicholas Guriev (mymedia) wrote :

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=9df7480816442225cc59373d62a475247318b0d8#n55