
Elementary OS Freyaを使用しています。
板(ドック)にカスタムbashスクリプトを追加したいです。
どうすればいいですか?
答え1
フォルダにスクリプト用のファイルを作成する.desktop
(またはシステム全体に適用)。たとえば、~/.local/share/applications
usr/share/applications
[Desktop Entry]
Name=My bash script
Comment=bash script to do custom stuff
Type=Application
Exec=/path/to/bash/script %U
Icon=/path/to/some/fancy/icon
Terminal=false (or true)
Categories=Other;
Other
Slingshotカテゴリに表示されます。実行し、実行中に「Keep in Dock」を選択します。
答え2
ファイルを保存するには、.desktop
端末に追加する必要があります。
sudo chmod 777 programName.desktop