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

Notices


Reply
  Search this Thread
Old 01-18-2007, 11:46 PM   #1
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Rep: Reputation: 15
xfce programer launching


I've had a hard time launching apps in xfce when I can get them running just fine via the cl.

Example:
Quote:
sudo wine ~/.wine/drive_c/ultravnc/vncviewer.exe -listen
But if I create a menu item with:
Quote:
gksu "wine ~/.wine/drive_c/ultravnc/vncviewer.exe -listen"
then I am prompted for the password and then nothing happens. I've tried varying the placement of the quotations and so far nothing results in the app launching. Maybe this is a wine issue?
 
Old 01-19-2007, 03:21 AM   #2
guth
Member
 
Registered: Aug 2006
Location: France
Distribution: Zenwalk
Posts: 132

Rep: Reputation: 15
i'm not good at it (and never used wine), but did you try the gksu line in CLI ? (to check for any error). Try to use a full path too (i.e. no ~ but /home/username)

Anyway, it seems you want to start vncviewer, why not using the one in ZW ?
(for the 1st launch of the server, please use command line to be prompt for a password).
 
Old 01-19-2007, 08:07 AM   #3
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
Hm. Good idea and not the results I expected.

Quote:
[~]$ gksu wine ~/.wine/drive_c/ultravnc/vncviewer.exe -listen
Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
wine --help Display this help and exit
wine --version Output version information and exit
[~]$ gksu wine "~/.wine/drive_c/ultravnc/vncviewer.exe -listen"
Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
wine --help Display this help and exit
wine --version Output version information and exit
[~]$ gksu wine "~/.wine/drive_c/ultravnc/vncviewer.exe" -listen
Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
wine --help Display this help and exit
wine --version Output version information and exit
[~]$ gksu wine ~/.wine/drive_c/ultravnc/vncviewer.exe listen
Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
wine --help Display this help and exit
wine --version Output version information and exit
[~]$

Last edited by silmaril8n; 01-20-2007 at 01:24 AM.
 
Old 01-19-2007, 04:46 PM   #4
guth
Member
 
Registered: Aug 2006
Location: France
Distribution: Zenwalk
Posts: 132

Rep: Reputation: 15
what's the result of:

gksu "wine ~/.wine/drive_c/ultravnc/vncviewer.exe -listen"

gksu "wine /home/yourhome/.wine/drive_c/ultravnc/vncviewer.exe -listen"
 
Old 01-20-2007, 01:22 AM   #5
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
Looks like I need to read posts more clearly!

Quote:
[~]$ gksu "wine /home/user/.wine/drive_c/ultravnc/vncviewer.exe -listen"
err:imagelist:ImageList_ReplaceIcon no color!
err:imagelist:ImageList_ReplaceIcon no color!
err:imagelist:ImageList_ReplaceIcon no color!
err:imagelist:ImageList_ReplaceIcon no color!
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Whereas
Quote:
[~]$ sudo wine /home/user/.wine/drive_c/ultravnc/vncviewer.exe -listen
still seems to work just fine.

To answer your earlier question about why I'm using this over the default is that I use UltraVNC SC on many of our clients and the TightVNC viewer isn't compatible. I prefer Ultra over Tight because it offers encryption and file transfers "out of the box."
 
Old 01-20-2007, 04:07 AM   #6
guth
Member
 
Registered: Aug 2006
Location: France
Distribution: Zenwalk
Posts: 132

Rep: Reputation: 15
if you have xterm, try:
Code:
gksu "xterm -e wine /home/user/.wine/drive_c/ultravnc/vncviewer.exe -listen"
else:
Code:
gksu "Terminal -x wine /home/user/.wine/drive_c/ultravnc/vncviewer.exe -listen"
 
Old 01-21-2007, 09:00 PM   #7
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
Both of these result in an invalid option error from gksu. Apparently it is trying to apply the -e, or -x to gksu, rather than the respected program that it is actually used after.
 
Old 01-22-2007, 04:57 PM   #8
guth
Member
 
Registered: Aug 2006
Location: France
Distribution: Zenwalk
Posts: 132

Rep: Reputation: 15
even with the double quotes ???
try with simple quotes...
 
Old 01-22-2007, 05:13 PM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
(gk)su and sudo are not the same thing.

Edit: Why you need to run WINE with root rights?

Last edited by Emerson; 01-22-2007 at 05:14 PM.
 
Old 01-22-2007, 10:16 PM   #10
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by guth
even with the double quotes ???
try with simple quotes...
Tried with both to no avail. They give the same output.

I appreciate your help and tips!

Last edited by silmaril8n; 02-23-2010 at 08:56 PM.
 
Old 01-22-2007, 10:17 PM   #11
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Emerson
(gk)su and sudo are not the same thing.

Edit: Why you need to run WINE with root rights?
It was advised to me that when running UltraVNC as a listening viewer (-listen flag) that it must be run as root. When I just run the viewer alone I don't need it.
 
Old 01-23-2007, 06:01 AM   #12
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Did you solve your issue? Did you understand su requires a password and sudo can be configured to work without? So creating a menu item with sudo will work.
 
Old 01-23-2007, 11:07 PM   #13
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
I didn't get it working with root permission per se, but I did get it working via the menu without. I'm just going to leave it that way for now until I can test it more to see if it actually does need root.

I do know that I can have it use sudo without a password, but that isn't a road that I wanted to go down. This is only a home laptop for the time being, but I still want some level of security with it.
 
  


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
advantages of being a linux programer instead of programing in windows?? itz2000 Programming 10 06-19-2006 03:02 AM
C++ code,please C++ programer to give me some advise naihe2010 Programming 13 10-17-2005 10:30 AM
Need a perl programer to help me out with a script... ooagentbender Programming 4 01-24-2004 02:47 PM
Need to hire a programer! suse7.1user Programming 2 08-17-2003 02:24 PM
How do I start an Open Source Software Project... when I'm not a programer BaerRS Programming 1 10-23-2001 02:55 PM

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

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