LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   WINE and Slackware64. Programs Only Run in a Terminal. (https://www.linuxquestions.org/questions/slackware-14/wine-and-slackware64-programs-only-run-in-a-terminal-756442/)

cwizardone 09-19-2009 03:38 PM

WINE and Slackware64. Programs Only Run in a Terminal.
 
Once again, I would like to say a word of Thanks to Mr. Volkerding, Alien BOB, and the entire Slackware team for a job very well done on Slackware64. :hattip:
Alien BOB's work on Slackware64, his "True Multilib"* files, and his latest creation, a 64 bit package of WINE, is truly outstanding and way beyond "the call of duty."
*You should copyright that Alien BOB and/or make it a registered trademark. :)

I did a search of the last month's posts and didn't see anything about this problem (in the Slackware forum).

After installing Slackware64 and the "True Multilib" files, I installed the same version of WINE that worked so well with Slackware 12.2. Unfortunately, I found that while a windows application would run if it was fired it up from the prompt in a terminal (Konsole), it would not work, using the same command, as an item from the menu.

Thinking perhaps a new version was in order I looked around and found Alien BOB's recent 64 bit package of WINE. BTW, it runs better than any previous
version of WINE I've used. Thanks, again. However, the above outlined problem remains.

Anyone know a fix?

Many Thanks.
:)

Alien Bob 09-19-2009 04:00 PM

Hi!

I thought I could run my Wine-installed programs from their installed menus in Slackware64, but now I am not so sure.. I'll have to wait until I can boot into 64bit to test that (I only have one 64bit computer and that is compiling VLC in 32bit now.)

Eric

samac 09-20-2009 02:28 AM

I have quicken starting from the menu here, however the menu item is one I created not one added by wine. I can start from menu, panel, command line or clicking on an icon. This works in both KDE and XFCE on Slackware64-13.0 (multi-lib) with a stock kernel and wine-1.1.24-x86_64-1_SBo.

samac

cwizardone 09-20-2009 09:29 PM

Quote:

Originally Posted by samac (Post 3690337)
I have quicken starting from the menu here, however the menu item is one I created not one added by wine. I can start from menu, panel, command line or clicking on an icon. This works in both KDE and XFCE on Slackware64-13.0 (multi-lib) with a stock kernel and wine-1.1.24-x86_64-1_SBo.
samac

What are you doing differently with your commands?

If I enter this command at the prompt in a console,

wine /home/nai/.wine/drive_c/ahdw/ahd3.exe

the program will run. However, if I put that same command in a command line box using the KDE Menu Editor, the program won't run.
I've been trying different options, but no success as of the moment.
BTW, the above command line worked perfectly with WINE in Slackware 12.2.
Thanks.

samac 09-21-2009 02:42 AM

wine '/home/nai/.wine/drive_c/ahdw/ahd3.exe'

samac

cwizardone 09-21-2009 10:23 AM

Quote:

Originally Posted by samac (Post 3691312)
wine '/home/nai/.wine/drive_c/ahdw/ahd3.exe'
samac

Thanks for the effort, but no joy.
:(

cwizardone 09-22-2009 11:12 AM

Now What?
 
Well, this morning when I ran,

/home/nai/.wine/drive_c/ahdw/ahd3.exe

in a konsole it returned the error:

wine: cannot find '/home/hai/.wine/drive_c/ahdw/ahd3.exe'

It is there, I checked, and the permissions are correct, i.e., they are set for my user name and the group, "users."

Just for chuckles I deleted the /drive_c/ahdw directory and re-installed the program from scratch via WINE. Didn't change a thing, still the same problem.
So, I then copied the ahdw directory to my home directory and ran,

wine /home/hai/ahdw/ahd3.exe

in a konsole and it did work. However, it still won't work if ran from a menu entry using the KDE Menu Editor.

It is probably something simple, but none of the tweaks I've tried so far have worked. I've been running this same old windows program, "The American Heritage Talking Dictionary" for years under wine and have always been able to make it work, i.e., until now, for whatever reasons.
I've never been able to get the audio to work, but I'm happy just to have the dictionary and thesaurus at my fingertips.
Anymore suggestions on how to make this work from the menu would be greatly appreciated.
Many Thanks.
:hattip:

samac 09-22-2009 11:28 AM

A couple of thoughts which probably have already been done. Is this a newly compiled wine or one that you had lying about? Have you tried wincfg?

samac

tobyl 09-22-2009 12:33 PM

try doing what samac said, except use double quotes, not single

tobyl

cwizardone 09-22-2009 12:45 PM

Quote:

Originally Posted by samac (Post 3693067)
A couple of thoughts which probably have already been done. Is this a newly compiled wine or one that you had lying about? Have you tried wincfg?
samac

Yep. Tried both, old and new, but the result is the same.

cwizardone 09-22-2009 12:46 PM

Quote:

Originally Posted by tobyl (Post 3693120)
try doing what samac said, except use double quotes, not single
tobyl

Thanks, but quotes, single, double, or none at all, the result is the same. no joy.

tobyl 09-22-2009 01:39 PM

Curious. I have 64 bit current with multilib and just installed alien's wine package. It worked for me with double quotes for the path (although i used the notepad.exe)

tobyl

cwizardone 09-24-2009 01:14 PM

wine /home/username/.wine/drive_c/ahdw/ahd3.exe

wine /home/username/ahdw/ahd3.exe

Just FYI, neither of the above worked from a menu with KDE, but the second of the two,

wine /home/username/ahdw/ahd3.exe

does work as a menu item with Xfce.

As with KDE the first one only works within a console.

vik 09-25-2009 08:33 PM

This might be super obvious, but did you try giving the full path to wine in the menu command?
1) Please post the menu command you're using.
2) In the menu editor advanced tab, select run in terminal. Hopefully you'll get some output if things aren't working OK.

cwizardone 09-25-2009 11:52 PM

Quote:

Originally Posted by vik (Post 3697281)
This might be super obvious, but did you try giving the full path to wine in the menu command?
1) Please post the menu command you're using.

It is all in the previous posts.


Quote:

Originally Posted by vik (Post 3697281)
2) In the menu editor advanced tab, select run in terminal. Hopefully you'll get some output if things aren't working OK.

Already tried that. No joy.

vik 09-26-2009 12:48 AM

In your above posts you never tried giving the full path in the menu: /usr/bin/wine /home/nai/.wine/drive_c/ahdw/ahd3.exe

Also try wine C:\ahdw\ahd3.exe or wine "C:\ahdw\ahd3.exe" (if that's where you installed the program in your wine environment).

cwizardone 09-26-2009 01:12 AM

Thanks for all your suggestions, they are appreciated, but the results are the same with or without the /usr/bin/.

vik 09-26-2009 01:15 AM

Damn. That's wacked. This is a stretch, but do you have multiple wine executables and maybe one of them doesn't have the execute privilege?

I also have gotten wine to work with custom KDE menu items, although I used the 32-bit version and pulled the latest wine version.

vik 09-26-2009 07:50 AM

Whatever directory you're in when you run wine from the terminal, set that as your "work path" in the KDE menu editor. See if that works.

cwizardone 09-26-2009 10:18 AM

Sorry, no Joy.

It works in Slackware 12.2, with KDE 3.5.10.

It works in Slackware64-13, with Xfce.

It does NOT work in Slackware64-13, with KDE 4.2.4, and wine-1.1.17-i486-1_rlw.tgz or wine-1.1.29-x86_64-1alien.tgz.

cwizardone 09-30-2009 01:32 PM

Update.
The problem remains with KDE 4.3.1.
OTOH, all the other problems I was having with 4.2.4 seem to have been resolved with 4.3.1.

vik 09-30-2009 02:09 PM

I know this shouldn't matter, but are you using an icon with your menu item? If not, could you try it?

Just yesterday I installed the latest wine 1.1.30 and created a menu item for a game I play. This is with stock KDE 4.2 in Slackware.

cwizardone 09-30-2009 06:38 PM

The Solution.
 
Eureka!
Finally solved it.
I have ms-office running in WINE (all but the sound). Don't use it, but like to show people that it is possible. I took a look at the way WINE set up the menu entries and wrote it down. Then I had WINE install The American Heritage Dictionary to wherever it preferred and wrote down the location. WINE did not, for whatever reason, make a menu entry for the program.
I opened the menu editor and put this on the command line:

env WINEPREFIX="/home/username/.wine" wine "C:\AHDW\AHD3.EXE"

Bingo. It fired right up.

Now, if I could get sound to work in WINE...
:)

vik 10-01-2009 12:33 PM

Wine doesn't create menu items for most of the programs that I install--I just create the menu items myself. For your sound issues, run winecfg once and select Alsa as your default audio driver. That should be all there is to it.

cwizardone 10-01-2009 02:00 PM

Quote:

Originally Posted by vik (Post 3703861)
...For your sound issues, run winecfg once and select Alsa as your default audio driver. That should be all there is to it.

Did that and it tests OK from the config panel, but sound doesn't work when running a slide show in Powerpoint.


All times are GMT -5. The time now is 02:16 AM.