解决ssh远程连接时无法使用meld对比文件夹的问题

ubuntu20.04的主机通过ssh远程连接ubuntu16.04/18.04主机时(使用ssh -X参数连接远程主机),使用meld时发现对比远程主机上的单个文件时正常,但对比远程主机目录内容会报错

icon 'folder' not present in theme yaru

 这是因为远程主机上没有安装yaru主题的icon导致的,通过google找到了解决办法

https://askubuntu.com/questions/1167689/getting-yaru-icon-theme-on-ubuntu-18-04

总结方法如下:

1. 访问https://github.com/ubuntu/yaru,下载源代码(Download zip文件即可)

2. 在远程主机上解压源代码(yaru-master.zip),并拷贝icons/Suru到~/.local/share/icons

3. 到~/.local/share/icons目录,将Suru重命名为Yaru

4. 执行"gsettings set org.gnome.desktop.interface icon-theme Yaru"切换icon-theme
 

unzip yaru-master.zip
cp yaru-master/icons/Suru/ ~/.local/share/icons/ -r
cd ~/.local/share/icons
mv Suru Yaru
gsettings set org.gnome.desktop.interface icon-theme Yaru

然后再使用meld,就正常了

上一篇:oh my zsh theme 设置


下一篇:个人sublime配色方案