Supernormal Asked: 2020-12-10 11:42:30 +0800 CST2020-12-10 11:42:30 +0800 CST 2020-12-10 11:42:30 +0800 CST kubuntu 20.04 中的仓鼠时间跟踪器 772 我正在尝试在 Kubuntu 20.04 中安装仓鼠时间跟踪器,但这似乎相当困难。有没有人让它工作? 官方仓库中没有仓鼠本身,但我从这里安装了 hamster-snap 。那行得通,但我也想有办法把它放在 KDE 系统托盘中。 早些时候(在 Kubuntu 16.04 中),仓鼠托盘是可能的,但现在似乎已经不复存在了。 kubuntu 20.04 hamster 1 个回答 Voted Best Answer N0rbert 2020-12-11T02:07:52+08:002020-12-11T02:07:52+08:00 可以通过以下两个步骤进行。 从groovy获取hamster-time-tracker包: cd ~/Downloads wget http://archive.ubuntu.com/ubuntu/pool/universe/h/hamster-time-tracker/hamster-time-tracker_3.0.2-3_all.deb sudo apt-get install ./hamster-time-tracker_3.0.2-3_all.deb 克隆仓鼠unity-indicator 存储库并将指标安装到系统: sudo apt-get install git python-is-python3 gir1.2-appindicator3-0.1 python3-gi-cairo cd ~/Downloads git clone https://github.com/projecthamster/unity-indicator.git cd unity-indicator sudo mkdir -p /usr/local/share/glib-2.0/schemas/ sudo cp data/hamster-indicator.gschema.xml /usr/local/share/glib-2.0/schemas/ sudo glib-compile-schemas /usr/local/share/glib-2.0/schemas sudo cp hamster-indicator /usr/local/bin/hamster-indicator mkdir -p ~/.local/share/applications cp data/hamster-indicator.desktop ~/.local/share/applications sed -i "s|Icon=hamster-time-tracker|Icon=hamster-indicator-active|" ~/.local/share/applications/hamster-indicator.desktop sed -i "s|Exec=/usr/bin/hamster-indicator|Exec=/usr/local/bin/hamster-indicator|" ~/.local/share/applications/hamster-indicator.desktop mkdir -p ~/.local/share/pixmaps cp data/icons/hicolor/24x24/* ~/.local/share/pixmaps/ cp data/icons/hicolor/scalable/* ~/.local/share/pixmaps/ 享受: 也可以使用以下命令使其在 MATE 上工作: cd ~/Downloads/unity-indicator mkdir -p ~/.local/share/icons/ubuntu-mono-dark/apps/24/ mkdir -p ~/.local/share/icons/ubuntu-mono-light/apps/24/ cp /usr/share/icons/ubuntu-mono-dark/index.theme ~/.local/share/icons/ubuntu-mono-dark cp /usr/share/icons/ubuntu-mono-light/index.theme ~/.local/share/icons/ubuntu-mono-light cp data/icons/ubuntu-mono-dark/24x24/* ~/.local/share/icons/ubuntu-mono-dark/apps/24/ cp data/icons/ubuntu-mono-light/24x24/* ~/.local/share/icons/ubuntu-mono-light/apps/24/ gtk-update-icon-cache ~/.local/share/icons/ubuntu-mono-dark gtk-update-icon-cache ~/.local/share/icons/ubuntu-mono-light 获得以下信息:
可以通过以下两个步骤进行。
从groovy获取
hamster-time-tracker
包:克隆仓鼠
unity-indicator
存储库并将指标安装到系统:享受:
也可以使用以下命令使其在 MATE 上工作:
获得以下信息: