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.
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