顯示具有 not present in theme Adwaita 標籤的文章。 顯示所有文章
顯示具有 not present in theme Adwaita 標籤的文章。 顯示所有文章

2023年8月9日 星期三

WSL上 '元件'not present in theme Adwaita解決方案

之前介紹了不少關於WSL上的操作,

事實上部分操作還得解決一些小問題,

主要原因在於WSL是經過微軟輕量化的,

只需要安裝相關的套件就能解決這些小問題

WSL上 '元件'not present in theme Adwaita解決方案

今天這個問題:

 '元件' not present in theme Adwaita

有可能出現在 meld 或者 gedit 等這些常用的工具,

範例中是在執行 meld 比對軟體出現問題,


錯誤訊息有很多行,

其中包含了

gi.repository.GLib.Error: gtk-icon-theme-error-quark: Icon 'folder' not present in theme Adwaita (0)

其他類似問題,像是:

'text-x-generic' not present in theme Adwaita

解決的方式都是同樣的

猜想應該是工具呼叫了某個元件失敗導致


剛才也有提到過 WSL的 Ubuntu 是經過輕量化的,

少了某些元件也很正常

解決的方式也很簡單,

安裝需要的元件即可,

此處使用命令:

sudo apt install adwaita-icon-theme-full

安裝之後重新打開 meld,

就能夠正常執行了