LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-27-2007, 01:33 PM   #1
telovoyagarcar
LQ Newbie
 
Registered: Mar 2007
Distribution: Ubuntu - IPCop
Posts: 20

Rep: Reputation: 0
Make a link to a wine application


I installed MSN Messenger using wine under the root account.
i can not access the root folder from the main user account that i want to run messenger from.
So i have to "su" in a terminal to become root, then navigate to /root/.wine/drive_c/Program Files/MSN Messenger
and from there "wine msnmsgr.exe" to launch the program.

I just need an icon in my user desktop that can take care of all this..

Thanks
 
Old 08-27-2007, 03:53 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You should install the Windows application under your /home directory, and execute it from there. Wine is not supposed to be run as root, since it gives the Windows application full access to the file system.

If installed properly by the user, an icon for the installed program should come up in your GNOME/KDE desktop.
 
Old 08-27-2007, 08:43 PM   #3
tech10171968
LQ Newbie
 
Registered: Jul 2005
Location: Southeastern USA
Distribution: Debian (Lenny)
Posts: 5

Rep: Reputation: 0
Is this a question on what format the path should take? If so then the path should look something like this:

/root/.wine/drive_c/Program\ Files/MSN\ Messenger.

Notice the backslashes in the path; it seems that Linux doesn't parse the spaces in filenames in a manner you'd expect, so using those backslashes helps with that issue. If you were to type the path as "/root/.wine/drive_c/Program Files/MSN Messenger", this is what Linux sees:

/root/.wine/drive_c/Program

...and you'll probably get an error like, "Can't find file '/root/.wine/drive_c/Program'". Using the backslashes should help.
 
Old 08-28-2007, 02:14 AM   #4
DrK
LQ Newbie
 
Registered: Aug 2007
Distribution: openSuSE
Posts: 7

Rep: Reputation: 0
Have you looked into using something like wine-tools (? if maintained) or wine-doors to setup WINE in your own home directory?

And I second the motion about never running WINE as root.

Last edited by DrK; 08-28-2007 at 02:18 AM.
 
Old 08-28-2007, 10:09 AM   #5
corrosivemisery
LQ Newbie
 
Registered: Jul 2007
Posts: 19

Rep: Reputation: 9
Post

Quote:
Originally Posted by MS3FGX View Post
You should install the Windows application under your /home directory, and execute it from there. Wine is not supposed to be run as root, since it gives the Windows application full access to the file system.
I disagree; yes, you don't want to run your apps as root, but you can choose to install them where ever (provided you have write access to the chosen dir). For example, I run Half-Life 2 (Steam) out of a dir in my data partition which is mounted up as /data. If you wanted to, you could install the app as root and run it as yourself to put it in /usr/share with other Linuxy apps.

In my config, Z:\ is "/" so I just put the app in z: somewhere e.g.

Z:\data\Steam

or

Z:\usr\share\Steam

That will allow the app to be used by other users which it would seem is your goal. Otherwise ~/.wine is a great place if only you will be running the app.

Hope that helps,
-Corr
 
Old 08-31-2007, 11:47 AM   #6
SlackOnIMEC
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 11.0 (kernel 2.6.19), Slamd64 11.0
Posts: 4

Rep: Reputation: 0
Use visudo and add a line like this : "%users ALL=(ALL) NOPASSWD: ALL"
-This will ad you to the sudo list, and allow you to use root commands as user.-

Place "sudo wine /root/.wine/drive_c/Program\ Files/MSN Messenger/msnmsgr.exe" in your link.

I have started IE6 on root as user using this method ...

(GAIM works very well, so why don't you use this program as messenger ?)
 
Old 08-31-2007, 05:22 PM   #7
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
As already covered, you are not supposed to run Wine as root for any reason. Running it through sudo is even worse.

Of course, not running software as root is a core concept in basic Linux use, so this shouldn't really come as a surprise to anyone.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Link targets - problems with Wine (Though not Wine specific - Wine site doesn't help) Kevjml Linux - Newbie 1 01-13-2006 07:53 AM
how to link helpblocks application to gtk application m.harshavardhan Linux - Software 0 08-16-2005 08:39 AM
easy; link to application Niels82 Linux - General 2 05-23-2004 11:52 AM
Link to application does not work gmichel Linux - Newbie 2 01-13-2004 11:01 AM
Link to application breany Linux - Software 6 08-21-2002 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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