Ubuntu 12.04 で自分で導入したアプリケーションをUnity から呼び出せるようにする

GIMP 2.8 が使いたくて自分でbuild したのですが,いちいちコマンドラインから呼び出すのは面倒なのでメニューに追加して簡単に呼び出せるようにしてみます.

以下のURL を見ると,

/usr/share/applications/*.desktop が各アプリケーションの設定ファイルのようです.
自分でしか利用しないのであれば ~/.local/share/applications/ でもいいようなので今回はこちらで設定.

ひな形としてシステム標準のGIMP のファイルを使います.
$ cp -p /usr/share/applications/gimp.desktop ~/.local/share/applications/gimp2.8.desktop
$ vi ~/.local/share/applications/gimp2.8.desktop

以下のようにしてみました.

$ cat ~/.local/share/applications/gimp2.8.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=GIMP Image Editor 2.8
GenericName=Image Editor
Comment=Create images and edit photographs
Exec=/opt/local/gimp-2.8.0/bin/gimp-2.8 %U
TryExec=/opt/local/gimp-2.8.0/bin/gimp-2.8
Icon=/opt/local/gimp-2.8.0/share/icons/hicolor/256x256/apps/gimp.png
Terminal=false
Categories=Graphics;2DGraphics;RasterGraphics;GTK;
StartupNotify=true
MimeType=application/postscript;application/pdf;image/bmp;image/g3fax;image/gif;image/x-fits;image/pcx;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-psd;image/x-sgi;image/x-tga;image/x-xbitmap;image/x-xwindowdump;image/x-xcf;image/x-compressed-xcf;image/tiff;image/jpeg;image/x-psp;image/png;image/x-icon;image/x-xpixmap;image/svg+xml;image/x-wmf;

これでUnity から呼べるようになりました.
しかし,標準のGIMP も入っているので判りづらいです.古い方は消してしまったほうが良さそうですね.
#よーく見ると新しいGIMP アイコンは目玉が大きかったりします.

unity-gimp 🏛️

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)