rejetto forum

The way to run GNU/Linux pkgs with HFS (Wine) with {.exec.}

0 Members and 1 Guest are viewing this topic.

Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 203
  • Computer-brain boy
    • View Profile
I think there will always be someone interested in this, so I post this here. :D

I've found the answer here.
When HFS is running with Wine for Linux, it's exactly someway to execute outside GNU/Linux packages:
Code: [Select]
{.exec|cmd /c start /unix /usr/bin/gedit|out=x.}
{.^x.}
This will run gedit.

More usefully:
Code: [Select]
{.exec|cmd /c start /unix /usr/bin/libreoffice --convert-to html --outdir "/home/user/converted_document" "/home/user/document/file.docx"|out=x.}
{.^x.}
This will convert "file.docx" to "file.html" with LibreOffice, so the file can be previewed within a browser.

But seems in this way we cannot execute bash based things (like /bin/sh), with a debug message:
Code: [Select]
0045:fixme:exec:SHELL_execute flags ignored: 0x00000100We may report this to Wine developers? :)
"Computation is not forbidden magic."
Takeback Template | PHFS


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 859
  • Status: On hiatus       (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
When HFS is running with Wine for Linux, it's exactly someway to execute outside GNU/Linux packages:
:) That's very nice, if only we could have a way to 'detect' if HFS is running over Wine/Linux or in pure Windows. Does someone knows if some macro could detect this?...

But seems in this way we cannot execute bash based things (like /bin/sh), with a debug message:
Code: [Select]
0045:fixme:exec:SHELL_execute flags ignored: 0x00000100We may report this to Wine developers? :)
I'm not a Linux expert, but feel free to report it (if you can give them enough details, and only if you are sure that's a Wine issue).

Cheers,
Leo.-
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 203
  • Computer-brain boy
    • View Profile
:) That's very nice, if only we could have a way to 'detect' if HFS is running over Wine/Linux or in pure Windows. Does someone knows if some macro could detect this?...

Detecting Wine itself by exe is not suggested by Wine developers: "That's a bad idea". So we need to define such a environment for HFS (and other exe) manually, like by giving user a adjustable option.
"Computation is not forbidden magic."
Takeback Template | PHFS