80xapp-gtk3-module.sh: Use GTK3_MODULES instead of GTK_MODULES.
Currently gtk2 (and qt, when using the 'gtk2' theme style) programs
are trying to load the xapp module even though they're not supported.
This is harmless but can cause alarm.
This will prevent gtk2 from seeing this module.
Michael Webster
3 years ago
0 | 0 | #!/bin/bash |
1 | 1 | # This file is sourced by xinit(1) or a display manager's Xsession, not executed. |
2 | 2 | |
3 | if [ -z "$GTK_MODULES" ] ; then | |
4 | GTK_MODULES="xapp-gtk3-module" | |
3 | if [ -z "$GTK3_MODULES" ] ; then | |
4 | GTK3_MODULES="xapp-gtk3-module" | |
5 | 5 | else |
6 | GTK_MODULES="$GTK_MODULES:xapp-gtk3-module" | |
6 | GTK3_MODULES="$GTK3_MODULES:xapp-gtk3-module" | |
7 | 7 | fi |
8 | 8 | |
9 | export GTK_MODULES | |
9 | export GTK3_MODULES |