所以,我无法在 Debian 9 上安装“Breeze for GTK”主题。我从以下位置下载了文件官方 git 页面当我将文件移动到 ./themes 文件夹系统时,没有读取它们。
执行时./build_theme.sh
会出现下一条消息:
/home/pc_home/.config/kdeglobals not found, using defaults
Traceback (most recent call last):
File "render_assets.py", line 717, in <module>
_colors = ReadKdeGlobals(args.basecolorscheme).read_globals(args.colorscheme)
File "render_assets.py", line 23, in __init__
self._colors = self.read_globals(base_file_name)
File "render_assets.py", line 26, in read_globals
with open(filename, 'r', encoding="utf-8") as _kde:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/color-schemes/Breeze.colors'
答案1
程序:
- 克隆存储库:
git clone git://anongit.kde.org/breeze-gtk
- 安装所需的包:
sudo apt install \
libgtk-3-dev \
gtk2-engines-pixbuf \
sassc \
python3 \
python3-pip
- 安装 cairo python 模块:
pip3 install pycairo
- 下载所需的配色方案:
Ver=5.15.5
wget https://download.kde.org/stable/plasma/$Ver/breeze-$Ver.tar.xz
tar -xf breeze-$Ver.tar.xz breeze-$Ver/colors
mv breeze-$Ver/colors colors
- 运行构建脚本:
cd breeze-gtk/src
sh ./build_theme.sh -r ~/colors
运行sh ./build_theme.sh --help
以获取使用详细信息。