如何让程序不每次打开都出现询问对话框?
Tofloor
poster avatar
Ligocut光剪视频剪辑软件
deepin
Backbone of ecological co-construction group
2019-09-02 00:53
Author
如何让程序不每次打开都出现这个询问对话框?

让他变为直接双击就运行
Reply Favorite View the author
All Replies
avatar
Ligocut光剪视频剪辑软件
deepin
Backbone of ecological co-construction group
2019-09-02 01:01
#1
UP UP UP
Reply View the author
avatar
symbol
deepin
2019-09-02 03:27
#2
写个快捷方式图标,默认gui即可
Reply View the author
avatar
Ligocut光剪视频剪辑软件
deepin
Backbone of ecological co-construction group
2019-09-09 07:59
#3
UPUPUP         
Reply View the author
avatar
撕夜灬小诺
deepin
2019-09-09 16:28
#4
自己写一个.desktop文件就好了
新建一个空白文本,把下面这段复制进去:

[Desktop Entry]
Version=1.0
Name=Firefox Web Browser
Name[zh_CN]=Firefox 网络浏览器
Name[zh_TW]=Firefox 網路瀏覽器
Comment=Browse the World Wide Web
Comment[zh_CN]=浏览互联网
Comment[zh_TW]=瀏覽網際網路
GenericName=Web Browser
GenericName[zh_CN]=网络浏览器
GenericName[zh_TW]=網路瀏覽器
Keywords=Internet;WWW;Browser;Web;Explorer
Keywords[zh_CN]=Internet;WWW;Browser;Web;Explorer;网页;浏览;上网;火狐;Firefox;ff;互联网;网站;
Keywords[zh_TW]=Internet;WWW;Browser;Web;Explorer;網際網路;網路;瀏覽器;上網;網頁;火狐
Exec=firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=firefox
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
StartupNotify=true
Actions=new-window;new-private-window;

[Desktop Action new-window]
Name=Open a New Window
Name[zh_CN]=新建窗口
Name[zh_TW]=開啟新視窗
Exec=firefox -new-window

[Desktop Action new-private-window]
Name=Open a New Private Window
Name[zh_CN]=新建隐私窗口
Name[zh_TW]=開啟新隱私瀏覽視窗
Exec=firefox -private-window

然后文件名改为 firefox.desktop ,放到/usr/share/applications/路径下,或者是 ~/.local/share/applications 路径下。
Reply View the author