Debian
如何在 Debian 9 上從源 Breeze 編譯 GTK 主題?
所以,我無法在 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'
程序:
- 複製儲存庫:
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
以獲取使用詳情。