Bug 209418 - emulators/playonbsd: created with PlayOnBSD win application shortcut doesn't work
Summary: emulators/playonbsd: created with PlayOnBSD win application shortcut doesn't ...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Stefan Eßer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-10 10:38 UTC by ILUXA
Modified: 2020-11-10 20:03 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (se)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ILUXA 2016-05-10 10:38:59 UTC
When you installed a windows application with emulators/playonbsd you'll see a dialog to create shortcut to this app, but after creation, most of times this shortcut won't work with an "error" warning.

To fix it, you need to edit your win app shortcut (*.desktop):
- Exec=/usr/local/lib/playonbsd/playonlinux --run "Hitman Blood Money" %F
+ Exec=/usr/local/lib/playonbsd/playonfreebsd --run "Hitman Blood Money" %F

Then you'll need to edit 114 line in /usr/local/lib/playonbsd/playonfreebsd:
- exec bash playonlinux-bash "$HOME/.PlayOnLinux/shortcuts/$NAME" "$@"
+ exec bash playonlinux-bash "$HOME/.PlayOnBSD/shortcuts/$NAME" "$@"

Then make playonfreebsd executable
sudo chmod +x /usr/local/lib/playonbsd/playonfreebsd

After *.desktop shortcut will work fine.
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-05-10 17:05:38 UTC
A commit references this bug:

Author: se
Date: Tue May 10 17:05:34 UTC 2016
New revision: 414947
URL: https://svnweb.freebsd.org/changeset/ports/414947

Log:
  Fix problem with desktop shortcuts reported by iluxa (at) ex.ua.
  Upgrade to latest stable version 4.2.10 on that occasion.

  PR:		209418
  Reported by:	iluxa (at) ex.ua
  Approved by:	antoine (mentor, implicit)

Changes:
  head/emulators/playonbsd/Makefile
  head/emulators/playonbsd/distinfo
  head/emulators/playonbsd/files/patch-lib_scripts.lib
  head/emulators/playonbsd/files/patch-lib_setupwindow.lib
  head/emulators/playonbsd/files/patch-lib_variables
  head/emulators/playonbsd/files/patch-lib_wine.lib
  head/emulators/playonbsd/files/patch-playonfreebsd
  head/emulators/playonbsd/files/patch-python_mainwindow.py
_U  head/emulators/playonbsd/files/playonbsd.sh.in
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-05-10 17:11:40 UTC
A commit references this bug:

Author: se
Date: Tue May 10 17:11:02 UTC 2016
New revision: 414948
URL: https://svnweb.freebsd.org/changeset/ports/414948

Log:
  In order to make desktop shortcuts work, the playonfreebsd script must be
  executable.

  PR:		209418
  Submitted by:	iluxa (at) ex.ua
  Approved by:	antoine (mentor, implicit)

Changes:
  head/emulators/playonbsd/Makefile
Comment 3 Walter Schwarzenfeld freebsd_triage 2018-01-13 06:31:53 UTC
Forgotten to close?
Comment 4 Stefan Eßer freebsd_committer freebsd_triage 2018-01-13 14:52:27 UTC
No, this is still in progress. Last time I worked on this, I could not get Wine installed on -CURRENT/amd64 and therefore could not test my attempt to fix the issue. As of now, Wine is available for testing, but my development system is a machine that normally runs headless and I now need to connect a display and then perform tests and probably improve the current (partial) fix.
Maintaining and fixing flavor support in portmaster is my current priority, and I'll come back to PlayOnBSD as soon as my spare time permits it (which I hope will be this month, but no guarantees ...).
Comment 5 Rene Ladan freebsd_committer freebsd_triage 2020-11-10 20:03:56 UTC
This port has expired, and no recent activity on related PRs, so removed.