アプリをアプリのリストに表示するにはどうすればよいですか?

アプリをアプリのリストに表示するにはどうすればよいですか?

.debパッケージを作成し、ファイルをディレクトリにコピーしました/opt/MyAppName。ただし、アプリのリストには表示されず、これを達成する方法がわかりません。

ここに画像の説明を入力してください。

自分のアプリをこのリストに表示するにはどうすればよいですか?公開時に install .deb を使用するすべてのユーザーにこの情報が表示されます。

ベストアンサー1

your_application.desktopファイルを作成してからコピーする必要があります/usr/share/applications/。以下は、.desktop最近作成したサンプルファイルです。sublime_text.desktop

[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=/opt/sublime_text/sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=/opt/sublime_text/Icon/128x128/sublime-text.png
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;

[Desktop Action Window]
Name=New Window
Exec=/opt/sublime_text/sublime_text -n
OnlyShowIn=Unity;

[Desktop Action Document]
Name=New File
Exec=/opt/sublime_text/sublime_text --command new_file
OnlyShowIn=Unity;

興味Exec=Icon=

おすすめ記事