Ubuntu 14.04 安装HexChat

Ubuntu 14.04 安装HexChat


首先说几个名词:

  • MessagingMenu 是托盘中的一个邮件图标,如下图:
    这里写图片描述
    从使用经验来看,他的主要作用是将邮件客户端,IRC聊天软件的信息都集中进行管理,代替以前得全部平铺到托盘中的方式。
    它的卸载和安装方案
#TODO
  • indicator 其中的每一项称为一个indicator,有些软件并没有为这个特性单独开发indicator就需要第三方为其开发的indicator,比如hexchat-indicator

但是有一个问题是,这个应该是系统的Bug,打开一个hexchat后,点击MessagingMenu的会启动一个新的程序,而不是把已经运行的程序激活到前台。

这个问题曾经花费了一个上午时间都没有找到答案,在hexchat-indicator找到了答案。照做后问题得以解决。也对这个功能有所了解,通过什么原理判断出来是需要新启动一个程序还是将其调到前台。

Clicking on messaging menu indicator starts a new instance of the application

Strictly speaking, it's not hexchat-indicator problem. However, there is a workaround that can help.

copy /usr/share/applications/hexchat.desktop to /usr/local/share/applications/hexchat.desktop (create /usr/local/share/applications folder if it doesn't exist)
open /usr/local/share/applications/hexchat.desktop with a text editor
find the line "Exec=...." in [Desktop Entry] section
comment it and add a new one
#Exec=hexchat %U
Exec=sh -c "flock -n -x /var/run/lock/hexchat.lock -c hexchat || hexchat --existing -c 'gui show'"
reboot or logout/login
Now clicking on the indicator should show existing hexchat window instead of starting a new application
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

袁保康

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值