[mintmenu] not launching MS Office properly

Bug #664751 reported by Steve Bovino on 2010-10-21
68
This bug affects 14 people
Affects Status Importance Assigned to Milestone
Linux Mint
Medium
Clement Lefebvre

Bug Description

I am using the RC 64 bit version. I have attempted to install MS Office 2003 and 2007 using Wine. The applications install but the menuitems on mintmenu do not work. When you attempt to launch an applicaiton you get an error message in a small dialog box, "File not found". If you copy the property of the menu item and place it into a desktop launcher, the applicaiton will execute properly. I have only noted this behavior so far for MS Office. Other Windows apps install correctly on the mintmenu. Here is one such example from MS Office that fails:

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

This above string will work correctly when placed in a desktop launcher, yet fails when run off of the installed mintmenu menu item listed under wine.

Both versions of Windows office deploy properly on Ubuntu version 10 menu system. This bug can be easily and regularly reproduced.

affects: community.linuxmint.com → linuxmint
Changed in linuxmint:
milestone: none → julia-stable
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Clement Lefebvre (clementlefebvre)
Luciano (jluciano) wrote :

i had the same issue until my menu went boom idk why
stil i was abble to edit the luncher manualy and it worked fine

wine /path/to/exe/

works fine

Note to myself: mintmenu runs Office in manual mode (this was established in bug #618044)

summary: - Minemenu not installing MS Office properly cannot launch apps
+ [mintmenu] not launching MS Office properly

With the exec string below, mintmenu manages to launch Internet Explorer without any problem:

env WINEPREFIX="/home/clem/.wine" wine C:\\windows\\command\\start.exe /Unix /home/clem/.wine/dosdevices/c:/Program\ Files/Internet\ Explorer/iexplore.exe

Could there be something wrong with Office itself?

Can you do the following:

- Add the Gnome menu to your panel and try to run Office from there to see if it works.
- Open a terminal and type the string below, to see if it launches Office:

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

Changed in linuxmint:
status: Confirmed → Incomplete
Download full text (3.2 KiB)

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

I ran the above string in terminal. It launched. I
ran it under Gnomenu, it launched. I ran in the
Gnome menu (alt-f1) it launched. When I run it off
the mintmenu I get the "file not found" message.
Here is the mintmenu output from terminal.

mintMenu.py:6084): WARNING **: Binding
'<Control>Super_L' failed!

running manually...
fixme:exec:SHELL_execute flags ignored: 0x00000100
Application could not be started, or no application
associated with the specified file.
ShellExecuteEx failed: Success

I can run other Windows program from mintmenu
although I don't have IE installed. This happens
with Office 2003 and 2007.

>------- Original Message -------
>From : Clement Lefebvre[mailto:<email address hidden>]
>Sent : 10/26/2010 10:30:49 AM
>To : <email address hidden>
>Cc :
>Subject : RE: [Bug 664751] Re: [mintmenu] not
launching MS Office properly
>
 >With the exec string below, mintmenu manages to
launch Internet Explorer
without any problem:

env WINEPREFIX="/home/clem/.wine" wine
C:\\windows\\command\\start.exe
/Unix /home/clem/.wine/dosdevices/c:/Program\
Files/Internet\
Explorer/iexplore.exe

Could there be something wrong with Office itself?

Can you do the following:

- Add the Gnome menu to your panel and try to run
Office from there to see if it works.
- Open a terminal and type the string below, to see
if it launches Office:

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

** Changed in: linuxmint
       Status: Confirmed => Incomplete

--
[mintmenu] not launching MS Office properly
 https://bugs.launchpad.net/bugs/664751
You received this bug notification because you are a
direct subscriber
of the bug.

Status in The Linux Mint Distribution: Incomplete

Bug description:
I am using the RC 64 bit version. I have attempted
to install MS Office 2003 and 2007 using Wine. The
applications install but the menuitems on mintmenu do
not work. When you attempt to launch an applicaiton
you get an error message in a small dialog box, "File
not found". If you copy the property of the menu
item and place it into a desktop launcher, the
applicaiton will execute properly. I have only noted
this behavior so far for MS Office. Other Windows
apps install correctly on the mintmenu. Here is one
such example from MS Office that fails:

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

This above string will work correctly when placed in
a desktop launcher, yet fails when run off of the
installed mintmenu menu item listed under wine.

Both versions of Windows office deploy properly on
Ubuntu version 10 menu system. This bug can be
easily and regularly reproduced.

To unsubscribe from this bug, go to:
 https://bugs.launchpad.net/l...

Read more...

Changed in linuxmint:
milestone: julia-stable → julia-maintenance
dreKion (drekion) wrote :

I have the same error "file not found", at the moment my solution is move to desktop

Dmitry Savvateev (savvdm) wrote :

Most of my wine shortcuts do not work from mintMenu. They all work well from Gnome menu (Alt-F1).
It's pity, because I would like to see them on Favorites page.

Below are some examples (some of them edited manually):

This one says "File not found":
env WINEPREFIX="/home/savvdm/.wine" wine C:\\windows\\command\\start.exe /Unix /home/savvdm/.wine/dosdevices/c:/users/Public/Главное\ меню/Программы/OziExplorer/OziExplorer\ Trial.lnk

This one silently does not start anything:
wine 'C:\Program Files\ArcSoft\Software Suite\Panorama Maker 4\pmk.exe'

This one says "File not found":
env WINEPREFIX="/home/savvdm/.wine" wine C:\\windows\\command\\start.exe /Unix /home/savvdm/.wine/dosdevices/c:/users/savvdm/Главное\ меню/Программы/iSilo/iSilo.lnk

This one works, but does not show proper icon:
wine C:\\OziExplorer\\OziExp.exe
(the icon is not shown properly in Gnome menu as well, so probably this is another issue)

Dmitry Savvateev (savvdm) wrote :

And here's what it says in terminal:

running manually...
fixme:exec:SHELL_execute flags ignored: 0x00000100
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: Success

Julian Hoch (julianhoch) wrote :

I am not sure if this is the same bug, but my wine programs also do not run from Mint Menu - copying their respective run strings to the terminal, they run fine. Also interesting: If I change the run string of the respective mint menu entries to some other program (say, gnome-terminal) the same wine errror message appears.

I run Mint 10 and standard 1.2.1 Wine, the bug affects all my Wine programs in all prefixes. Gnome menu works, Mint menu does not.

Curt Matz (curtis-matzzone) wrote :

I run Mint 10 Julia and Wine 1.2.1 and the few wine application I have installed don't work from the Mint Menu but do work from the gnome menu (Alt-F1). If this helps I use DockbarX and wine apps receive the same error message from there as well "File not found." I have to put the icons on the desktop to run wine applications.

Nikhil Sinha (nikhildotnet) wrote :

When “Microsoft Office Word 2007” is launched from MintMenu it gives the following error “File not found”.

Test Machine
OS - Linux mint 9 gnome
mintmenu v4.9.9

===================
Temporary SOLUTION - works with mintmenu
===================
Menu Entry for “Microsoft Office Word 2007” and “command” =
env WINEPREFIX="/home/nikhil/.wine" wine C:\\windows\\command\\start.exe /Unix /home/nikhil/.wine/dosdevices/c:/users/nikhil/Start\ Menu/Programs/Microsoft\ Office/Microsoft\ Office\ Word\ 2007.lnk

It seems that above command is correct but mintmenu fails to make it work.
Therefore, it fails to launch from MintMenu but works from Terminal.

Definitely this is bug in MintMenu and Bug #618044 is "Fix Released" but doesn't solve the issue.

Now change the above menu entry to
command =
env WINEPREFIX="/home/nikhil/.wine" wine "C:\Program Files\Microsoft Office\Office12\WINWORD.exe"

Logout of the system – This step is mandatory. Menu entries won't reflect until logout.

Try to launch “Microsoft Office Word 2007” from mintmenu, it should work.

For EXCEL
env WINEPREFIX="/home/nikhil/.wine" wine C:\\windows\\command\\start.exe /Unix /home/nikhil/.wine/dosdevices/c:/users/preeti/Start\ Menu/Programs/Microsoft\ Office/Microsoft\ Office\ Excel\ 2007.lnk

env WINEPREFIX="/home/nikhil/.wine" wine "C:\Program Files\Microsoft Office\Office12\EXCEL.exe"

Curt Matz (curtis-matzzone) wrote :

The workaround also worked for me. Thank you Nikhil!

Dmitry Savvateev (savvdm) wrote :

Works for me too, although "resolving" lnk to exe is a bit annoying. Would be nice to see this fixed one day. Thanks anyway!

Jorge (ergodic-city) wrote :

Hello,

thank you for all this information. I had the same problem and now I can start Excel and Word directly from wine menu. However, I tried the same fix for powerpoint and I am still unable to launch it (I must add that before the fix, from .lnk to .exe at the properties command line, powerpoint did not launch either). Do you have any suggestions I can try? (I use Open Office but I am not doing this for myself but my parents' PC, which has Linux Mint 10 --Julia).

Here is the error I get when attempting to launch from wine menu:

Error when launching Powerpoint in safe mode. Do you wish to repair yes/no
When I click on 'yes' nothing will happen.

Does this have anything to do with a corrupted .dll file or some other file that needs to be replaced?

Currently the command line to launch power point (in properties) reads as follows:
"/home/german/.wine/drive_c/Program Files/Microsoft Office/Office12/POWERPNT.EXE"

Before it used to be:
env WINEPREFIX="/home/german/.wine" wine C:\\windows\\command\\start.exe /Unix /home/german/.wine/dosdevices/c:/users/german/Start\ Menu/Programs/Microsoft\ Office/Microsoft\ Office\ PowerPoint\ 2007.lnk

Any help will be greatly appreciated. Last but not least, I must add that my understanding of Linux Mint 10 is limited to only this: it seems to be GREAT.

Jorge.

Nikhil Sinha (nikhildotnet) wrote :

Word 2007, Excel 2007 works by default with Wine.
PowerPoint 2007 DOES NOT work by default with Wine.

To make ** PowerPoint 2007 ** run with wine.

Install "winetricks"

Then type the following in terminal.
============
winetricks riched20
============

The mint menu can be correct the way as it was done for Word, and Excel.

Hope this works.

More information can be found at
http://appdb.winehq.org/objectManager.php?sClass=version&iId=12813

Albert Pool (albertpool) wrote :

This does not only apply to MS Office. It applies to all Wine apps since version 1.2. In my opinion, we should close this bug and mark it as duplicate of #618044, and re-open that bug.

Steve Randall (srandall52) wrote :

Attached patch works for me (so far).

Martin Malec (martin-malec) wrote :

I confirm this bug, all Wine-installed application menu items (Office, Picasa, ...) don't run from mintMenu (Error: File not found), while from the Gnome/MATE-menu (Alt-F1 or as I just added the icon next to the mintMenu) the same works OK. So the problem is not definitely in MATE, but in mintMenu only.

Russ Hare (abscomputing) wrote :

Know this has been inactive for awhile...

Here are the fixes for Office 2007 (32bit) wine default install with "owner" as the user
Note riched20 has been referenced before in the thread - my notes are a little different and will be added at the end.

InfoPath - works after riched fix!!
env WINEPREFIX="/home/owner/.wine" wine "C:\Program Files\Microsoft Office\Office12\INFOPATH.EXE"

PowerPoint - works after riched fix!!
env WINEPREFIX=
"/home/owner/.wine" wine C:\\windows\\command\\start.exe "C:\Program Files\Microsoft Office\Office12\POWERPNT.EXE"

Outlook
env WINEPREFIX="/home/owner/.wine" wine C:\\windows\\command\\start.exe "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE"

Access:
env WINEPREFIX="/home/owner/.wine" wine C:\\windows\\command\\start.exe "C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE"

Publisher:
env WINEPREFIX="/home/owner/.wine" wine C:\\windows\\command\\start.exe "C:\Program Files\Microsoft Office\Office12\MSPUB.EXE"

MS ClipArt Organizer
env WINEPREFIX="/home/owner/.wine" wine C:\\windows\\command\\start.exe "C:\Program Files\Microsoft Office\Office12\MSTORE.EXE"

Office Picture Manager
env WINEPREFIX="/home/owner/.wine" wine C:\\windows\\command\\start.exe "C:\Program Files\Microsoft Office\Office12\OIS.EXE"

For sure, InfoPath and PowerPoint need the riched fix. Some of the others listed above may as well,

Here is what I did for riched20:
Start wine configuration

In the Libraries tab in the area labeled "New override for library" type in riched20.dll and click on Add.
You will see it appear in the list below. Now select the riched20 in the list that we just added and click on the Edit button.

Set it to Native (Windows) and click OK.

This will allow Powerpoint and the other applications to run correctly.

My notes indicate as follows: Do not install riched20 with winetricks. Office 2007 installs its own version of riched20.
If Office is installed in a separate wineprefix (strongly recommended), you can safely set the override globally. If not, set the overrides separately for each Office application. Note that if you do the latter you must set the override for all exes installed by Office, not just the main ones

Russ Hare (abscomputing) wrote :

Very sorry - pasted the wrong commands in...

Corrected are:
InfoPath
env WINEPREFIX="/home/owner/.wine" wine "C:\Program Files\Microsoft Office\Office12\INFOPATH.EXE"

PowerPoint
env WINEPREFIX="/home/owner/.wine" "C:\Program Files\Microsoft Office\Office12\POWERPNT.EXE"

Outlook
env WINEPREFIX="/home/owner/.wine" wine "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE"

Access:
env WINEPREFIX="/home/owner/.wine" wine "C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE"

Publisher:
env WINEPREFIX="/home/owner/.wine" wine "C:\Program Files\Microsoft Office\Office12\MSPUB.EXE"

MS ClipArt Organizer
env WINEPREFIX="/home/owner/.wine" wine "C:\Program Files\Microsoft Office\Office12\MSTORE.EXE"

Office Picture Manager
env WINEPREFIX="/home/owner/.wine" wine "C:\Program Files\Microsoft Office\Office12\OIS.EXE"

Turbo (axelhc) wrote :

Hi Guys.

This bug is alive and kicking on Linux Mint Mate 17.3 Rosa.

Spent hours last night because I thought did something wrong (being installing OF2010 for years with no problems).
As in your case, there is no way to make it work from Mint Menu but starts fine from command line.

I have Wine 1.7.55.

Will try your fixes tonight.

Thank you.

I have successfully installed Microsoft Office 2007 in Ubuntu 12.04. I installed on both 32 bit and 64 bit machine. The steps are little different for the different architecture.

 First step was to install wine1.4, winetricks, wine-gecko1.4. If winbind is not installed install it also.

sudo apt-get install wine1.4 winetricks wine-gecko1.4

2. Secondly install Microsoft Core fonts

sudo apt-get install msttcorefonts

 If you have any problem with the installation then download the offline installer and do the setup as follows:

wget http://imaginux.com/repos/pool/renzo/msttcorefonts-offline_1.0-0ubuntu1_all.deb
sudo dpkg -i msttcorefonts-offline_1.0-0ubuntu1_all.deb

3. 32 bit users can directly go to step 4. 64 bit users only must run the following commands in a terminal. This will set the Windows version as 32 bit. The Microsoft Office is available for 32 bit only.

[Warning: rm -rf ~/.wine will remove the all programs and configuration under wine. If you have something important in that directory please backup before running the following commands.]

rm -rf ~/.wine
export WINEARCH=win32
wineboot --update

4. The different components can be installed all together also by the terminal command winetricks dotnet20 msxml3 gdiplus riched20 riched30 vcrun2005. But during installation of msxml3 it will give a download link. This has to downloaded and put inside the folder
/home/user/.cache/winetricks/msxml3 and the command needs to be re-run. During installation of dotnet20 it may give an error dialog. Just press Ok. It wont affect the installation.

5. Finally install Microsoft Office from your CD/DVD.

The above method works with Linux Mint 17.2 as well.

KennoVO (kenno-xs4all) wrote :

Guys, the patch submitted by Steve Randall in post #16 does work, and I haven't suffered any negative effects. It seems a bit surreal that someone spends the effort of diagnosing and fixing a problem, only to be ignored for the next 4 years (and counting).

Changed in linuxmint:
status: Incomplete → Confirmed
omvsj (omvsj) wrote :

How did you apply the patch?

omvsj (omvsj) wrote :

I downloaded the patch, opened it and found it refers to "mintMenu/plugins/easybuttons.py"

So... I edited /usr/lib/linuxmint/mintMenu/plugins/easybuttons.py

But I didn't find
self.appExec = desktopItem.getExec()

I supossed it's because I have LM 17.3. Instead it was
self.appExec = self.strip_accents(desktopItem.getExec())

So I changed to
self.appExec = self.strip_accents(desktopItem.getExec().replace('\\\\', '\\'))

Logged out and in but didn't work.

omvsj (omvsj) wrote :

After reboot manual patch worked.

omvsj (omvsj) wrote :

LM 18, same problem.

Solved as #25 and #26, based on Steve Randall patch posted en #16.

Thanks for reviving this old bug report. Don't hesitate to use github for issues on software we develop: https://github.com/linuxmint/mintmenu/issues/.

This issue is fixed by https://github.com/linuxmint/mintmenu/commit/eafbd9d7ef48fcfb179d9cc382723d0779668b7f

Changed in linuxmint:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers