ubuntu / ubuntu-make

Easy setup of common tools for developers on Ubuntu.
GNU General Public License v3.0
1.19k stars 189 forks source link

Error in default android-studio.desktop configureation can be solved #576

Closed KokeCacao closed 5 years ago

KokeCacao commented 5 years ago

Distributor ID: Ubuntu Description: Ubuntu 16.04.5 LTS Release: 16.04 Codename: xenial Umake Version: 18.05

The default .desktop setup is

[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Icon=/home/koke_cacao/.local/share/umake/android/android-studio/bin/studio.png
TryExec=/home/koke_cacao/.local/share/umake/android/android-studio/bin/studio.sh
Exec=android-studio
Comment=Android Studio developer environment
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-studio

However, it does not work and give me an error: an error has occurred. But this configuration can solve the problem:

[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Icon=/home/koke_cacao/.local/share/umake/android/android-studio/bin/studio.png
Exec=/home/koke_cacao/.local/share/umake/android/android-studio/bin/studio.sh
Comment=Android Studio developer environment
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-studio
LyzardKing commented 5 years ago

Hi @KokeCacao Did you restart/logout after the install?

KokeCacao commented 5 years ago

Hi @KokeCacao Did you restart/logout after the install?

Indeed, no. But how does it matter in ubuntu?

LyzardKing commented 5 years ago

ubuntu-make adds a folder (.local/share/umake/bin) to the PATH. In that folders are the symlinks to the installed programs, so that you can start them from the terminal for example. So if you restart/logout it will read the change to the PATH and then the .desktop file will work

KokeCacao commented 5 years ago

Thanks a lot.