如何在 kde 中添加 smartgitHG a 的启动器?

如何在 kde 中添加 smartgitHG a 的启动器?

我想添加一个启动器

~/smartgit/bin/smartgithg.sh

在任务栏中(或者怎么称呼?)

通常,如果我启动了一个程序,我可以右键单击它并说“Einen Starter für dieses Programm anzeigen, wenn es nicht läuft”(用英语我会说“在不运行时显示启动器”)

但是对于 smartgit,如果我这样做并且稍后想使用它,我只需要

file://java 不存在

或者我该如何更改启动器?

~/.kde/share/config/plasma-desktop-appletsrc有一个条目:

file:java?wmClass=SmartGit%2FHg
java=file:java,,java,,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAUJQAAEk0BdOB8qgAACwRJREFUeJztm3tw1NUVxz+/1z4ISyAkBIhGQKmCgjwUysMpOqit1VbrqKClOg5WO7Z2nNZHsVapVkbqa6xtp3XaMnaq2ApKRaEz2lpJaa0W5FXA0MhDSULAQNjNZvf3uP1j9y53f9nNbshjRf3OXLLZ3N/vnvM9555z7vnx08gPrYu/nYgQub7MpaQOmICR/qz3oVD9AS89XMBJf84JDbBqa2uHNDU1rYjFYgdt23bFCQ7btt1YLHawqalpRW1t7RDAIofhdSC4atWqC2OxWFuphe4rxGKxtlWrVl0IBPF5dqCysnJENBo9Wmoh+xrRaPRoZWXlCCCgWr+8vr5+damF6y/U19evBsoBXScV7MorKipm9SzWnDhI61oOGDLiR8rKyspLK1b/Ia1rBDBlmgsHg8FPWt7Pi7SuYdJbQCeVGj5tsEgTACd+sXM80DP/fJrxGQGlFqDU+IyAUgtQapSMgPcbmlnykxdLtXwGZn8v6DgeDyx+gb+/Wc+4M4b19/Kd0K8ErF2zkcceW0syKQCN8eNrECLVqNG00hSi/UJAU2Mrd93xLHv2Hcn6fsbMsQgh0DQt8xNgycotXD9nDCMryvpctj4lQAjBoz99mVde3YrwdeQ0YMLEU/A8D13Xszxg1Y42XtqxmctPH8gPrpzQlyL2XRCsW7edL1+ylNWvdFYeIBw28D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SobMtsMmP2MGae90WaPkxkyJHzXNdlywexrLV0NKZWmtw4RUfHy8yX7u7f6/J7/15XFc6nfE4CupqcT2k1Q6ieIMk0DI0xY8szZbZa6r7/UUfm3tUBi1um6oyMeAjhQh5395fYudy9GF1yEpDLA/LdVPUGSY4kQ02Vcp561gBwHIeWDoegpnP550LMHX2sTS6tLnuI/qO0anW/bMUoftwE+BfLty0kCaoyavNDCEHCdjizMszN5xjoIonjZCufK8ipAbi77l4UAd25gZ8EWRuokdqfslShDQ3u+EI43f3JDrS5Ap2ahdT7dBXkuk1AsR6QiwjI3ha6rmfu53dVGSTVgkatO9T8nquP0BOrq+iRB+SC6g3S+vJ7OfLVGnKoqS2X1XtLVuglD1DhV87/WX0SpCqs7v1ckV29pjcUl+hEgOsWPtUVi3xuqpKQr65Qlc3Xz+sNdCLAtgsfRXsCf+vLb03pgf4t1FfodwKgc+tLQk2T6u99iZIQAF0HsP5QXEIS4MXjcREOhzVZwJQSvRnkVMhjfTweF6Rfn9PTH+zDhw9HAcLhcJ8s/nGA1C2tqw14koD4jh07tgFUVVV1qvE/CdB1naqqKgDSusYh1YGzgBGBQGDK3r17n6uurg7Ztk1LSwvxeLzk26GnME2TcDhMVVUVlmXR3NzcUVtbOz+ZTG4AGiH92hwwZd68eYsbGxvj4hOKxsbG+Lx58xYDU9I6Z1w9AFQDsyzLWrhy5cpNDQ0NsWg06pVa6J4iGo16DQ0NsZUrV26yLGshMCutawCO9WHli1ODgRrgZKCK1DODAEU9h/1YwgWSwFGgBdgHfAgcJh0E1YSrkUqLA0i5R4TUq2XyZeMT7bU6kR42qYB3FDgCtJN6i1wA/B/Puhe6IIkZ7wAAAABJRU5ErkJggg==

这似乎有点坏了。

这是否与我在主目录中安装了 smartgit 有关~/smartgit/bin/smartgit.sh

答案1

首先在中创建一个符号链接/usr/local/bin

cd /usr/local/bin
sudo ln -s ~/smartgit/bin/smartgithg.sh .

然后,在桌面上创建一个新的小程序“Schnellstarter”,在那里您可以添加一个新程序,您可以在其中选择smartigitHg。您可以将该小程序启动器移动到任务栏。

它在以下位置创建此启动器~/.local/share/applications/smartgithg.sh.desktop

[Desktop Entry]
Comment[de]=
Comment=
Exec=smartgithg.sh
GenericName[de]=
GenericName=
Icon=system-run
MimeType=
Name[de]=smartgithg.sh
Name=smartgithg.sh
NoDisplay=true
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

相关内容