Wine - Path from MS based application to Linux application.

Questions about Wine on Linux
Post Reply
vine
Level 2
Level 2
Posts: 12
Joined: Wed Jun 07, 2017 7:36 pm

Wine - Path from MS based application to Linux application.

Post by vine » Sat Nov 10, 2018 4:11 pm

Hello:

As a relatively new (ie: full time) Linux user I have noticed that installing Wine in Linux is very straightforward.
It actually enabled me to install an MS based application that was a deal breaker keeping me from moving to Linux on a permanent basis: Pegasus Mail. =-)

Everything has worked quite well up to now, after I started using an older version of Mozilla Firefox but not installed through the official Devuan package.

In Pegasus Mail, I could point and click on a html link and the Firefox would load or, if already open, fetch that page.

But there's a provision for this in Pegasus Mail so that if it cannot 'find' the browser, you can put in a path to it in the configuration options for the application.

The problem is that I have been unable to figure out the correct path.

I'd appreciate it if someone could give me a hand with this.

Thanks in advance.

V.

User avatar
DarkShadow44
Level 7
Level 7
Posts: 943
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine - Path from MS based application to Linux applicat

Post by DarkShadow44 » Mon Nov 12, 2018 1:51 pm

You should be able to use "Z:\bin\firefox" as path, assuming firefox is installed as /bin/firefox.

is that what you mean?

vine
Level 2
Level 2
Posts: 12
Joined: Wed Jun 07, 2017 7:36 pm

Re: Wine - Path from MS based application to Linux applicat

Post by vine » Mon Nov 12, 2018 2:20 pm

Hello:
DarkShadow44 wrote:You should be able to use "Z:\bin\firefox" as path, assuming firefox is installed as /bin/firefox ...
The Firefox executable is in located in /usr/local/firefox/firefox so /bin/firefox is a broken link to an inexistent executable from a previous installation.

It starts perfectly well from the panel icon in Devuan/Xfce with the /usr/local/firefox/firefox path so it is the correct destination but using the line command Z:\usr\local\firefox\firefox does not work.
DarkShadow44 wrote:... is that what you mean?
Yes.

Thanks for your input.
Cheers,

V.

User avatar
DarkShadow44
Level 7
Level 7
Posts: 943
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine - Path from MS based application to Linux applicat

Post by DarkShadow44 » Mon Nov 12, 2018 2:32 pm

[quote="vine"]It starts perfectly well from the panel icon in Devuan/Xfce with the /usr/local/firefox/firefox path so it is the correct destination but using the line command Z:\usr\local\firefox\firefox does not work./quote]

Just to make clear, this only works inside wine. You can also try "start Z:\usr\local\firefox\firefox".

vine
Level 2
Level 2
Posts: 12
Joined: Wed Jun 07, 2017 7:36 pm

Re: Wine - Path from MS based application to Linux applicat

Post by vine » Mon Nov 12, 2018 2:53 pm

Hello:
DarkShadow44 wrote: Just to make clear ...
Of course.
It's an MS based application (Pegasus Mail 4.7) running under Wine.
DarkShadow44 wrote:You can also try "start Z:\usr\local\firefox\firefox".
No. Won't do either.

The path is the correct one.
ie: from Pegasus Mail I can go to Z:\usr\local\firefox\firefox.

Thanks for your input.

Cheers,

V.

User avatar
DarkShadow44
Level 7
Level 7
Posts: 943
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine - Path from MS based application to Linux applicat

Post by DarkShadow44 » Tue Nov 13, 2018 5:32 am

Going to "Tools->Options->Incoming Mail ->Hyperlinks", unchecking "Find browser automatically" and entering "Z:\usr\bin\firefox" works for me.

vine
Level 2
Level 2
Posts: 12
Joined: Wed Jun 07, 2017 7:36 pm

Re: Wine - Path from MS based application to Linux applicat

Post by vine » Tue Nov 13, 2018 6:12 am

Hello:
DarkShadow44 wrote:Going to "Tools->Options->Incoming Mail ->Hyperlinks", unchecking "Find browser automatically" and entering "Z:\usr\bin\firefox" works for me.
Indeed ...
That's how it used to work till I installed Firefox manually.
But not now.

In my case, when I click on a hyperlink in an email, the terminal opens and I can actually browse the web in a comamnd line environment (had never done that before).
Using the Use URLPROXY.EXE option does not work either.

And I don't think it is a permissions issue as I cann start it from the desktop.

Thank you for your input.

Best.,

V.

User avatar
DarkShadow44
Level 7
Level 7
Posts: 943
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine - Path from MS based application to Linux applicat

Post by DarkShadow44 » Tue Nov 13, 2018 6:31 am

Seems more like a packaging issue than a wine issue to me then.
Does it still work with the official firefox? Maybe the manually installed firefox has a different start script. What's the contents of "/usr/local/firefox/firefox"?

vine
Level 2
Level 2
Posts: 12
Joined: Wed Jun 07, 2017 7:36 pm

Re: Wine - Path from MS based application to Linux applicat

Post by vine » Tue Nov 13, 2018 9:11 am

Hello:
DarkShadow44 wrote: ... packaging issue than a wine issue ...
Indeed ...
But I never really thought it was a Wine issue.

I just want to know how (and may be useful for future reference, other applications running under Wine) to tell an MS based application to start a Linux based application.
In this specific case, how to tell Pegasus Mail, with the proper path, to find and execute Firefox.

It's either a syntax issue or a premissions issue, I have the idea that it is the first and not the latter.
But that's why I asked. =-)
DarkShadow44 wrote: Does it still work with the official firefox?
It did.
But the latest Firefox is a POS, with all the dumb changes they have made wrt how the tabs and drop down menus behave.
So I looked for the last version that did not have those issues, downloaded from Mozilla and installed it manually.
DarkShadow44 wrote: ... manually installed firefox has a different start script.
No idea.
DarkShadow44 wrote:What's the contents of "/usr/local/firefox/firefox"?
All this:

Code: Select all

groucho@devuan:~$ dir /usr/local/firefox/
Throbber-small.gif
dependentlibs.list
icons
libmozgtk.so
libnssdbm3.so
libssl3.so
precomplete
application.ini
firefox
icudt58l.dat
libmozsandbox.so
libnssutil3.so
libxul.so
removed-files
browser
libfreeblpriv3.chk
libmozsqlite3.so
libplc4.so
minidump-analyzer
run-mozilla.sh
chrome.manifest
firefox-bin
libfreeblpriv3.so
libnspr4.so
libplds4.so
omni.ja
update-settings.ini
crashreporter
fonts
liblgpllibs.so
libnss3.so
libsmime3.so
pingsender
updater
crashreporter.ini
gmp-clearkey
libmozavcodec.so
libnssckbi.so
libsoftokn3.chk
platform.ini
updater.ini
defaults
gtk2
libmozavutil.so
libnssdbm3.chk
libsoftokn3.so
plugin-container
groucho@devuan:~$ 
Thanks for your input.

Cheers.,

V.

User avatar
DarkShadow44
Level 7
Level 7
Posts: 943
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine - Path from MS based application to Linux applicat

Post by DarkShadow44 » Tue Nov 13, 2018 10:53 am

Not the folder, I meant into the firefox script itself.

vine
Level 2
Level 2
Posts: 12
Joined: Wed Jun 07, 2017 7:36 pm

Re: Wine - Path from MS based application to Linux applicat

Post by vine » Tue Nov 13, 2018 6:07 pm

Hello:
DarkShadow44 wrote:Not the folder, I meant into the firefox script itself.
I was wondering about that.

/usr/local/firefox//firefox is an executable, not a script.

Am I missing something?

Thanks for your input.

Cheers,

V,

User avatar
DarkShadow44
Level 7
Level 7
Posts: 943
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine - Path from MS based application to Linux applicat

Post by DarkShadow44 » Wed Nov 14, 2018 9:04 am

Well, on my system firefox is a helper script that starts up firefox - maybe your manually installed version is different. Don't quite know how to debug that over a distance, would need to be able to reproduce it to help. How'd you install the firefox manually?

vine
Level 2
Level 2
Posts: 12
Joined: Wed Jun 07, 2017 7:36 pm

Re: Wine - Path from MS based application to Linux applicat

Post by vine » Wed Nov 14, 2018 3:30 pm

Hello:
DarkShadow44 wrote: ... on my system firefox is a helper script that starts up firefox ...
OK.
And that script would be called firefox.sh and be located elsewhere?
ie: not in /usr/bin.
DarkShadow44 wrote: ... maybe your manually installed version is different.
It's different in that it is not the latest verion, for the motives stated previously. (it's 55.0.3 64bit)
DarkShadow44 wrote:... would need to be able to reproduce it to help. How'd you install the firefox manually?
IIRC, after running a few versions of Firefox , the type that can be run independently from the desktop with no installation and finding the last version that was not screwed up by Mozilla, I downloaded the file from the ftp site at https://ftp.mozilla.org/pub/firefox/rel ... _64/en-US/.

This unpacked a into a folder called Firefox which I placed in /usr/local.
I then made a link to the executable. This was according to instructions I found on a Mozilla web page. (cannot find the link)

Now, this folder does have a script but it is called run-mozilla.sh.
Would that be the helper script you are referring to?

Thank you very much for taking the time to write about this.

Cheers,

V.

User avatar
DarkShadow44
Level 7
Level 7
Posts: 943
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine - Path from MS based application to Linux applicat

Post by DarkShadow44 » Wed Nov 14, 2018 4:10 pm

The problem is indeed, that that version of firefox can only be started when the working directory is right.
Make a linux script somewhere, with the following content:

Code: Select all

#!/bin/bash
cd /usr/local/firefox && ./firefox $1
Make sure to mark the script as executable! Then place the script somewhere, and in the mail program enter (for example) Z:\home\fabian\myFirefoxStartScript.sh" (your path, ofc).
This makes it work.

vine
Level 2
Level 2
Posts: 12
Joined: Wed Jun 07, 2017 7:36 pm

Re: Wine - Path from MS based application to Linux applicat

Post by vine » Wed Nov 14, 2018 4:48 pm

Hello:
DarkShadow44 wrote:The problem is indeed, that that version of firefox can only be started when the working directory is right.
I see ...
I searched all over but that did not come up anywhere.
DarkShadow44 wrote: Make a linux script somewhere ...
... mark the script as executable!
... place the script somewhere, and in the mail program enter (for example) Z:\home ...
Done.
DarkShadow44 wrote:... makes it work.
Yes !!! It works perfectly well. =-)

Thank you so much for the time you've devoted to helping me with this, really appreciate it.
More so if you take into account that it was not a Wine issue but a Firefox thing which should be documented somewhere.
Hopefully this thread will be of help to others.

Cheers,

V.

User avatar
DarkShadow44
Level 7
Level 7
Posts: 943
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine - Path from MS based application to Linux applicat

Post by DarkShadow44 » Thu Nov 15, 2018 6:47 am

I always start wine programs from the terminal, the error message from firefox was printed into the console. But yes, it's very easy to miss, I did so too for quite a while. Glad to help! :)

Post Reply