gvim自己编译没有图标
Tofloor
poster avatar
Ethan
deepin
2016-12-14 23:48
Author
vim版本:8.0
编译命令:
./configure --prefix=/usr/local --with-features=huge

gvim没有图标!!!好难看。

Reply Favorite View the author
All Replies
avatar
Ethan
deepin
2016-12-14 23:49
#1
怎么办,求大神答复。
Reply View the author
avatar
jingle
deepin
2016-12-15 16:58
#2
https://bbs.deepin.org/post/133045
怎么办,求大神答复。

自己去创建一个》desktop文件
Reply View the author
avatar
133******90
deepin
2016-12-15 17:14
#3
在~/.local/share/applications/或者/usr/share/applications下面模仿里面的.desktop文件写一个就行了
Reply View the author
avatar
Ethan
deepin
2016-12-15 17:46
#4
https://bbs.deepin.org/post/133045
自己去创建一个》desktop文件

谢谢了。但是我看gvim有好多个图标,48x48,32x32,16x16的。我现在只能绝对路径寻找icon。理论上可以相对,自动匹配的。

我的destop文件
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=gvim
Icon=/home/xxx/Self/share/icons/hicolor/48x48/apps/gvim.png
Path=/home/xxx/Self
Exec=/home/xxx/Self/bin/gvim
StartupNotify=false
StartupWMClass=Gvim
OnlyShowIn=Unity;
X-UnityGenerated=true

gvim安装路径
/home/xxx/Self

我的图标位置
xxx@/home/xxx/Self> tree share/icons/
share/icons/
├── hicolor
│   └── 48x48
│       └── apps
│           └── gvim.png
└── locolor
    ├── 16x16
    │   └── apps
    │       └── gvim.png
    └── 32x32
        └── apps
            └── gvim.png

8 directories, 3 files

我的destop文件该怎么修改,让它能用相对路径匹配呢?
Reply View the author
avatar
Ethan
deepin
2016-12-15 17:46
#5
https://bbs.deepin.org/post/133045
在~/.local/share/applications/或者/usr/share/applications下面模仿里面的.desktop文件写一个就行了 ...

谢谢了。但是我看gvim有好多个图标,48x48,32x32,16x16的。我现在只能绝对路径寻找icon。理论上可以相对,自动匹配的。

我的destop文件
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=gvim
Icon=/home/xxx/Self/share/icons/hicolor/48x48/apps/gvim.png
Path=/home/xxx/Self
Exec=/home/xxx/Self/bin/gvim
StartupNotify=false
StartupWMClass=Gvim
OnlyShowIn=Unity;
X-UnityGenerated=true

gvim安装路径
/home/xxx/Self

我的图标位置
xxx@/home/xxx/Self> tree share/icons/
share/icons/
├── hicolor
│   └── 48x48
│       └── apps
│           └── gvim.png
└── locolor
    ├── 16x16
    │   └── apps
    │       └── gvim.png
    └── 32x32
        └── apps
            └── gvim.png

8 directories, 3 files

我的destop文件该怎么修改,让它能用相对路径匹配呢?
Reply View the author
avatar
133******90
deepin
2016-12-15 18:07
#6
https://bbs.deepin.org/post/133045
谢谢了。但是我看gvim有好多个图标,48x48,32x32,16x16的。我现在只能绝对路径寻找icon。理论上可以相对 ...

这个不太清楚,屏幕不经常切换的话,就从48x48,32x32,16x16里面先设置一个吧
Reply View the author
avatar
Ethan
deepin
2016-12-15 20:38
#7
https://bbs.deepin.org/post/133045
这个不太清楚,屏幕不经常切换的话,就从48x48,32x32,16x16里面先设置一个吧

好的。谢谢!
Reply View the author