2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

UbuntuのDashにアプリケーションを登録する方法

2
Posted at

Macではホームフォルダ以下にApplicationsフォルダがあるけれども、Ubuntuにはこれがない。

Android Studioを入れてDashから呼び出せるようにしたかったのだけれど、上手く出来なかったので調べてみた結果、.desktop 形式のファイルを追加することでDashの検索対象に入るっぽいことがわかった。

詳しくは調べてないので、また後でそこは調べる。

Android Studioをやろうとした時はこんな感じ。

~/.local/share/applications 以下にこんなファイルを android-studio.desktop という名前で作ればOK。ディレクトリの他のファイル眺めてみるとDashで検索可能なアプリケーションの同じようなファイルが羅列されている。

[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Exec="/home/username/Programs/AndroidStudio/bin/studio.sh" %f
Icon=/home/username/Programs/AndroidStudio/bin/idea.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-android-studio
Name[en_GB]=android-studio.desktop

ExecIcon はそれぞれandroid-studioの起動コマンドと、アイコンにしたい画像のパスを書くところなので、適宜書き換える。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?