LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Wine/Sudo Commands in Fluxbox Menu (https://www.linuxquestions.org/questions/linux-newbie-8/wine-sudo-commands-in-fluxbox-menu-719963/)

User Name. 04-17-2009 08:52 PM

Wine/Sudo Commands in Fluxbox Menu
 
What should I do if I want to be able execute Wine/Sudo commands from inside the Fluxbox menu? Things such as "sudo synaptic" or "wine /dir/dir/file.exe"?

Thanks in advance.

MS3FGX 04-17-2009 09:14 PM

Just put them in the field like you would any other command.

User Name. 04-17-2009 09:27 PM

Quote:

Originally Posted by MS3FGX (Post 3512811)
Just put them in the field like you would any other command.

That doesn't seem to work, if this is what you are referring to:

Code:

[exec] (Synaptic) {sudo synaptic}

malekmustaq 04-17-2009 09:52 PM

User_Name:

There are many ways to activate a win.program in wine.

One, is to Install the win.program through wine then create a shortcut of the installed program binary in the desktop, you only double-click that link to activate the win.program.

Two, launch wine config and in the applications tab click add application and browse to the binary. In my slack doing this wine created a set of apps in the menu for easy launching.

Three, use the terminal.
Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
wine --help Display this help and exit
wine --version Output version information and exit

Generally, the concept is that you should be able to locate and manipulate the binary file of the program as you would have regularly use an .exe under MSwindoze. Get familiar with these folders: /bin, /usr/bin, /usr/local/bin these are the usual den of binaries.

About wine sudo?

Honestly I don't fully understand what answer you need. I can only try infer from your post ad infinitum.

If you have 'permission' problems running wine driven apps try to examine the .wine folders under your /home/username. Try issue command sudo chmod -R 777 ./.wine that you can make it universally promiscuous: sometimes ease and productivity should prevail over speculative security apprehensions.

-ihih- I hope it helps.

Goodluck.

MS3FGX 04-17-2009 10:09 PM

Quote:

Originally Posted by User Name. (Post 3512821)
That doesn't seem to work, if this is what you are referring to:

Code:

[exec] (Synaptic) {sudo synaptic}

It is, and it should. That is what I have always done and it works fine.

Are you able to run "sudo synaptic" from the terminal emulator properly? It sounds like the most likely problem is that your user account doesn't have the paths setup properly. Try giving the full path to the binary.

I assume you already sudoers setup to allow your user account to access without a password?

User Name. 04-18-2009 09:07 AM

Quote:

Originally Posted by MS3FGX (Post 3512843)
It is, and it should. That is what I have always done and it works fine.

Are you able to run "sudo synaptic" from the terminal emulator properly? It sounds like the most likely problem is that your user account doesn't have the paths setup properly. Try giving the full path to the binary.

I assume you already sudoers setup to allow your user account to access without a password?

I can run sudo synaptic, although as your last question asked, I can't run sudo without typing in a password.

I tried giving the full path ("sudo /usr/sbin/synaptic"), but that didn't work. Does that mean that I will have to change how sudoers is setup?

MS3FGX 04-18-2009 03:34 PM

If you need to enter a password at the sudo prompt, then you are not going to be able to put it into a menu option like that. There is no way for it to prompt you for a password.

You would need need to setup sudoers so that you can run commands through sudo without a password (which obviously has serious security/safety risks), or else spawn those commands in a shell so it can ask you for your password. Something like:

Code:

[exec] (Synaptic) {xterm -e sudo synaptic}
This would spawn an xterm that will immediately run "sudo synaptic", which will give you a chance to enter a password.

User Name. 04-18-2009 05:06 PM

Quote:

Originally Posted by MS3FGX (Post 3513458)
If you need to enter a password at the sudo prompt, then you are not going to be able to put it into a menu option like that. There is no way for it to prompt you for a password.

You would need need to setup sudoers so that you can run commands through sudo without a password (which obviously has serious security/safety risks), or else spawn those commands in a shell so it can ask you for your password. Something like:

Code:

[exec] (Synaptic) {xterm -e sudo synaptic}
This would spawn an xterm that will immediately run "sudo synaptic", which will give you a chance to enter a password.

That's one way of doing it, although I just discovered a program called gksudo which has the benefit of not leaving a xterm window open.

Thanks for you help anyway.


All times are GMT -5. The time now is 08:03 PM.