(教你一招,菜鸟也装B)往信息图标(即那个邮件图标)加快捷方式

各种窗口管理器和美化相关
回复
头像
qq420100523
帖子: 1684
注册时间: 2009-07-31 18:56
系统: windows、ubuntu
来自: 广东阳江

(教你一招,菜鸟也装B)往信息图标(即那个邮件图标)加快捷方式

#1

帖子 qq420100523 » 2010-10-21 17:11

这是英语原文:
How to add more apps to the Ubuntu Messaging Menu
By Joey, Published October 14, 2010
Share story:
0diggsdigg
Tweet

The Ubuntu Messaging Menu is a fantastic idea: it contains handy ‘launchers’ for supported applications and stores notifications from them until you’re ready to act or respond.

By default Ubuntu comes with three Messaging Menu entries: Evolution (Mail), Empathy (IM Client) and Gwibber (Social Client) and we’ve previously covered how you can add full Thunderbird, GMail & other application support to it.

But what about applications that show no-sign of integrating?

Mario Tomljenović sent us the following tip to add custom entries to the menu. Whilst this won’t provide notification support – which is sort of the point of the Messaging Menu – but it’s nevertheless an easy way to insert a simple launcher to a ‘messaging’ application within it.

Say we want to add popular MSN application Emesene to the menu. We need to open Terminal (Applications > Accessories > Terminal) and enter the following command to ‘create’ the menu entry:

gksu gedit /usr/share/indicators/messages/applications/emesene

Next we we would specify the path to the .desktop file in the text editor:

/usr/share/applications/emesene.desktop

Save the document and the entry now appears in the Messaging Menu, like so: -

You can add pretty much any application you want to the menu so long as it has a launcher in /usr/share/applications.
——————————————————————————————————————————————————————
好啦,我英语很菜的啦。
大概的意思是这个邮件图标的功能很有趣,我们可以加自己喜欢的软件快捷方式到那个邮件图标里啦
方法很简单就三步:(这里我们以"firefox"为例)
一、在 /usr/share/indicators/messages/applications/这个目录里用gedit建立一个文件

代码: 全选

gksu gedit /usr/share/indicators/messages/applications/firefox/
#貌似gksu和sudo功能是一样的吧。
二、这时我们在文本编辑器里将指定的软件快捷方式文件路径复制进入,什么你不知道软件快捷方式文件的路径。
嘿嘿,别急一般都在/usr/share/applications/这个目录下,查看一下就行了。,

代码: 全选

cd /usr/share/applications/ && ls -al
嗯,我现在要把Firefox的软件快捷方式文件路径复制到文本编辑器里
/usr/share/applications/firefox.desktop
OK,行了,连注销也不用,现在看一下,爽不,还不快来一个
附件
桌面 1_018.png
桌面 1_018.png (52.71 KiB) 查看 578 次
上次由 qq420100523 在 2010-10-21 22:39,总共编辑 1 次。
头像
20072312834
帖子: 277
注册时间: 2009-02-02 17:41

Re: 往信息图标(即那个邮件图标)加快捷方式

#2

帖子 20072312834 » 2010-10-21 18:58

不错,楼主翻译的很有中国特色!
莫谈国事
ubuntu!
头像
qq420100523
帖子: 1684
注册时间: 2009-07-31 18:56
系统: windows、ubuntu
来自: 广东阳江

Re: 往信息图标(即那个邮件图标)加快捷方式

#3

帖子 qq420100523 » 2010-10-21 22:32

20072312834 写了:不错,楼主翻译的很有中国特色!
:em05
matww
帖子: 13
注册时间: 2010-10-21 18:24

Re: (教你一招,菜鸟也装B)往信息图标(即那个邮件图标)加快捷方式

#4

帖子 matww » 2010-10-22 22:44

嗯,不错不错,试试
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: (教你一招,菜鸟也装B)往信息图标(即那个邮件图标)加快捷方式

#5

帖子 eexpress » 2010-10-22 22:51

这干嘛用的?
● 鸣学
头像
qq420100523
帖子: 1684
注册时间: 2009-07-31 18:56
系统: windows、ubuntu
来自: 广东阳江

Re: (教你一招,菜鸟也装B)往信息图标(即那个邮件图标)加快捷方式

#6

帖子 qq420100523 » 2010-10-22 22:58

eexpress 写了:这干嘛用的?
看图 :em06
回复