kubuntu 20.04 中的 hamster 时间追踪器

kubuntu 20.04 中的 hamster 时间追踪器

我正在尝试在 Kubuntu 20.04 中安装仓鼠时间跟踪器,但似乎相当困难。有人让它工作了吗?

hamster 本身并不存在于官方仓库中,但我从这里。这可行,但我还想有办法将其放入 KDE 系统托盘中。

以前(在 Kubuntu 16.04 中)可以使用仓鼠托盘但现在这一功能似乎已不复存在。

答案1

按照以下两个步骤即可实现。

获取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/

享受:

Kubuntu 20.04 LTS 上带有指示器的 Hamster

也可以使用以下命令使其在 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

得到以下内容:

Ubuntu MATE 20.04 上带有指示器的 Hamster

相关内容