- 浏览: 13649660 次
- 性别:
- 来自: 洛杉矶
文章分类
- 全部博客 (1994)
- Php / Pear / Mysql / Node.js (378)
- Javascript /Jquery / Bootstrap / Web (435)
- Phone / IOS / Objective-C / Swift (137)
- Ubuntu / Mac / Github / Aptana / Nginx / Shell / Linux (335)
- Perl / Koha / Ruby / Markdown (8)
- Java / Jsp (12)
- Python 2 / Wxpython (25)
- Codeigniter / CakePHP (32)
- Div / Css / XML / HTML5 (179)
- WP / Joomla! / Magento / Shopify / Drupal / Moodle / Zimbra (275)
- Apache / VPN / Software (31)
- AS3.0/2.0 / Flex / Flash (45)
- Smarty (6)
- SEO (24)
- Google / Facebook / Pinterest / SNS (80)
- Tools (22)
最新评论
-
1455975567:
xuezhongyu01 写道wocan23 写道我想问下那个 ...
Mysql: LBS实现查找附近的人 (两经纬度之间的距离) -
xuezhongyu01:
wocan23 写道我想问下那个111.1是怎么得来的我也看不 ...
Mysql: LBS实现查找附近的人 (两经纬度之间的距离) -
18335864773:
试试 pageoffice 在线打开 PDF 文件吧. pag ...
jquery在线预览PDF文件,打开PDF文件 -
青春依旧:
opacity: 0.5; 个人喜欢这种方式!关于其他css特 ...
css透明度的设置 (兼容所有浏览器) -
July01:
推荐用StratoIO打印控件,浏览器和系统的兼容性都很好,而 ...
搞定网页打印自动分页问题
创建桌面快捷方式 Add items to Ubuntu 12.04 Unity Launcher (quicklaunch)
Add items to Ubuntu 12.04 Unity Launcher (quicklaunch)
The recent upgrade to Ubuntu 12.04 Precise Pangolin left me somewhat hanging when it comes to creating launchers on the desktop, and also in the Unity Launcher (also called quicklaunch in some places) for Zend Studio and PHPStorm. In Gnome prior to Unity in Ubuntu it was easy to right click the desktop and select Create Launcher to create icons on the desktop to launch applications or scripts, but in 12.04 that options is gone. So here is how I solved some of the issues.
Method 1
For Netbeans and Eclipse based editors like Zend Studio or Aptana it is not too bad. I created a *.desktop files for each one and put it in the /usr/share/applications/ folder. I believe you can also create a folder in /home/username/.local/applications/ and put it there instead, but I have not tested it. Here is how I created a zendstudio.desktop file:
[Desktop Entry] Version=1.0 Name=Zend Studio GenericName=Zend Studio X-GNOME-FullName=Zend Studio PHP IDE Comment=PHP IDE for PHP development Type=Application Categories=Application;Development;PHP;IDE;Programming Exec=/home/username/Zend/ZendStudio-9.0.2/ZendStudio TryExec=/home/username/Zend/ZendStudio-9.0.2/ZendStudio Terminal=false StartupNotify=true Icon=/home/username/Zend/ZendStudio-9.0.2/icon.xpm
After creating the file above I then launched Zend Studio by going to the Zend folder in my home directory and double clicking the ZendStudio executable. Once the application is running I right clicked the icon in the Unity Launcher and select “Lock to Launcher”. Now the application stays in the Unity Launcher.
The above worked for most applications, but did NOT work for PHPStorm which launches by using a shell script named PhpStorm.sh. I tried doing the method above, and I also tried creating the desktop file and then dragging and dropping it to the Launcher, and that did not work either.
Method 2
Another method I found was to install the ‘gnome-panel’ package. (Actually it was already installed on my system for some reason.)
sudo apt-get install --no-install-recommends gnome-panel
With the gnome-panel I was now able to create a launcher on the desktop using the command below.
gnome-desktop-item-edit ~/Desktop/ --create-new
In the create launcher dialog I filled it out as follows:
Type: Application
Name: PhpStorm
Command: /bin/bash /home/username/PhpStorm/PhpStorm-117.257/bin/phpstorm.sh
NOTE: You could use /bin/sh or whatever shell you use. I use bash so that is why I put /bin/bash.
To create a shortcut in the Unity Launcher I double clicked the new desktop launcher I created above. (NOTE: If you start PHPStorm by executing the phpstorm.sh you do not get any options at all when right clicking the icon in the Unity Launcher.) Then when PHPStorm was running I was then able to right click on the icon in the Unity Launcher and selected “Lock to Launcher”. Voila! Now I have phpstorm on the Unity Launcher.
Method 3
This option is built right into PHPStorm v4.0.1 (I am not sure about other versions). The wonderful people at JetBrains created a handy item in Tools to automatically create a menu item for you. Simply click on Tools->Create Desktop entry… and the IDE will create an icon in the Dash menu, but not in the Unity Launcher. However, by starting the JetBrains PhpStorm IDE from the Unity Dash you can then right click on the icon that shows up in the Unity Launcher and select “Lock to Launcher”. The icon now stays there, even after a reboot/logout.
Update:
Method 4
See comment to this post by Shinybird. (Not sure if it works, but it sounds good.)
Enjoy!!!
来源:http://www.geekyboy.com/archives/384
参考:http://www.liberiangeek.net/2012/04/add-application-shortcuts-to-your-desktop-in-ubuntu-12-04-precise-pangolin/
发表评论
-
如何直接在github上预览html网页效果
2016-08-30 02:20 12641在github上托管的项目, 经常会存放一些demo的htm ... -
如何备份及恢复 Linux 文件权限
2016-08-26 02:29 975你可能听说或碰到过这样的事情:一个系统管理员菜鸟不小心输入” ... -
Linux: 近100个常用命令大全
2016-08-17 11:37 18381.ls [选项] [目录名 | 列出相关目录下的所有目录和 ... -
Linux: terminal 终端生存指南
2016-08-17 11:32 3484完全利用Linux终端处理日常工作并非易事,但其可行性却是不 ... -
Linux: 利用 Alpine 在命令行里访问 Gmail
2016-08-17 11:30 1393假如你是一个命令行爱好者,我很确信你会使用这个强大的工作环境 ... -
Linux: chmod 和 chown用法小结
2016-08-16 05:38 888chmod chmod指令是更 ... -
Linux: 系统文件权限总结
2016-08-16 05:39 759在 Linux 中最基本的 ... -
Linux: 系统结构详解
2016-08-16 05:38 827Linux系统一般有4个 ... -
开启Windows或者Mac OSX 本地服务器 (非安装第三方服务器软件)
2016-07-21 01:52 2138因为安全的原因,无法直接在浏览器中打开工程目录下的index ... -
Ubuntu: 安装 Sublime Text 2 或者 3 How to Install Sublime Text 2 or 3 in Ubuntu 15.0
2016-07-20 13:44 1025Sublime Text is a cross- ... -
用Vim编程——配置与技巧
2016-06-25 06:59 2085本文介绍如何用强大的文本编辑器 Vim编程。只要配置得当,效 ... -
无插件Vim编程技巧
2016-06-14 05:42 944相信大家看过《简明Vim教程》也玩了《Vim大冒险》 的游戏 ... -
Vimrc设置教程:A Good Vimrc (英文)
2016-06-14 05:33 1126How To Vimrc There is just o ... -
Linux Shell脚本入门教程系列之(十六) Shell输入输出重定向
2016-06-14 05:21 993本文是Linux Shell系列教程的第(十六)篇,更多 ... -
Linux Shell脚本入门教程系列之(十五) Shell函数简介
2016-06-14 05:19 988本文是Linux Shell脚本系列教程的第(十五)篇, ... -
Linux Shell脚本入门教程系列之(十四) Shell Select教程
2016-06-10 02:28 1065本文是Linux Shell脚本系列教程的第(十四)篇, ... -
Linux Shell脚本入门教程系列之(十三)Shell分支语句case … esac教程
2016-06-10 02:28 1919本文是Linux Shell脚本 ... -
Linux Shell脚本入门教程系列之(十二)Shell until循环
2016-06-10 02:26 1026本文是Linux Shell脚本系列教程的第(十二)篇, ... -
Linux Shell脚本入门教程系列之(十一)Shell while循环
2016-06-10 02:24 1141本文是Linux Shell脚本系列教程的第(十一)篇, ... -
Linux Shell脚本入门教程系列之(十)Shell for循环
2016-06-10 02:22 737本文是Linux Shell脚本系列教程的第(十)篇,更 ...
相关推荐
Ubuntu 12.04 Unity下Eclipse图标不显示解决方法.docx
设置Ubuntu 12.04 Unity返回到经典Gnome桌面及面板调整相关.docx
libc6 for ubuntu 12.04 所有依赖的库都打包 .
Ubuntu12.04 nginx python uwsgi Django安装步骤
Ubuntu 12.04 菜鸟完全使用教程让你用最快的速度熟悉使用Ubuntu 12.04!
Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+...
用 VMware 安装 Ubuntu 12.04详细过程图解
最全,最好用 自己试试啊ubuntu12.04 vim 配置
Ubuntu 12.04下如何安装MySQL ,我按照这文档,已经成功在ubuntu 12.04安装成功mysql!
ubuntu12.04 server版本,虚拟机共享宿主机的无线网上网,亲测,有图。
ubuntu12.04安装及配置过程详解
ubuntu12.04下Java开发环境的搭建
适逢七周岁生日之际,Ubuntu正式推出了第四个LTS长期支持版本,开发代号Precise Pangolin的Ubuntu 12.04在2012年4月26日诞生。这是一个令很多linux爱好者振奋的日子,Ubuntu 12.04 LTS发布势必会掀起新的升级高潮,...
详细描述了ubuntu12.04版本的使用,对于linux的详细学习还是要看书
Ubuntu12.04下的JDK安装,首先到官网上下载jdk-7u51-linux-x64.tar.gz。
Ubuntu12.04的apt-get搜狐源,直接下载至/etc/apt/下即可,执行apt-get update
ubuntu12.04 服务器 入门指南,包含有关如何安装和配置各种服务器的信息。
Ubuntu 12.04 菜鸟使用手册(全)
在ubuntu12.04下可以通过这个主题包快速的安装苹果mac主题,我自己也正在用这个主题,分享给大家。
VMWare8.0安装Ubuntu12.04教程,傻瓜式安装教程,很详细