[Tutorials] 请教大神,如何给firefox创建一个桌面启动器?
Tofloor
poster avatar
Linux小白2019
deepin
2021-12-15 22:27
Author

自己下载了最新版的firefox(因为应用中心装的不是最新版,它老是提示我升级),但是,它解压出来就是一个文件夹,不是deb包,里面有个firefox的文件,点它可以直接使用。但是呢,有2个问题,一个是图标比较难看,另一个就是它每次都要询问是否运行。

请教大神们,如何让它正常化?就是把图标变正常,然后启动时不要再询问是否运行。

Reply Favorite View the author
All Replies
deepin-superuser
deepin
2021-12-15 22:36
#1
touch firefox.desktop
deepin-editor firefox.desktop

输入以下内容后保存(Exec=/home/xxxxxx/program/firefox/firefox %U 替换成你安装火狐的路径)

[Desktop Entry]
Name=Firefox
Exec=/home/xxxxxx/program/firefox/firefox %U
Icon=firefox
Type=Application
Categories=Network;WebBrowser;
MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;

复制图标到启动器中

sudo cp firefox.desktop /usr/share/applications/firefox.desktop
Reply View the author
云的眼泪
deepin
2021-12-15 22:49
#2

在应用商店安装firefox,以管理员身份打开它的安装目录,一般在/opt/apps/com.mozilaa.firefox-zh/files

用你下载的最新文件替换掉原文件,就是最新版了。

Reply View the author
kirin2020
deepin
2021-12-15 22:49
#3

楼上正解

Reply View the author
Linux小白2019
deepin
2021-12-15 23:30
#4
deepin-superuser
touch firefox.desktop
deepin-editor firefox.desktop

输入以下内容后保存(Exec=/home/xxxxxx/program/firefox/firefox %U 替换成你安装火狐的路径)

[Desktop Entry]
Name=Firefox
Exec=/home/xxxxxx/program/firefox/firefox %U
Icon=firefox
Type=Application
Categories=Network;WebBrowser;
MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;

复制图标到启动器中

sudo cp firefox.desktop /usr/share/applications/firefox.desktop

礼貌性的感谢回复!(但是对于小白来说完全看不懂)

Reply View the author
zijinyise
deepin
2021-12-15 23:56
#5
Linux小白2019

礼貌性的感谢回复!(但是对于小白来说完全看不懂)

新建文件(touch) 命名为 firefox.desktop

编辑器打开(deepin-editor) 刚创建的文件 firefox.desktop

把一大串复制到 firefox.desktop文本内

然后ctrl + alt + t 打开终端

粘贴 sudo cp firefox.desktop /usr/share/applications/firefox.desktop命令,按回车

Reply View the author
rhymos
deepin
2021-12-16 01:46
#6

小白点的方式

右键在文档或者桌面新建一个文本文档 文管设置关闭重命名时隐藏文本扩展名

把楼上给的内容复制粘贴到文档里

修改

Exec=/home/xxxxxx/program/firefox/firefox %U

为你安装的火狐路径, 一般下载安装大概是 /opt/apps/firefox/firefox

icon可能要指定路径

保存

修改文件名为 firefox.desktop

右键管理员身份打开 /usr/share/applications/ 把文件拷贝进去

Reply View the author
Linux小白2019
deepin
2021-12-16 02:35
#7
rhymos

小白点的方式

右键在文档或者桌面新建一个文本文档 文管设置关闭重命名时隐藏文本扩展名

把楼上给的内容复制粘贴到文档里

修改

Exec=/home/xxxxxx/program/firefox/firefox %U

为你安装的火狐路径, 一般下载安装大概是 /opt/apps/firefox/firefox

icon可能要指定路径

保存

修改文件名为 firefox.desktop

右键管理员身份打开 /usr/share/applications/ 把文件拷贝进去

衷心感谢!

Reply View the author
Linux小白2019
deepin
2021-12-16 02:36
#8
zijinyise

新建文件(touch) 命名为 firefox.desktop

编辑器打开(deepin-editor) 刚创建的文件 firefox.desktop

把一大串复制到 firefox.desktop文本内

然后ctrl + alt + t 打开终端

粘贴 sudo cp firefox.desktop /usr/share/applications/firefox.desktop命令,按回车

衷心感谢!

教我这种linux小白,就应该这样教!thanks

Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2021-12-16 06:26
#9
Linux小白2019

衷心感谢!

教我这种linux小白,就应该这样教!thanks

星火应用商店搜索

桌面快捷方式生成器

Reply View the author
Linux小白2019
deepin
2021-12-16 22:46
#10
神末shenmo

星火应用商店搜索

桌面快捷方式生成器

thanks

果然是好东西啊!顺便还下载了linux版的微信,把wine版的给踢出去了!咋感觉这么爽呢!如果有全部功能的linux版QQ或者TIM就完美了!

Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2021-12-17 05:49
#11
Linux小白2019

thanks

果然是好东西啊!顺便还下载了linux版的微信,把wine版的给踢出去了!咋感觉这么爽呢!如果有全部功能的linux版QQ或者TIM就完美了!

巧妇难为无米之炊啊

如果你想要更好看的微信,可以搜索下wewechat

只不过没有汉化,界面更美观了

Reply View the author
Linux小白2019
deepin
2021-12-17 22:16
#12
神末shenmo

巧妇难为无米之炊啊

如果你想要更好看的微信,可以搜索下wewechat

只不过没有汉化,界面更美观了

我个人对界面倒没有太大要求,主要是功能够用,又是linux原生就可以了,使用会比较顺畅。wine版的软件,包括QQ、tim,都不是太顺畅。thanks

Reply View the author
Linux小白2019
deepin
2021-12-17 22:16
#13
神末shenmo

巧妇难为无米之炊啊

如果你想要更好看的微信,可以搜索下wewechat

只不过没有汉化,界面更美观了

我个人对界面倒没有太大要求,主要是功能够用,又是linux原生就可以了,使用会比较顺畅。wine版的软件,包括QQ、tim,都不是太顺畅。thanks

Reply View the author
four
deepin
2021-12-27 18:56
#14

请问下,这样新建的图标创建完后一切正常,在电脑重启后,启动器那里找不到新建的图标,但是在file:///usr/share/applications中还是存在的,这种情况怎么解决?

Reply View the author
Linux小白2019
deepin
2021-12-27 22:02
#15
four

请问下,这样新建的图标创建完后一切正常,在电脑重启后,启动器那里找不到新建的图标,但是在file:///usr/share/applications中还是存在的,这种情况怎么解决?

你是想让它出现再桌面么?如果是,去把它复制粘贴到桌面就可以用。

Reply View the author