programs in "Microsoft Office 2007" don't start

Bug #490287 reported by Pierre Frenkiel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PlayOnLinux
Fix Released
Undecided
Unassigned
playonlinux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: playonlinux

lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10

apt-cache policy playonlinux
playonlinux:
  Installed: 3.6-1
  Candidate: 3.6-1
  Version table:
 *** 3.6-1 0
        500 http://ftp.crihan.fr karmic/multiverse Packages
        100 /var/lib/dpkg/status

I expect, when I type: playonlinux --run "Microsoft Office Word 2007"
to get a word window
Instead, I get the error message:
    wine: cannot find '/WINWORD.EXE'
Idem for all the programs of the suite.

After looking at the different scripts, I found that all scripts in directory

   $HOME/.PlayOnLinux/configurations/installed

are completely wrong:
How can somebody make 3 so big errors in a 8-line script, errors that
prevent the program to start:

============================================================================
cd "$HOME/.PlayOnLinux/wineprefix/Office2007/drive_c/Program Files/Microsoft Office/Office12"
docname=${1##*/}
docpath=${1%/*}
cd "$docpath"
wine "/POWERPNT.EXE" "$docname"
============================================================================

1/ the / in the wine command explains the error message
2/ After removing the /, when giving an argument in the call, the 2nd
  "cd" command cancels the 1st one, which gives the error:

   wine: could not load L"C:\\windows\\system32\\POWERPNT.EXE": Module not found

3/ even after correcting these 2 errors, i.e replacing the last 4 lines by just:

   wine "POWERPNT.EXE" $1

   it works only if the given file is in the same directory as the .EXE
   to make it to work, the correct script is:
================================================================================
#!/bin/bash
PATH="$HOME/.PlayOnLinux/WineVersions/1.1.33/usr/bin/:$PATH"
export WINEPREFIX="$HOME/.PlayOnLinux/wineprefix/Office2007"
export WINEDEBUG="-all"
EXE="$HOME/.PlayOnLinux/wineprefix/Office2007/drive_c/Program Files/Microsoft Office/Office12"
wine "${EXE}/POWERPNT.EXE" $1
================================================================================

ProblemType: Bug
Architecture: i386
Date: Mon Nov 30 11:57:56 2009
DistroRelease: Ubuntu 9.10
Package: playonlinux 3.6-1
PackageArchitecture: all
ProcEnviron:
 LC_TIME=fr_FR
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/ksh
ProcVersionSignature: Ubuntu 2.6.31-15.50-generic
SourcePackage: playonlinux
Uname: Linux 2.6.31-15-generic i686

Revision history for this message
Pierre Frenkiel (pierre-frenkiel) wrote :
Revision history for this message
Pierre Frenkiel (pierre-frenkiel) wrote :

I forgot to add that the script I gave worked as a separate script
directly run by the user.
To make the original scripts in
    $HOME/.PlayOnLinux/configurations/installed
to work with
    playonlinux --run "Microsoft Office PowerPoint 2007" $PWD/file.ppt
one needs to give the absolute path in the call,
because playonlinux does a "cd ..." command before calling them,
So, one must add the following code:

D=`dirname $1`
F=`basename $1`
cd $D
wine "${EXE}/POWERPNT.EXE" $F

Revision history for this message
Seth Hikari (sethhikari) wrote :

The scripts don't seem to be part of PlayOnLinux's development and they don't like to accept script errors as bugs because they are made and updated separate

Revision history for this message
Pierre Frenkiel (pierre-frenkiel) wrote : Re: [Bug 490287] Re: programs in "Microsoft Office 2007" don't start

   It's a shame to receive that kind of answer, 5 months after the bug
   report!

On Sun, 25 Apr 2010, Seth Hikari wrote:

>
> The scripts don't seem to be part of PlayOnLinux's development
   "don't seem" or "are not" ?
   with a line like:
      cd "$HOME/.PlayOnLinux/wineprefix/...
   it has obviously been written by the playonlinux software.
   If that is not the case, where these scripts come from ?

> and they don't like to accept script errors as bugs because they are
> made and updated separate >
   who "they" ?
   and again: if it is not playonlinux, who made them?

--
Pierre Frenkiel

Revision history for this message
Aymeric (mulx) wrote :

Hi,

This is a know bug found in older release of PlayOnLinux <3.8.1.

We had started to fix this bug with POL 3.7.3, and this is fully fixed on PlayOnLinux git and so will be fixed with the next release (3.8.2).

I recommend you to always use the last version of PlayOnLinux.

And sorry for long time before answering.

Aymeric.

Changed in playonlinux:
status: New → Fix Committed
Revision history for this message
Aymeric (mulx) wrote :

Closing this bug report.
No activity, old bug, affect an old version of PlayOnLinux...

Changed in playonlinux:
status: Fix Committed → Fix Released
Changed in playonlinux (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.