可执行文件如何变成应用程序
Tofloor
poster avatar
chenlingkan
deepin
2019-09-28 04:36
Author
我在火狐官网(真正的官网,不是.cn盗版)下载了火狐浏览器,解压开来是可执行文件。在不驻留任务栏的情况下,必须双击,然后点击打开。谁能用最简单、最直白的方法告诉我,如何将它变成应用程序,就是在桌面可以双击打开的那种,还有就是可以将它放在启动器里面。
Reply Favorite View the author
All Replies
avatar
173******56
deepin
2019-09-28 05:37
#1
https://wiki.archlinux.org/index.php/Desktop_entries_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
Reply View the author
avatar
chenlingkan
deepin
2019-09-28 05:59
#2
https://bbs.deepin.org/post/183192
https://wiki.archlinux.org/index.php/Desktop_entries_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)

你这个有点复杂,看不懂啊
Reply View the author
avatar
走钢丝
deepin
2019-09-28 06:20
#3
早给你说了。。把开始菜单中的软件图标发送到桌面上,这就是 desktop 文件。。右键用编辑器打开根据你的 firefox 位置修改,完成后放到 ~/.local/shre/applications 中就好了。。
Reply View the author
avatar
chenlingkan
deepin
2019-09-28 21:08
#4
https://bbs.deepin.org/post/183192
早给你说了。。把开始菜单中的软件图标发送到桌面上,这就是 desktop 文件。。右键用编辑器打开根据你的 fi ...

我把QQ发射到桌面  看不懂代码  ,然后把网易发射过去,改了一部分 ,打开来还是网易云
Reply View the author
avatar
chenlingkan
deepin
2019-09-28 21:09
#5
https://bbs.deepin.org/post/183192
早给你说了。。把开始菜单中的软件图标发送到桌面上,这就是 desktop 文件。。右键用编辑器打开根据你的 fi ...

我把QQ发射到桌面  看不懂代码  ,然后把网易发射过去,改了一部分 ,打开来还是网易云
Reply View the author
avatar
走钢丝
deepin
2019-09-28 21:13
#6
https://bbs.deepin.org/post/183192
我把QQ发射到桌面  看不懂代码  ,然后把网易发射过去,改了一部分 ,打开来还是网易云 ...

Exec 那一行,就是启动程序的命令。。你这里可以用绝对路径,就是从 / 开始的路径。。其他的都是描述性的东西,还有显示的图标什么的。。
Reply View the author
avatar
bigben446
deepin
2019-09-28 21:48
#7
chenlingkan 发表于 2019-9-28 13:09
我把QQ发射到桌面  看不懂代码  ,然后把网易发射过去,改了一部分 ,打开来还是网易云 ...

你把你的代码和firefox的安装位置贴上来,这样别人才能告诉你怎么改
Reply View the author
avatar
chenlingkan
deepin
2019-09-28 23:07
#8
https://bbs.deepin.org/post/183192
你把你的代码和firefox的安装位置贴上来,这样别人才能告诉你怎么改

我是从CHROME下载的,下载完成后,在下载文件夹里。


这是网易云音乐发送到桌面的,右键出来的代码。
[Desktop Entry]
Version=1.0
Type=Application
Name=NetEase Cloud Music
Name[zh_CN]=网易云音乐
Name[zh_TW]=網易雲音樂
Comment=NetEase Cloud Music
Comment[zh_CN]=网易云音乐
Comment[zh_TW]=網易雲音樂
Icon=netease-cloud-music
Exec=netease-cloud-music %U
Categories=AudioVideolayer;
Terminal=false
StartupNotify=true
StartupWMClass=netease-cloud-music
MimeType=audio/aac;audio/flac;audio/mp3;audio/mp4;audio/mpeg;audio/ogg;audio/x-ape;audio/x-flac;audio/x-mp3;audio/x-mpeg;audio/x-ms-wma;audio/x-vorbis;audio/x-vorbis+ogg;audio/x-wav;
X-Deepin-CreatedBy=com.deepin.dde.daemon.Launcher
X-Deepin-AppID=netease-cloud-music

网易云音乐的位置在/usr/share/applications
Reply View the author