LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-02-2018, 02:00 PM   #1
dsanmartins
LQ Newbie
 
Registered: Sep 2017
Location: São Carlos, Brazil
Distribution: Slackware 14.2, VoidLinux
Posts: 9

Rep: Reputation: Disabled
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!.
 
Old 03-03-2018, 12:53 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Launch it from the commandline instead and check for errors.
 
Old 03-12-2018, 08:09 PM   #3
dsanmartins
LQ Newbie
 
Registered: Sep 2017
Location: São Carlos, Brazil
Distribution: Slackware 14.2, VoidLinux
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob View Post
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).

Click image for larger version

Name:	Screenshot_20180312_220603.png
Views:	23
Size:	32.2 KB
ID:	27177

Thanks,

Daniel.
 
Old 03-12-2018, 09:04 PM   #4
wael_h
Member
 
Registered: Mar 2009
Location: Phoenix, Arizona
Distribution: Slackware
Posts: 102

Rep: Reputation: 39
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.
 
Old 03-13-2018, 12:42 AM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by wael_h View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error when running "studio.sh" to install android studio Neyzan Fedora 3 01-14-2017 01:47 PM
[SOLVED] cld15-17amd64. Get message get ceritificate when use kde5 menu console. lexnor Calculate 0 09-28-2016 06:48 PM
LXer: How to set up Android Studio for creating Android Apps And Games Using Linux LXer Syndicated Linux News 0 06-23-2016 07:01 PM
How to Both Launch & Uninstall PDF Studio taurusx5 Linux - Software 1 04-03-2008 02:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration