dot/xinitrc: Tell desktoppy things that I run XFCE.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 23 Feb 2019 21:03:25 +0000 (21:03 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 23 Feb 2019 21:05:50 +0000 (21:05 +0000)
This isn't entirely true, but it persuades (for example) `xdg-open' to
do things less stupidly.

dot/xinitrc

index 76df3f2..cdb09ce 100755 (executable)
@@ -110,6 +110,10 @@ fi
 ## Assume X sessions are secure.
 export __mdw_sechost="$(hostname)"
 
+## Tell things that XFCE is in charge.  This is the most desktoppy thing that
+## I run, so it's not entirely wrong.
+: ${XDG_CURRENT_DESKTOP=XFCE}; export XDG_CURRENT_DESKTOP
+
 ## Obtain the screen dimensions.
 case ",$XWIDTH,$XHEIGHT," in
   *,,*) eval $(xscsize -bx; xscsize -bmx) ;;