Chinaunix首页 | 论坛 | 博客
  • 博客访问: 706798
  • 博文数量: 181
  • 博客积分: 2548
  • 博客等级: 少校
  • 技术积分: 1739
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-29 16:36
个人简介

爱咋咋地

文章分类

全部博文(181)

文章存档

2023年(17)

2022年(19)

2021年(3)

2020年(1)

2018年(1)

2017年(1)

2014年(1)

2013年(4)

2012年(11)

2011年(19)

2010年(22)

2009年(71)

2008年(5)

分类: LINUX

2022-06-22 23:50:02

今天在一台机器上全新安装(记住是全新,所有硬盘分区全部格式化的那种)fedora36,安装完毕以后装上parcellite(一个clipboard manager,功能是选中即拷贝,实在是离不开,使用了十多年),发现不能正常使用,这可要了亲命了。好在是在另外一台笔记本上面运行正常。两台安装过程差不多(不是完全一样),一台能用一台不能用就见鬼了。google了好久,没有看到比较类似问题的解决方法。
那就只能在两台机器差异的地方去排查,这两台的差异是:第1台保留了/home分区,第二台完全格式化。终于在第一台发现了/home/xxx/.config/parcellite/parcelliterc文件,而第二台没有。奇怪。使用rpm -ql发现安装包里面不包括这个文件,重新安装也不会自动生成,也没有其他的配置包。这是什么鬼。

把第一台的parcelliterc文件拷贝到第二台机器,parcellite工作完全正常了。可见这个rc文件是程序运行的必需文件,既然是必需文件为什么安装包不提供,这就更怪异了。

忽然想起了在旧版本的feodra系统的托盘里面曾经有该程序的图标,并且里面还能进行配置(我这么多年从来没有改过,都用默认配置,汗)。

先把图标在tray里面显示出来再说,网上查到在gnome升级后需要安装:gnome-shell-extension-appindicator 这个extension,然后还需要在extensions-app里面进行激活。
按照下面的介绍做完后,发现icon出来了。

In any case the system tray is not enabled by default in recent Fedoras, and the proper way to enable it has changed several times in the recent past as Gnome has been upgraded. This outlines the most recent way to do it, and hopefully this one sticks for longer than a year or so.

First you need to install the AppIndicator Gnome shell extension. It is recommended to do that with dnf to ensure that all its dependencies are met and that it is always compatible with your current Gnome version:
> sudo dnf install gnome-shell-extension-appindicator
This installs the extension but does not enable it. You may recall using Gnome Tweaks tool for enabling Gnome Shell extensions, but in Fedora 35 you would just get confused when the "Extensions" tab is completely missing. This is because management of extensions is now done with a standalone Gnome Extensions app, which can be installed like this:
> sudo dnf install gnome-extensions-app
The final step is to launch the Gnome Extensions app:
> gnome-extensions-app
Then enable the AppIndicator extension. Now you should start seeing your system tray applets on the right-hand side of your top pane.

把刚刚拷贝进去的rc文件删掉,重启还原到不能用的状态,然后在icon上面右键->属性(preferences),然后直接点OK,发现真的自动生成了rc文件,再次重启后功能正常。

两个多小时,折腾这么个破问题,哭死。
貌似这个东东国内用的人比较少,国外用的也不多。写在这里供以后掉在坑里的后来人参考

以上,致谢!








阅读(1165) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~