
im-config
在選擇並儲存我想要使用的內容後,請嘗試變更我的輸入法並輸出此內容。
head: error reading ‘adt-bundle-linux-x86_64-20140702’: Is a directory
tail: error reading ‘adt-bundle-linux-x86_64-20140702’: Is a directory
E: Configuration in adt-bundle-linux-x86_64-20140702 is manually managed. Doing nothing.
為什麼 im-config 嘗試讀取我的主資料夾中的目錄?因為這使我無法將輸入法更改default
為ibus
如何告訴 im-config 更改我的輸入法而不嘗試讀取我的主資料夾中的目錄?它不應該這樣做,它應該改變我的im-config
選擇。
為了產生這個錯誤,我所做的就是;
sudo im-config
[sudo] password for user:
** (zenity:20841): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
** (zenity:20841): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
(zenity:20841): IBUS-WARNING **: The owner of /home/user/.config/ibus/bus is not root!
** (zenity:20852): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
** (zenity:20852): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
head: error reading ‘adt-bundle-linux-x86_64-20140702’: Is a directory
tail: error reading ‘adt-bundle-linux-x86_64-20140702’: Is a directory
E: Configuration in adt-bundle-linux-x86_64-20140702 is manually managed. Doing nothing.
我需要能夠更改我的輸入法,以便 iBus 能夠與 iBus-Anthy 等其他語言輸入以及一些需要它實際上可以讀取的輸入法的應用程序正常工作,因為它在默認情況下無法正常工作選定於.
我還檢查過im-config
以普通用戶級別運行仍然會出現與嘗試以 root 身份運行時相同的錯誤。
答案1
我最終找到了我最終找到的解決方案,在im-config
沒有任何選項的情況下輸入gnome-terminal
會產生這些錯誤之前;
head: error reading ‘adt-bundle-linux-x86_64-20140702’: Is a directory
tail: error reading ‘adt-bundle-linux-x86_64-20140702’: Is a directory
E: Configuration in adt-bundle-linux-x86_64-20140702 is manually managed. Doing nothing.
在主目錄中,如果沒有.xinputrc
文件,那麼在您使用 GUI 介面進行選擇後,它會嘗試寫入目錄,zenity
而不是建立新文件並寫入.xinputrc
解決方案:
在終端機中而不是僅僅im-config
單獨輸入;
$ im-config -c
相反,您將透過終端螢幕進行配置以正確完成設置,並將正確建立.xinputrc
檔案並將其寫入主目錄,而不會出現嘗試寫入目錄的錯誤。
答案2
im-config 不應該以 root 身分執行。
嘗試執行此命令:
sudo rm ~/.xinputrc
然後再次在沒有 sudo 的情況下執行 im-config 。