LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-26-2012, 04:24 PM   #1
tembenite
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Rep: Reputation: Disabled
Application will launch in console, but not via VNC from menu, but will from VNC/shel


Hello,
I have a problem which I'm hoping someone can help point me in the right direction to solve.

I am running Debian 6, with Fluxbox, XRDP, within a vmware machine.

I have customized the Fluxbox menu to launch the Android AVD Manager and SDK Manager.

e.g.
[exec] (AVD Mgr) {/home/devdroid/android-sdk-linux/tools/android avd} <>
[exec] (SDK Mgr) {/home/devdroid/android-sdk-linux/tools/android sdk} <>

When I access the machine via the console, these links work beautifully and open the proper application.

When I access the machine via RDP using XRDP (VNC backend) and I click on these links, nothing happens. Yet if I take the same exact command within the XRDP session, and paste it into a terminal window in the same session, it runs properly without an issue. As a result its not an issue generically with the application I'm running. I can also run any other application within the menu without an issue (e.g. Firefox, rox-filer, Eclipse), so it appears to not be something generically with the menu over XRDP.

For the life of me, I can't think what would be different between launching a program from a menu, or via command shell in the same session, or for that mater where I'd look to find the logs/errors I need to troubleshoot.

As a result I have two questions:
1) Do you have any idea what is going on and why this doesn't work?
2) If not, do you have any idea what logs I can lookout to find information as to why things aren't launching, or how to turn on logging that will give me this info?

Thanks for your help!
 
Old 01-26-2012, 08:27 PM   #2
tembenite
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Looks like it has something to do with the setting of variables, and the fact those two apps require Java.

I'm trying to isolate further now.

Anybody know what scripts (if any) get executed when on a login from XRDP, or how to force their execution?
 
Old 01-26-2012, 09:13 PM   #3
tembenite
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
So I did a tail on the xession errors that I found:

# tail -f .xsession-errors
/home/devdroid/android-sdk-linux/tools/android: 84: java: not found
/home/devdroid/android-sdk-linux/tools/android: 101: java: not found
exec: 114: java: not found

This seems to confirm that Java isn't found.

This seems odd to me since I have JAVA_HOME and JRE_HOME defined in /etc/bashrc, which is called from /etc/profile.

If anyone can help clarify what scripts are run to set variables when using XRDP, I'd love to know that.

In the meantime I created a launcher script for the app which sets the PATH and JAVA_HOME, so that they run properly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
VNC displays 'terminal window' that can't be closed after VNC connection to CentOS Hispacific Red Hat 1 10-15-2010 03:44 PM
Unable to launch application from workstation but able to launch from vnc chaitanya1982 Linux - Desktop 2 04-30-2010 03:52 AM
VNC connection to SUSE Linux 10 from a Windows XP VNC Viewer determin2excel Linux - Software 13 10-03-2007 09:38 AM
VNC application with drop-down menu leupi Linux - Software 2 01-15-2006 11:40 AM
how to use vnc to launch gnome desktop asadhussain Linux - Networking 1 10-15-2003 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration