Changeset View
Changeset View
Standalone View
Standalone View
startkde/startplasmacompositor.cmake
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Line(s) | |||||
124 | fi | 124 | fi | ||
125 | 125 | | |||
126 | if test "$kcmfonts_general_forcefontdpiwayland" -ne 0; then | 126 | if test "$kcmfonts_general_forcefontdpiwayland" -ne 0; then | ||
127 | export QT_WAYLAND_FORCE_DPI=$kcmfonts_general_forcefontdpiwayland | 127 | export QT_WAYLAND_FORCE_DPI=$kcmfonts_general_forcefontdpiwayland | ||
128 | else | 128 | else | ||
129 | export QT_WAYLAND_FORCE_DPI=96 | 129 | export QT_WAYLAND_FORCE_DPI=96 | ||
130 | fi | 130 | fi | ||
131 | 131 | | |||
132 | # Get a property value from org.freedesktop.locale1 | ||||
133 | queryLocale1() { | ||||
134 | "${qdbus}" --system org.freedesktop.locale1 /org/freedesktop/locale1 "$1" | ||||
135 | } | ||||
136 | | ||||
137 | # Query whether org.freedesktop.locale1 is available. If it is, try to | ||||
138 | # set XKB_DEFAULT_{MODEL,LAYOUT,VARIANT,OPTIONS} accordingly. | ||||
139 | if "${qdbus}" --system org.freedesktop.locale1 >/dev/null 2>/dev/null; then | ||||
140 | # Do not overwrite existing values. There is no point in setting only some | ||||
141 | # of them as then they would not match anymore. | ||||
142 | if [ -z "${XKB_DEFAULT_MODEL}" -a -z "${XKB_DEFAULT_LAYOUT}" -a \ | ||||
143 | -z "${XKB_DEFAULT_VARIANT}" -a -z "${XKB_DEFAULT_OPTIONS}" ]; then | ||||
144 | X11MODEL="$(queryLocale1 org.freedesktop.locale1.X11Model)" | ||||
145 | X11LAYOUT="$(queryLocale1 org.freedesktop.locale1.X11Layout)" | ||||
146 | X11VARIANT="$(queryLocale1 org.freedesktop.locale1.X11Variant)" | ||||
147 | X11OPTIONS="$(queryLocale1 org.freedesktop.locale1.X11Options)" | ||||
148 | [ -n "${X11MODEL}" ] && export XKB_DEFAULT_MODEL="${X11MODEL}" | ||||
149 | [ -n "${X11LAYOUT}" ] && export XKB_DEFAULT_LAYOUT="${X11LAYOUT}" | ||||
150 | [ -n "${X11VARIANT}" ] && export XKB_DEFAULT_VARIANT="${X11VARIANT}" | ||||
151 | [ -n "${X11OPTIONS}" ] && export XKB_DEFAULT_OPTIONS="${X11OPTIONS}" | ||||
152 | fi | ||||
153 | fi | ||||
154 | | ||||
132 | # Source scripts found in <config locations>/plasma-workspace/env/*.sh | 155 | # Source scripts found in <config locations>/plasma-workspace/env/*.sh | ||
133 | # (where <config locations> correspond to the system and user's configuration | 156 | # (where <config locations> correspond to the system and user's configuration | ||
134 | # directories, as identified by Qt's qtpaths, e.g. $HOME/.config | 157 | # directories, as identified by Qt's qtpaths, e.g. $HOME/.config | ||
135 | # and /etc/xdg/ on Linux) | 158 | # and /etc/xdg/ on Linux) | ||
136 | # | 159 | # | ||
137 | # This is where you can define environment variables that will be available to | 160 | # This is where you can define environment variables that will be available to | ||
138 | # all KDE programs, so this is where you can run agents using e.g. eval `ssh-agent` | 161 | # all KDE programs, so this is where you can run agents using e.g. eval `ssh-agent` | ||
139 | # or eval `gpg-agent --daemon`. | 162 | # or eval `gpg-agent --daemon`. | ||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |