diff options
author | Aníbal Limón <anibal.limon@linaro.org> | 2018-01-11 11:51:48 -0600 |
---|---|---|
committer | Aníbal Limón <anibal.limon@linaro.org> | 2018-01-11 12:29:40 -0600 |
commit | 04bf3938f87ea06561796a8ab86f4125e7c79406 (patch) | |
tree | 7d03cde00c9dc7b5db8ef7f07613a589e890c9d7 | |
parent | 1e243797ffc16599166df160d9900de7af252639 (diff) |
scripts/LINARO: 23-customize-lxqt.chroot copy /usr/share config to user
Debian buster comes with QT 5.9.2 and LxQT only use
WITH_XDG_DIRS_FALLBACK when QT version is minor than 5.9.0 [1][2] causing
to don't copy to the user the configuration files from /etc/xdg.
In LxQT 0.11 version the fallback is enabled, search for "XDG fallback
workaround" in [3] and in LxQT 0.12 not appears [4].
[1] https://github.com/lxde/liblxqt/blob/master/CMakeLists.txt#L294
[2] https://github.com/lxde/liblxqt/blob/master/lxqtsettings.cpp#L60
[3] https://buildd.debian.org/status/fetch.php?pkg=liblxqt&arch=arm64&ver=0.11.1-2&stamp=1499020213&raw=0
[4] https://buildd.debian.org/status/fetch.php?pkg=liblxqt&arch=arm64&ver=0.12.0-4&stamp=1512363339&raw=0
Change-Id: Icc03a4c4bfd480f8101d32b9bfee76fe740222db
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
-rwxr-xr-x | scripts/LINARO/23-customize-lxqt.chroot | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/scripts/LINARO/23-customize-lxqt.chroot b/scripts/LINARO/23-customize-lxqt.chroot index d9c4073..5322948 100755 --- a/scripts/LINARO/23-customize-lxqt.chroot +++ b/scripts/LINARO/23-customize-lxqt.chroot @@ -3,17 +3,19 @@ set -e # Customize lxqt defaults if [ -e $target/usr/share/lxqt/lxqt.conf ]; then - # Copy files from /usr/share to /etc/xdg - mkdir -p $target/etc/xdg/lxqt - cp $target/usr/share/lxqt/lxqt.conf $target/etc/xdg/lxqt - cp $target/usr/share/lxqt/session.conf $target/etc/xdg/lxqt - mkdir -p $target/etc/xdg/pcmanfm-qt/lxqt/ - cp $target/usr/share/pcmanfm-qt/lxqt/settings.conf $target/etc/xdg/pcmanfm-qt/lxqt + # Copy config files from /usr/share to linaro user + mkdir -p $target/home/linaro/.config/lxqt + cp $target/usr/share/lxqt/lxqt.conf $target/home/linaro/.config/lxqt + cp $target/usr/share/lxqt/session.conf $target/home/linaro/.config/lxqt + mkdir -p $target/home/linaro/.config/pcmanfm-qt/lxqt + cp $target/usr/share/pcmanfm-qt/lxqt/settings.conf $target/home/linaro/.config/pcmanfm-qt/lxqt - sed -i "s|^theme=.*|theme=kde-plasma|" $target/etc/xdg/lxqt/lxqt.conf - sed -i "s|^icon_theme=.*|icon_theme=breeze|" $target/etc/xdg/lxqt/lxqt.conf - sed -i "s|^style=.*|style=Breeze|" $target/etc/xdg/lxqt/lxqt.conf - sed -i "s|^window_manager=.*|window_manager=kwin|" $target/etc/xdg/lxqt/session.conf - sed -i "s|^cursor_theme=.*|cursor_theme=breeze_cursors|" $target/etc/xdg/lxqt/session.conf - sed -i "s|^Wallpaper=.*|Wallpaper=/usr/share/96boards/wallpapers/96boards-default-wallpaper.jpg|" $target/etc/xdg/pcmanfm-qt/lxqt/settings.conf + sed -i "s|^theme=.*|theme=kde-plasma|" $target/home/linaro/.config/lxqt/lxqt.conf + sed -i "s|^icon_theme=.*|icon_theme=breeze|" $target/home/linaro/.config/lxqt/lxqt.conf + sed -i "s|^style=.*|style=Breeze|" $target/home/linaro/.config/lxqt/lxqt.conf + sed -i "s|^window_manager=.*|window_manager=kwin|" $target/home/linaro/.config/lxqt/session.conf + sed -i "s|^cursor_theme=.*|cursor_theme=breeze_cursors|" $target/home/linaro/.config/lxqt/session.conf + sed -i "s|^Wallpaper=.*|Wallpaper=/usr/share/96boards/wallpapers/96boards-default-wallpaper.jpg|" $target/home/linaro/.config/pcmanfm-qt/lxqt/settings.conf + + chroot $target chown -R linaro:linaro /home/linaro/.config fi |