Linux Fedora20 配置desktop文件,将软件添加到应用程序浏览器中
来源:互联网 发布:long转int java 编辑:程序博客网 时间:2024/05/03 18:34
在fedora20上安装sublime text 3时发现,解压下载的sublime text 3后得到是一个文件夹,其中有可执行文件,并且有desktop文件。
关于linux desktop文件的介绍,阅读了IBM developerWorks 的 “ Linux Desktop Entry 文件深入解析 “
不知道为什么CSDN博客里禁用这个链接,把"."换成"。":
http://www。ibm。com/developerworks/cn/linux/l-cn-dtef/
我想把sublime放在home文件夹下的software下,于是修改了desktop文件。
原本desktop文件:
[Desktop Entry]Version=1.0Type=ApplicationName=Sublime TextGenericName=Text EditorComment=Sophisticated text editor for code, markup and proseExec=/opt/sublime_text/sublime_text %FTerminal=falseMimeType=text/plain;Icon=sublime-textCategories=TextEditor;Development;StartupNotify=trueActions=Window;Document;[Desktop Action Window]Name=New WindowExec=/opt/sublime_text/sublime_text -nOnlyShowIn=Unity;[Desktop Action Document]Name=New FileExec=/opt/sublime_text/sublime_text --command new_fileOnlyShowIn=Unity;
修改后的desktop文件:
#!/usr/bin/env xdg-open[Desktop Entry]Version=1.0Type=ApplicationName=Sublime TextGenericName=Text EditorComment=Sophisticated text editor for code, markup and proseExec=/home/ACM311/software/sublime_text_3/sublime_text %FTerminal=falseMimeType=text/plain;Icon=/home/ACM311/software/sublime_text_3/Icon/256x256/sublime-text.pngCategories=TextEditor;Development;StartupNotify=trueActions=Window;Document;[Desktop Action Window]Name=New WindowExec=/home/ACM311/software/sublime_text_3/sublime_text -nOnlyShowIn=Unity;[Desktop Action Document]Name=New FileExec=/home/ACM311/software/sublime_text_3/sublime_text --command new_fileOnlyShowIn=Unity;
将修改后的desktop文件用cp命令复制到/usr/share/applications下,这样在应用程序浏览器中就可以看到sublime了。
0 0
- Linux Fedora20 配置desktop文件,将软件添加到应用程序浏览器中
- fedora20 将eclipse的快捷方式添加到Applications中
- Linux操作系统如何将应用程序添加到菜单
- linux:将自己的程序添加到应用程序
- Linux将命令添加到PATH中
- Linux将命令添加到PATH中
- 是否将Active Desktop项添加到桌面?
- "是否将Active Desktop项添加到桌面?"
- 如何将自己的模块添加到Linux 2.6内核的配置系统中
- 将文件夹中的所有文件添加到zip文件中
- Linux---将文件复制到虚拟机中
- 如何将自己的应用程序编译到uCLinux/Linux中
- 在linux中添加应用程序到applications列表
- 【Linux】Linux将命令添加到PATH中
- Ubuntu 将应用程序添加到启动器
- Ubuntu将应用程序添加到启动器
- 将应用程序的快捷方式添加到右键“发送到”菜单中
- 将Nib控件添加到另一个Nib文件中
- 黑马程序员 Java基础_2 数据类型、运算符及应用
- 万州中医院做无痛人流
- 如何撰写项目计划书
- css模拟气泡对话框
- c与c++
- Linux Fedora20 配置desktop文件,将软件添加到应用程序浏览器中
- magento 负载一路飙涨记录
- Java 内部类种类及使用解析
- windows下Lua配置
- 配置Struts2时,报没有action与form表单填写的action对应的错误。
- mysql安装版一系列
- 关于使用struts2注解配置,action返回json到IE8及以下浏览器接收为undefined的问题
- hbase multiple SLF4J bindings 警告 问题解决办法
- SGU 185 Two shortest 最短路+最大流