Whatsapp

Questions about Wine on Linux
Locked
Hairyloon
Level 2
Level 2
Posts: 11
Joined: Thu Nov 20, 2008 9:57 am

Whatsapp

Post by Hairyloon »

Is there any prospect of getting the new Whatsapp Desktop edition to work under wine? It wants Windows 8.
I know there is Whatsapp Web, which works, but I'm hoping the desktop edition works better.

I tried it, got an error, installed p11-kit-modules:i386 on advice from google.
Tried again, got this:
~$ wine ~/WhatsAppSetup.exe'
0009:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevationType, ...) semi-stub
0009:fixme:ieframe:DllGetClassObject {9ba05972-f6a8-11cf-a442-00a0c90a8f39} {00000001-0000-0000-c000-000000000046} 0x32dc28
0009:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111
002a:fixme:ole:TMStubImpl_Invoke not implemented on non-i386
0031:err:rpc:I_RpcReceive we got fault packet with status 0x80004005
0009:err:ole:xCall RpcChannelBuffer SendReceive failed, 80004005
0009:fixme:ver:GetCurrentPackageId (0x32fe24 (nil)): stub
qwertymnb
Level 4
Level 4
Posts: 237
Joined: Sun Jan 17, 2016 4:36 pm

Re: Whatsapp

Post by qwertymnb »

Hi, I think it should more or less run. For current main issue see https://bugs.winehq.org/show_bug.cgi?id=40613

I think the following should work:

1. winetricks dotnet462

2. You have to use wine-staging to install whatsapp (wine doesn`t work). Cd into the directory where the installer resides and do:

/opt/wine-staging/bin/wine runas /trustlevel:0x20000 name_of_installer.exe

3. Run Whatsapp using newest wine (do not use staging-2.21 to run it; it has a bug that prevents .Net apps from being run)

That should get you going I think. I don`t know if there are more bugs to fix, you `ll probably find out soon ;)
qwertymnb
Level 4
Level 4
Posts: 237
Joined: Sun Jan 17, 2016 4:36 pm

Re: Whatsapp

Post by qwertymnb »

Update: Looks like this new installer reveals yet another bug... I think I`ll open a bugreport. So no luck for now
qwertymnb
Level 4
Level 4
Posts: 237
Joined: Sun Jan 17, 2016 4:36 pm

Re: Whatsapp

Post by qwertymnb »

Update 2: I forgot there `s another way to try:

7z x WhatsAppSetup.exe

7z x WhatsApp-0.2.8082-full.nupkg

cd lib/net45/

wine WhatsApp.exe

The application starts, and wants me to scan the QR-code but my phone is too old so couldn` t test further....
Hairyloon
Level 2
Level 2
Posts: 11
Joined: Thu Nov 20, 2008 9:57 am

Re: Whatsapp

Post by Hairyloon »

Nearly works...
~/lib/net45 $ wine WhatsApp.exe
0029:fixme:seh:RtlCaptureStackBackTrace (0, 62, 0x62db8, (nil)) stub!
0029:fixme:seh:RtlCaptureStackBackTrace (0, 62, 0x22f3e8, (nil)) stub!
0029:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub

0029:fixme:ntdll:EtwEventRegister ({d2d578d9-2936-45b6-a09f-30e32715f42d}, 0x1404466f0, 0x14489a8e0, 0x144962f88) stub.
0029:fixme:dwrite:get_name_record_codepage encoding 20 not handled, platform 1.
0029:fixme:dwrite:get_name_record_codepage encoding 20 not handled, platform 1.
0029:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455...
And it goes on, but I didn't want to post pages & pages.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Whatsapp

Post by Bob Wya »

Hairyloon wrote:Nearly works...
~/lib/net45 $ wine WhatsApp.exe
0029:fixme:seh:RtlCaptureStackBackTrace (0, 62, 0x62db8, (nil)) stub!
0029:fixme:seh:RtlCaptureStackBackTrace (0, 62, 0x22f3e8, (nil)) stub!
0029:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub

0029:fixme:ntdll:EtwEventRegister ({d2d578d9-2936-45b6-a09f-30e32715f42d}, 0x1404466f0, 0x14489a8e0, 0x144962f88) stub.
0029:fixme:dwrite:get_name_record_codepage encoding 20 not handled, platform 1.
0029:fixme:dwrite:get_name_record_codepage encoding 20 not handled, platform 1.
0029:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455...
And it goes on, but I didn't want to post pages & pages.
@Hairyloon

Yup in my testing the application cannot currently be installed at all - even with the Wine Staging workaround.
You've got to be aware that applications like this will receive quite frequent updates - that often break Wine compatibility.
Especially applications based on the newer framework versions (in this case .Net 4.5.x) - which Wine does not support well...

Please in future use the forum Code:

Code: Select all

Code
tags for terminal output and commands.

The forum Quote:
Quote
tags are intended for use when quoting blocks of other users posts, in your own...

Ta
Bob
Hairyloon
Level 2
Level 2
Posts: 11
Joined: Thu Nov 20, 2008 9:57 am

Re: Whatsapp

Post by Hairyloon »

Bob Wya wrote:Yup in my testing the application cannot currently be installed at all - even with the Wine Staging workaround.
Installed more or less OK, just didn't quite work. I may write to Whatsapp...
Please in future use the forum Code:

Code: Select all

Code
tags for terminal output and commands.

The forum Quote:
Quote
tags are intended for use when quoting blocks of other users posts, in your own...
Sorry Bob.

I forgot to report what the programme is actually doing: it connects, but appears to be missing a few bits and does not allow to select the text box to write a message... So I could use it to read messages, but not to write any.
jethreezy
Newbie
Newbie
Posts: 1
Joined: Sun Jun 17, 2018 2:37 pm

Re: Whatsapp

Post by jethreezy »

Sorry to bump an old thread, but any luck with getting WhatsApp to work on wine OP?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Whatsapp

Post by Bob Wya »

jethreezy wrote:Sorry to bump an old thread, but any luck with getting WhatsApp to work on wine OP?
The problem is actually that you're not bumping an old thread! It's only 5 months old...
So to be realistic, you can't expect dramatic improvements in this area over a short timescale.

Wine may have frequent releases (every ~2 weeks).
But looking at the commit log will quickly show you that is a lot of: use available "ARRAY_SIZE" macro and update wine test -type 'noise'...

Bob
xxxx
Newbie
Newbie
Posts: 1
Joined: Thu Mar 07, 2019 11:24 am

Re: Whatsapp

Post by xxxx »

Whatsapp runs with wine 4.0 but you must extract the Files because the installer would user rights lol.
-open the whatsapp exe with Engrampa
-there is a file named Whatsapp-x.x.xxxx-full (x are numbers) open it with Engrampa and extract the lib Directory
-run the Whatsapp.exe in the extracted /lib/net45 directory with wine (wine must be Windows7 or newer)
Locked