summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2015-03-22 17:50:32 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2015-03-22 17:50:32 +0000
commit2e1631d99cbe165cdd8dec2539f229472bdf9336 (patch)
tree2f43007afa6a2e23372c1e411e0f8eb7580e8fa1 /gnome-base/gnome-session/files
parentVersion bump (diff)
downloadgentoo-2-2e1631d99cbe165cdd8dec2539f229472bdf9336.tar.gz
gentoo-2-2e1631d99cbe165cdd8dec2539f229472bdf9336.tar.bz2
gentoo-2-2e1631d99cbe165cdd8dec2539f229472bdf9336.zip
Set XCURSOR_THEME from current dconf settings so non-gtk applications get the right mouse cursor. Note: you will have to log out and back in to update the env variable after changing the mouse cursor in gnome-tweak-tool.
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x18E5B6F2D8D5EC8D)
Diffstat (limited to 'gnome-base/gnome-session/files')
-rw-r--r--gnome-base/gnome-session/files/90-xcursor-theme-gnome11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnome-base/gnome-session/files/90-xcursor-theme-gnome b/gnome-base/gnome-session/files/90-xcursor-theme-gnome
new file mode 100644
index 000000000000..13bc453c7854
--- /dev/null
+++ b/gnome-base/gnome-session/files/90-xcursor-theme-gnome
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ "$DESKTOP_SESSION" = "gnome" -o "$DESKTOP_SESSION" = "cinnamon" ]; then
+ XCURSOR_THEME=`dconf read /org/gnome/desktop/interface/cursor-theme` 2> /dev/null
+ if [ x"$XCURSOR_THEME" = "x" ]; then
+ export XCURSOR_THEME="Adwaita"
+ else
+ # 'dconf read' wraps string output in single quotes
+ eval export "XCURSOR_THEME=$XCURSOR_THEME"
+ fi
+fi