To launch Android Studio, open a terminal, navigate to the android-studio/bin/ directory, and execute studio.sh.
So, I thought it's good occasion to create desktop application menu by myself for the first time.
I didn't know any mechanism about desktop application registration, but it wasn't hard even without googling. Here is my process:
- Guessed other application must have some config file for this mechanism
dpkg-query -L emacs24and found
- Searched for local man page include "desktop"
- Found two pages looking nice: xdg-desktop-menu and desktop-file-install
- These man pages gave me a link to .desktop file specification
- Wrote androind-studio.desktop as below: (I downloaded and extracted zip at /home/hiogawa/repositories/downloads/path/)
[Desktop Entry] Name=Android Studio GenericName=IDE for Android Application Development Exec=/home/hiogawa/repositories/downloads/path/android-studio/bin/studio.sh Icon=/home/hiogawa/repositories/downloads/path/android-studio/bin/studio.png Type=Application
sudo xdg-desktop-menu install android-studio.desktopbut it didn't work.
sudo desktop-file-install android-studio.desktopand it did work.
I heard the syntax of systemd's unit file is inspired by xdg .desktop file: http://0pointer.de/blog/projects/systemd.html
These two binary comes from different packages. Maybe xdg-desktop-menu doesn't work for unity?
$ dpkg-query -S desktop-file-install desktop-file-utils: /usr/share/man/man1/desktop-file-install.1.gz desktop-file-utils: /usr/bin/desktop-file-install $ dpkg-query -S xdg-desktop-menu xdg-utils: /usr/bin/xdg-desktop-menu xdg-utils: /usr/share/man/man1/xdg-desktop-menu.1.gz