LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Launch android-studio from KDE5 menu. (https://www.linuxquestions.org/questions/slackware-14/launch-android-studio-from-kde5-menu-4175624815/)

dsanmartins 03-02-2018 02:00 PM

Launch android-studio from KDE5 menu.
 
Hi,
I have troubles to launch android studio. Currently I am using KDE 5_17.11 with Slackware 14.2 x64. What could it be?. I want to know if this problem also happen in Slackware-Current with the latest KDE 5 of AlienBob.
Thank you!.

Alien Bob 03-03-2018 12:53 PM

Launch it from the commandline instead and check for errors.

dsanmartins 03-12-2018 08:09 PM

1 Attachment(s)
Quote:

Originally Posted by Alien Bob (Post 5826848)
Launch it from the commandline instead and check for errors.

Hi AlienBob,

I did it but there is no errors. In fact, I can run it from commandline without problems. My doubt is why does it cannot run from menu?. I know it is a not big deal but a little bit annoying.

This is the configuration in the KDE menu (by default).

Attachment 27177

Thanks,

Daniel.

wael_h 03-12-2018 09:04 PM

Hi dsanmartins,

I will tell what I did :)

I edited the Path line in the application desktop file!

the file is: /usr/share/applications/android-studio.desktop

change the line with Path to your installation directory, for me it is /opt/android-studio/bin/

Quote:

change Path from:
# Path=/usr/share/android-studio/bin/

change Path to:
Path=/opt/android-studio/bin/
Package build script should take care of this!

Wali.

bassmadrigal 03-13-2018 12:42 AM

Quote:

Originally Posted by wael_h (Post 5830309)
Package build script should take care of this!

According to the SlackBuild, it should be creating symlinks of any executables found in /opt/android-studio/ to /usr/bin/.

The key portion in the doinst.sh file for the android-studio executable is these two lines:

Code:

( cd usr/bin ; rm -rf android-studio )
( cd usr/bin ; ln -sf ../../opt/android-studio/bin/studio.sh android-studio )

I'm guessing the maintainer intended to have the path just be /usr/bin/, however, I believe you can actually just remove the Path line and it likely defaults to the normal PATH environment variable.

However, since I am doing this all remotely (on a business trip to Texas with my Windows based laptop), I can't test any of it. Can you try removing the Path= line and then see if it still works? If so, you could contact the maintainer and suggest the correction to the android-studio.desktop file.


All times are GMT -5. The time now is 12:23 AM.