http://bugs.winehq.org/show_bug.cgi?id=23899
Summary: Soldier of Fortune II - Double Helix GOLD installer can't create shortcuts for Gnome Product: Wine Version: 1.2 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: t6tiar00@students.oamk.fi
Soldier of Fortune II - Double Helix GOLD installer can't create shortcuts for Gnome. This never happened with old SOF2 installation discs. All the shortcuts are created to /.local/, but they don't appear to Gnome's Wine applications.
Unfortunately I can't attach terminal output, because the installation programs (Setup.exe) refuses to install the game if the program is launched via Terminal.
http://bugs.winehq.org/show_bug.cgi?id=23899
--- Comment #1 from Vincent Povirk madewokherd@gmail.com 2010-08-23 17:20:12 --- Please check that the FAQ at http://wiki.winehq.org/FAQ#head-34c8b5d78823a60c9651b4c9848c06a1aa8fea48 ("I deleted my Wine menu, and now I can't get it back.") does not apply to you.
Terminal output probably isn't useful anyway, if Wine is creating .desktop files and folders. Probably gnome doesn't like something about the generated files.
http://bugs.winehq.org/show_bug.cgi?id=23899
--- Comment #2 from t6tiar00 t6tiar00@students.oamk.fi 2010-09-29 04:36:28 CDT --- (In reply to comment #1)
Please check that the FAQ at http://wiki.winehq.org/FAQ#head-34c8b5d78823a60c9651b4c9848c06a1aa8fea48 ("I deleted my Wine menu, and now I can't get it back.") does not apply to you.
Terminal output probably isn't useful anyway, if Wine is creating .desktop files and folders. Probably gnome doesn't like something about the generated files.
I checked that and it didn't apply to me. There was no entries in those files.
http://bugs.winehq.org/show_bug.cgi?id=23899
--- Comment #3 from t6 t6tiar00@students.oamk.fi 2011-07-26 09:19:19 CDT --- Just installed the game with Wine 1.2 on my desktop computer and those shortcuts were created successfully. Probably this bug was just random.
I can't confirm if this still happens with newer versions of Wine, because with Wine 1.2.2 I can't install the game at all on laptop, because disc change doesn't work with any trick I have tried.
When this bug occured, I installed the game on my laptop with Wine 1.2 while the game installed otherwise successfully.
Just a random thought: Could it be related to /.config and/or /.local -folders?
http://bugs.winehq.org/show_bug.cgi?id=23899
--- Comment #4 from tiar tiar85@luukku.com 2013-06-04 12:50:21 CDT --- On Wine 1.4.1, the installer fails every time CD1 must be re-inserted. No matter how to do it: straight or with "wine eject", I/O error appears.
http://bugs.winehq.org/show_bug.cgi?id=23899
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com 2013-06-04 12:57:17 CDT --- Please update to wine 1.5.31 and try again.
http://bugs.winehq.org/show_bug.cgi?id=23899
--- Comment #6 from tiar tiar85@luukku.com 2013-06-05 16:21:21 CDT --- Created attachment 44666 --> http://bugs.winehq.org/attachment.cgi?id=44666 Screenshot of the I/O error
Screenshot of the I/O error
http://bugs.winehq.org/show_bug.cgi?id=23899
--- Comment #7 from tiar tiar85@luukku.com 2013-06-05 16:23:42 CDT --- Tested with Wine 1.5.31 and I/O error occured as always.
Otherwise, the shortcuts were successfully created.
http://bugs.winehq.org/show_bug.cgi?id=23899
Jarkko K jarkko_korpi@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jarkko_korpi@hotmail.com
--- Comment #8 from Jarkko K jarkko_korpi@hotmail.com --- Is this still an issue with 1.7.16?
https://bugs.winehq.org/show_bug.cgi?id=23899
Adam Bolte abolte@systemsaviour.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |abolte@systemsaviour.com
--- Comment #9 from Adam Bolte abolte@systemsaviour.com --- I'm running 1.7.42 in a clean 32-bit prefix on Debian Wheezy amd64 with Xfce 4.8. I can confirm that the .desktop files are created correctly under "${HOME}/.local/share/applications/wine/Programs/Raven Software/Soldier of Fortune II - Double Helix GOLD".
I do not know if Gnome has an incompatibility with these files since I no longer run GNOME (I assume the report was against GNOME 2 which didn't ship with Wheezy), but they do work fine under Xfce (I just tested the "./Soldier of Fortune II - Double Helix GOLD - Help/Readme.desktop" menu shortcut).
Having said that, the I/O error message that everyone is reporting at the end of installation still occurs. The installation is fine AFAICT, but it does leave you with doubt.
https://bugs.winehq.org/show_bug.cgi?id=23899
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Abandoned?
--- Comment #10 from Ken Sharp imwellcushtymelike@gmail.com --- Please retry in Wine 3.9 or later.
https://bugs.winehq.org/show_bug.cgi?id=23899
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=23899
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |ABANDONED
--- Comment #11 from Ken Sharp imwellcushtymelike@gmail.com --- No answer.
https://bugs.winehq.org/show_bug.cgi?id=23899
--- Comment #12 from Adam Bolte abolte@systemsaviour.com --- I just performed a re-installation of this game to test. I don't run GNOME, but I can confirm shortcuts were created like this:
$ cat SOF\ II\ GOLD\ Single\ Player.desktop [Desktop Entry] Name=SOF II GOLD Single Player Exec=env WINEPREFIX="/mnt/gaming/wineprefixes/retail_box/soldier_of_fortune-2-gold_edition" wine C:\\PROG\~5P2\\SOLD\~EXR\\Sof2.exe +set\ com_multilingual\ 2\ +set\ sp_language\ 0 Type=Application StartupNotify=true Path=/mnt/gaming/wineprefixes/retail_box/soldier_of_fortune-2-gold_edition/dosdevices/c:/Program Files (x86)/Soldier of Fortune II - Double Helix GOLD Icon=952E_Sof2.0 StartupWMClass=sof2.exe $
Unfortunately the game will not run on modern computers without MESA_EXTENSION_MAX_YEAR=2003 so I had to manually add that into the Exec= line for the shortcut to function. I don't know if maybe Wine wants to maintain a list of compatibility rules for various troublesome applications (similar to Mesa's drirc file)? Otherwise I guess it's always going to be a problem for this shortcut on modern machines.
I still don't run GNOME, but I assume this shortcut would then work in that environment.
As for the I/O error that was lumped into this bug report, that is still a problem - but I found a work-around! If you use `wine eject <drive>`, the error at the end of installation will always occur. If you don't use that command, the operating system won't let you eject (at least not when I tried using the Caja file manager) because wineserver is using it. Since I only have one optical drive installed into my computer, I ripped both CDs to ISO images and used CDEmu to mount both at the same time, which were then automatically mounted as /media/sofii_1 and /media/sofii_2. Next, I used winecfg to make /media/sofii_1/ mapped to D:, clicked OK and then ran the following:
wine cmd.exe D: autorun # the installer starts detached exit
If I don't switch to d: as the current working directory, this will also cause the installer will fail early on in the installation process.
Now I follow the installation wizard as usual up until I get to the point where it asks for the second CD. At this point I open winecfg once more and change the mapping of D: to /media/sofii_2/ and click Apply. Then I click OK in the installer window and it continues along just fine. Near the end of the installation, the wizard will ask for disc 1 again, so I go back to winecfg and re-map D: to /media/sofii_1/. In doing this, the installation will complete without error.
There must be something "wine eject D:" does that the installer simply doesn't like - but I don't think that's related to GNOME shortcuts. Also, in my testing, having the installer crash at the end (by using `wine eject D:`) will still cause shortcuts to be created - just not Desktop shortcuts.
Testing was performed on vanilla Wine 4.18.
https://bugs.winehq.org/show_bug.cgi?id=23899
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be
--- Comment #13 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- (In reply to Adam Bolte from comment #12)
Unfortunately the game will not run on modern computers without MESA_EXTENSION_MAX_YEAR=2003 so I had to manually add that into the Exec= line for the shortcut to function. I don't know if maybe Wine wants to maintain a list of compatibility rules for various troublesome applications (similar to Mesa's drirc file)? Otherwise I guess it's always going to be a problem for this shortcut on modern machines.
Hello,
You can achieve that with a wrapper script called 'wine' that you put in the PATH somewhere before the 'real' wine command (don't forget to locate the 'real' wine command in the script to avoid recursion).
IMO, maintaining compatibility fix for specific applications is outside the scope of Wine. An external tool is better suited for that.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=23899
--- Comment #14 from Adam Bolte abolte@systemsaviour.com --- (In reply to Olivier F. R. Dierick from comment #13)
You can achieve that with a wrapper script called 'wine' that you put in the PATH somewhere before the 'real' wine command (don't forget to locate the 'real' wine command in the script to avoid recursion).
That's true, although I don't know of any such external project (and the Wine project might take offence to a 3rd part distributing a script also called "wine" out of necessity...).
In any case, I have never relied on Wine shortcuts since bug 22974 has always caused that to make a mess of everything. I regularly upgrade to the latest Wine, and I always run winecfg first to manually clear out all the folder shortcuts it creates since they are always reverted on upgrades (or downgrades even).
https://bugs.winehq.org/show_bug.cgi?id=23899
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Austin English austinenglish@gmail.com --- Closing.