programs in "Microsoft Office 2007" don't start
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://
100 /var/lib/
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/
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/
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\
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="$
export WINEPREFIX=
export WINEDEBUG="-all"
EXE="$HOME/
wine "${EXE}
=======
ProblemType: Bug
Architecture: i386
Date: Mon Nov 30 11:57:56 2009
DistroRelease: Ubuntu 9.10
Package: playonlinux 3.6-1
PackageArchitec
ProcEnviron:
LC_TIME=fr_FR
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/ksh
ProcVersionSign
SourcePackage: playonlinux
Uname: Linux 2.6.31-15-generic i686
I forgot to add that the script I gave worked as a separate script .PlayOnLinux/ configurations/ installed
directly run by the user.
To make the original scripts in
$HOME/
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` /POWERPNT. EXE" $F
F=`basename $1`
cd $D
wine "${EXE}