Forum rules

I have installed Word 2007 via wine and although it starts when I use the gnome menu or click on the icon, it won't start using the MintMenu. All I get is "error file not found". Looking at some old posts this seems to have been a problem with MintMenu for some time. Is there a work around? I don't mind clicking on a shortcut to get Word running but the "cheese and kisses" is getting annoyed. I had to load Word 2007 just for her. Openoffice does the job for me. By the way Word 2007 runs fine in wine. No probs at all.
Last edited by allypink on Sun Nov 21, 2010 7:16 am, edited 1 time in total.
Desktop; DELL Optiplex Core 2 Quad 8GB RAM
Run Mint 17.1, 1TB WD black 7200 and Win 7 320GB WD black 7200 (gotta for work)
A happy donor to the effort. If you use it...... DONATE!

allypink
Level 3

Posts: 178
Joined: Sun May 30, 2010 10:27 pm
Location: Nambour Australia

Linux Mint is funded by ads and donations.

BTW why u need Word in Linux?
Did u try to check the path:
/home/your_account/.wine/drive_c/Program Files/... ?

md5 / sha1 check [how-to for NEWBIES]

Score: 43 I have some hippie in me. Cool, man
Take the elitemrp.net "Are you a Hippie?" Test

Elisa
Level 6

Posts: 1424
Joined: Wed Aug 18, 2010 6:46 am

Elisa wrote:BTW why u need Word in Linux?
Did u try to check the path:
/home/your_account/.wine/drive_c/Program Files/... ?

I solved the problem by getting rid of the installed wine start command;

env WINEPREFIX="/home/al/.wine" wine C:\\windows\\command\\start.exe /Unix /home/al/.wine/dosdevices/c:/users/al/Start\ Menu/Programs/Microsoft\ Office/winword.lnk

to my own;

wine "/home/al/.wine/drive_c/Program Files/Microsoft Office/Office12/WINWORD.EXE"

As I said my wife is happy to use Linux provided she can have her chosen word processor........ Word. I although I am happy to use oo, Word is still one of the best and I have always been happy to pay for good software and Word 2007 works faultlessly and fast under wine.
Thanks for your interest. I hope my experience will help someone else.
Al.
Desktop; DELL Optiplex Core 2 Quad 8GB RAM
Run Mint 17.1, 1TB WD black 7200 and Win 7 320GB WD black 7200 (gotta for work)
A happy donor to the effort. If you use it...... DONATE!

allypink
Level 3

Posts: 178
Joined: Sun May 30, 2010 10:27 pm
Location: Nambour Australia

Thanks for this. I am new to Mint and have found this WINE problem incredibly frustrating. This has solved my problem.
Statham
Level 1

Posts: 16
Joined: Mon Jan 17, 2011 10:40 am

I have this problem and this did NOT solve it.
jamesklyne
Level 1

Posts: 1
Joined: Thu Jan 27, 2011 5:04 am

jamesklyne wrote:I have this problem and this did NOT solve it.
And what's your problem, put down more details...

md5 / sha1 check [how-to for NEWBIES]

Score: 43 I have some hippie in me. Cool, man
Take the elitemrp.net "Are you a Hippie?" Test

Elisa
Level 6

Posts: 1424
Joined: Wed Aug 18, 2010 6:46 am

For those that still have this issue, here's a simples workaround: just put double quotes around the last parameter (the path to the .lnk), and remove any scape backslash from that.

So, using the example from OP, this:
Code: Select all
env WINEPREFIX="/home/sb/.wine" wine C:\\windows\\command\\start.exe /Unix /home/sb/.wine/dosdevices/c:/users/sb/Start\ Menu/Programs/Microsoft\ Office/Microsoft\ Office\ Word\ 2007.lnk

would turn into this:
Code: Select all
env WINEPREFIX="/home/sb/.wine" wine C:\\windows\\command\\start.exe /Unix "/home/sb/.wine/dosdevices/c:/users/sb/Start Menu/Programs/Microsoft Office/Microsoft Office Word 2007.lnk"

It keeps the original command almost intact.

And dont forget to refresh the menu after the change: right-click menu icon in panel -> Reload Plugins
MestreLion
Level 1

Posts: 8
Joined: Sat Feb 19, 2011 4:14 am

Thanks allypink, I thought I was going to have to learn the Linux secret handshake before I found out what syntax to use for the "menu" command line for Wine programs. Works Like a charm. I only have one Window\$ program that I haven't found anything close that written for Linux. I use it to re colorize old photos after I fix them in Gimp.
-Dell Mini Inspiron 910 Netbook-Atom CPU-N270-1.60ghz; 16gbs mini ePCI PATA SSD
RAM- 1gbs-(LinixMint-17.1: KDE)

wyrdoak
Level 6

Posts: 1311
Joined: Thu May 19, 2011 1:32 pm
Location: USA

wyrdoak wrote:Thanks allypink, I thought I was going to have to learn the Linux secret handshake before I found out what syntax to use for the "menu" command line for Wine programs. Works Like a charm.

True, it works like a charm... for some apps. The syntax provided by allypink has the great advantage of being simple and ready-to-use, but it lacks some flexibility and features that may be needed for some apps/wine setups.

The most basic syntax (as he provided) can be generalized as:
Code: Select all
wine "/path/to/your/app.exe"

But... what is your app's executable file? And where is it? The above command requires you to browse through your windows tree, locate the installed directory, and find the right executable. Sometimes it is easy to find, sometimes it is not. What if your game has "loader.exe", "start.exe" and "game.exe" ? Which to choose? What if they need additional switches (arguments) to work? Is it "game /s /u" or "loader --start"? What about starting directory? Or compatibility settings?

That's why wine, by default, creates a command that points not to the executable itself, but to the menu entry created by the very install of program, the .lnk file. That is the correct way: let the application itself define which is the executable, the path, the parameters. In windows, you don't have to know which is the executable file of Word, or Internet Explorer. You use their generated menu entry. And that's what wine does. So the basic command is improved to:

Code: Select all
wine start /Unix "/unix/path/to/app's/menuentry.lnk"

Where "start" is a windows program, provided by wine, that can read a lnk file and launch it accordingly. The /Unix parameter tells start that the following will be a unix absolute path (/home/user/.wine/dosdevices/etc...), instead of a windows wine path (C:\Program Files\etc). And since start itself is located in System32 folder, wine's menu entry provides a full path to it, hence "C:\windows\system32\start.exe"

Although in 90% of cases the executable can be easily located, and can be launched without any additional parameters, wine chose a safer, fail-proof approach. (actually, it as no other choice: you may know that Office 2007 install.exe ends up installing Word in C:\xxxxx\Office12\winword.exe and excel in excel.exe. But wine has no way to know that!)

Last but not least, even that "enhanced command" is not enough for all scenarios: that will run the specified executable in the default wine prefix. A wine prefix can be thought of a "virtual machine". And wine allows you to have more than one prefix, each one being a completely independent, isolated environment. So you can tweak the settings for a given prefix (to make your app works better) without affecting apps installed in another, separate prefix. That's where the env WINEPREFIX="/path/to/prefix" from the original command comes from, and "/home/user/.wine" is the default prefix location.

Which leads us to the final, flexible, powerful yet fail-proof general syntax of wine's default menu entry:
Code: Select all
env WINEPREFIX="/path/to/prefix" [b]wine[/b] "C:\windows\path\to\start.exe" /Unix "/unix/path/to/menu/entry.lnk"

Looks like overkill when a simple 2 word "wine notepad" will work, but once you understand why and its advantages, you'll stick with the default command, no matter how scary it may seem at first glance.
MestreLion
Level 1

Posts: 8
Joined: Sat Feb 19, 2011 4:14 am

It is failproof for the Gnome menu, but the Mintmenu doesn't like this command.
Registered Linux User #528502

Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16

Posts: 6669
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

When I was needing "Wine" more, the only "Mint Menu" entry that worked that "Wine" install was "Notepad". I have yet to find a program that "Wine" writes a command line that works in "Mint Menu" when installed. Sometimes it will create a good desktop launcher, but I have yet to see it make a good "Mint Menu" Launcher. And the command lines of the two are not interchangeable. And It has never written a command like the two posts in this thread.
-Dell Mini Inspiron 910 Netbook-Atom CPU-N270-1.60ghz; 16gbs mini ePCI PATA SSD
RAM- 1gbs-(LinixMint-17.1: KDE)

wyrdoak
Level 6

Posts: 1311
Joined: Thu May 19, 2011 1:32 pm
Location: USA

I have tried all the solutions in this post, and I am more than ever convinced that there is a bug or bugs in the handling of wine entries in the mintMenu. I can run scripts to start wine programs but only if I put them in locations other than the wine menu (such as the menu item office). It may be spaces in the path, or it may be deeply nested menu items do not work. I need some inspiration for further tests.

Does anybody know where the source code for mintmenu is? If its in C I might have a chance of understanding it.

Garvan
Desktop: Dell, Intel Core 2 Duo E7500 @ 2.93GHz, 2GiB RAM, Lubuntu 14.04 (trusty)
Notebook: HP 14 Notebook PC 14-r003TX, i5-4210U @ 1.7 GHz, 8GB RAM, Linux Mint 17.1
Notebook: DELL latitude E5520, i5-2520M @ 2.50 GHz, 4GB RAM, Linux Mint 17.1

Garvan
Level 4

Posts: 286
Joined: Sun May 29, 2011 3:26 am
Location: Lao PDR

Registered Linux User #528502

Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16

Posts: 6669
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

AlbertP wrote:MintMenu is written in Python.

Do you know where the source code is? Garvan

UPDATE: I found it a script named mintMenu.py, thanks. I also found the problem with my setup. Kindle was installed with this menu structure as seen in the menu editor (Main Menu):

When I changed it to

It worked correctly.

I am still sure it is a bug that it did not work as installed by Kindle's installer.
Desktop: Dell, Intel Core 2 Duo E7500 @ 2.93GHz, 2GiB RAM, Lubuntu 14.04 (trusty)
Notebook: HP 14 Notebook PC 14-r003TX, i5-4210U @ 1.7 GHz, 8GB RAM, Linux Mint 17.1
Notebook: DELL latitude E5520, i5-2520M @ 2.50 GHz, 4GB RAM, Linux Mint 17.1

Garvan
Level 4

Posts: 286
Joined: Sun May 29, 2011 3:26 am
Location: Lao PDR

The MintMenu is also unable to run script files unless they start with #!/bin/bash or something corresponding (depending on the language).
I had some personal deb files that installed well under the Gnome menu, but refused to launch from the MintMenu because of this.
Could be that this issue is related to the wine-issue.
josefg
Level 2

Posts: 75
Joined: Sun Jun 12, 2011 7:07 pm

Linux Mint is funded by ads and donations.