LinuxQuestions.org
Visit Jeremy's Blog.
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 09-14-2015, 09:01 AM   #1
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Rep: Reputation: 11
Got another issue -- program starts from command line but not from application menu


If anyone saw my previous topic, this started happening after I resolved all of those issues. qBittorrent launches OK from the command line but the application launcher in the menu no longer works, it does nothing.

I'm not sure where to begin troubleshooting this. All I could do was try to reinstall it, but no joy there.

Ideas?
 
Old 09-14-2015, 01:24 PM   #2
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
How do you launch it from the command line... like ./this from the program directory, or is it in your binary path? (/usr/bin, /usr/local/bin). If you have installed it to a user directory you would have to add it to your PATH environment variable to be able to launch it from an application launcher.

There are various ways to do it ~/.bash_profile or ~/.bashrc ... I just add things like that to /etc/profile so it's global but that wouldn't be appropriate to add something in your home directory there. For example, I put the results of my Chromium builds in /opt/chromium and I want it to launch from panel launchers and friends. So I need /opt/chromium added to my path:

# Set the default system $PATH:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/chromium"

If you use another method, make sure you don't override that PATH variable... include it in any PATH variables.

export PATH=$PATH:/additional/directory/here

If not that, view properties of your application launcher and see if anything is amiss (working directory for example)

I'm sorry but I am not aware of your previous thread and I don't know what you already know.

Last edited by TheRealGrogan; 09-14-2015 at 01:36 PM.
 
Old 09-14-2015, 02:07 PM   #3
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Original Poster
Rep: Reputation: 11
Yes qbittorrent is in the path. This started after I installed gdm and edited /etc/inittab to runlevel 4.
 
Old 09-14-2015, 02:34 PM   #4
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
In that case, it might not be getting the correct PATH variable from the environment. (or overriding it)

See gdm.conf (/etc/gdm.conf or /etc/gdm/gdm.conf or perhaps /usr/local/etc if you didn't set --sysconfdir when compiling it)

DefaultPath=

You might also try creating a ~/.bashrc file and adding the path there.

It's got to be something to do with the environment for it to work in a terminal (that would get the variables from shell configuration files) vs. application launchers.

Last edited by TheRealGrogan; 09-14-2015 at 02:36 PM.
 
Old 09-14-2015, 02:51 PM   #5
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Original Poster
Rep: Reputation: 11
I don't seem to have a gdm.conf, but there is a custom.conf in /etc/gdm. qbittorrent is in /usr/bin and it seems to be the only program affected.
 
Old 09-14-2015, 07:22 PM   #6
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
An error message might have been logged to your .xsession-errors file.
 
1 members found this post helpful.
Old 09-14-2015, 09:12 PM   #7
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Original Poster
Rep: Reputation: 11
It says it couldn't find libtorrent-rasterbar shared library.
 
Old 09-15-2015, 03:13 AM   #8
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
Quote:
Originally Posted by ahc_fan View Post
It says it couldn't find libtorrent-rasterbar shared library.
The question now becomes: how did you install qbittorrent and its dependency libtorrent-rasterbar?
Did you compile from sources, did you use the SlackBuilds.org scripts or did you use my packages?
 
1 members found this post helpful.
Old 09-15-2015, 03:57 AM   #9
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
The OP stated that the app launched correctly from the command line.
 
Old 09-15-2015, 06:26 AM   #10
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by Alien Bob View Post
The question now becomes: how did you install qbittorrent and its dependency libtorrent-rasterbar?
Did you compile from sources, did you use the SlackBuilds.org scripts or did you use my packages?
I was using the slackbuilds scripts originally. I tried removing qbittorrent and installing your package, which didn't fix it. I didn't even consider installing your libtorrent-rasterbar package until now, and that did fix it, so thank you sir!

I just wish I knew what caused it to break suddenly.
 
Old 09-15-2015, 02:43 PM   #11
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
It makes more sense now, knowing that this program runs without X depending on invocation.
 
  


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] command to add a word at the beginning of each line that starts with a digit lwv962 Programming 6 12-08-2014 07:26 AM
Issue a command line statement from within a C/C++ program? DiBosco Programming 7 05-23-2008 07:34 PM
doinkd - starts on command line but not as service car182 Linux - Server 2 10-21-2006 09:37 AM
Program starts from command line but not from file browser lasindi Programming 3 07-25-2004 07:34 AM
Viewing program messages when program isn't run from command line? Locura Linux - Software 1 09-27-2003 08:19 AM

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

All times are GMT -5. The time now is 11:52 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