Public bug reported:

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

** Affects: playonlinux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386

-- 
programs in "Microsoft Office 2007" don't start
https://bugs.launchpad.net/bugs/490287
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to