You are not logged in.

#1 2021-08-07 13:37:39

ConnahGriffin
Member
Registered: 2021-02-27
Posts: 13

[Solved] Can't run desktop entry that should launch through wine

In case it's useful, I'll describe what happened before that may be relevant. I downgraded wine from 6.1 to 5.8(both in staging) so as to run a program called Hearthstone Deck tracker. Which requires .Net 4.7.2 and doesn't work with mono properly due to some library issues. I'm only posting because I think the error is with desktop entry and not wine itself.When wine created the shortcut by itself it returned the same error(refer to last code block) so I changed a part or two in in.

As for the desktop entry, here's the entry

[Desktop Entry] 
Name=Battle.net 
Exec="WINEPREFIX=/home/user/.wine.hearthstone wine /home/user/.wine.hearthstone/drive_c/Program\ Files/Battle.net/Battle.net.exe" 
Type=Application 
StartupNotify=true 
Path=/home/user/.wine.hearthstone/drive_c/Program\ Files/Battle.net 
Icon=65EF_Battle.net 
StartupWMClass=battle.net launcher.exe

After executing(from a file manager) the entry I get this error:

Failed to execute child process "WINEPREFIX=/home/user/.wine.hearthstone wine /home/user/.wine.hearthstone/drive_c/Program\ Files/Battle.net/Battle.net.exe" (No such file or directory).

I've check the files location and the files are indeed there. I've also executed the line after Exec by itself in the terminal, works as intended.

I currently use xfce4 as a DM. Thanks for any help with my current problems.

Last edited by ConnahGriffin (2021-08-07 22:08:08)

Offline

#2 2021-08-07 13:41:23

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] Can't run desktop entry that should launch through wine

Is your username actually user? If not then of course it's not going to work.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-08-07 13:51:30

ConnahGriffin
Member
Registered: 2021-02-27
Posts: 13

Re: [Solved] Can't run desktop entry that should launch through wine

Slithery wrote:

Is your username actually user? If not then of course it's not going to work.

No, I changed it to hide my username. But thanks for the advice

Last edited by ConnahGriffin (2021-08-07 13:51:49)

Offline

#4 2021-08-07 14:22:41

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: [Solved] Can't run desktop entry that should launch through wine

Try 'env WINEPREFIX' and set absolute path to wine binary.


sys2064

Offline

#5 2021-08-07 14:52:15

ConnahGriffin
Member
Registered: 2021-02-27
Posts: 13

Re: [Solved] Can't run desktop entry that should launch through wine

Maniaxx wrote:

Try 'env WINEPREFIX' and set absolute path to wine binary.

I just tried it. It returned the same error.

I changed it to

Exec="env WINEPREFIX=/home/user/.wine.hearthstone /usr/bin/wine /home/user/.wine.hearthstone/drive_c/Program\ Files/Battle.net/Battle.net.exe"

Last edited by ConnahGriffin (2021-08-07 14:58:16)

Offline

#6 2021-08-07 15:05:53

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] Can't run desktop entry that should launch through wine

Try...

Exec="env WINEPREFIX=/home/user/.wine.hearthstone /usr/bin/wine /home/user/.wine.hearthstone/drive_c/Program Files/Battle.net/Battle.net.exe"

The space in Program Files doesn't need to be escaped as it is already in quotes.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2021-08-07 15:22:19

ConnahGriffin
Member
Registered: 2021-02-27
Posts: 13

Re: [Solved] Can't run desktop entry that should launch through wine

Slithery wrote:

Try...

Exec="env WINEPREFIX=/home/user/.wine.hearthstone /usr/bin/wine /home/user/.wine.hearthstone/drive_c/Program Files/Battle.net/Battle.net.exe"

The space in Program Files doesn't need to be escaped as it is already in quotes.

Unfortunately, still nothing.

Offline

#8 2021-08-07 15:39:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,366

Re: [Solved] Can't run desktop entry that should launch through wine

Exec=env WINEPREFIX="/home/user/.wine.hearthstone" /usr/bin/wine "/home/user/.wine.hearthstone/drive_c/Program Files/Battle.net/Battle.net.exe"

Offline

#9 2021-08-07 16:29:08

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: [Solved] Can't run desktop entry that should launch through wine

Try this:

[Desktop Entry]
Name=Battle.net
Exec=env WINEPREFIX=/home/user/.wine.hearthstone /usr/bin/wine start /unix '/home/user/.wine.hearthstone/drive_c/Program Files/Battle.net/Battle.net.exe'
Type=Application
StartupNotify=true
Path='/home/user/.wine.hearthstone/drive_c/Program Files/Battle.net'
Icon=65EF_Battle.net
StartupWMClass=battle.net launcher.exe

https://wiki.winehq.org/Wine_User%27s_G … wine_start
You need to use wine start if you specify a full path to the .exe, because that allows Wine to set the working directory for the program if it needs it.

'start /unix' might not be needed (can't tell from here) but shouldn't harm. The real culprit should be the quoting stuff.
'Path' probably can be left empty ('Path=') when using 'start /unix'.

Last edited by Maniaxx (2021-08-07 16:53:51)


sys2064

Offline

#10 2021-08-07 17:41:07

ConnahGriffin
Member
Registered: 2021-02-27
Posts: 13

Re: [Solved] Can't run desktop entry that should launch through wine

Sorry for the delayed reply, my internet was down for a while

Maniaxx wrote:

Try this:

[Desktop Entry]
Name=Battle.net
Exec=env WINEPREFIX=/home/user/.wine.hearthstone /usr/bin/wine start /unix '/home/user/.wine.hearthstone/drive_c/Program Files/Battle.net/Battle.net.exe'
Type=Application
StartupNotify=true
Path='/home/user/.wine.hearthstone/drive_c/Program Files/Battle.net'
Icon=65EF_Battle.net
StartupWMClass=battle.net launcher.exe

https://wiki.winehq.org/Wine_User%27s_G … wine_start
You need to use wine start if you specify a full path to the .exe, because that allows Wine to set the working directory for the program if it needs it.

'start /unix' might not be needed (can't tell from here) but shouldn't harm. The real culprit should be the quoting stuff.
'Path' probably can be left empty ('Path=') when using 'start /unix'.


I tried as the one displayed first. It returned that there's an error executing the Exec part and that the Path can't be found. I then excluded the "Path" and it returned no error whatsoever but it doesn't open either. I then checked if a wine process is running or not under the name of "Battle.net" and "wine" and found nothing there too

Offline

#11 2021-08-07 17:43:32

ConnahGriffin
Member
Registered: 2021-02-27
Posts: 13

Re: [Solved] Can't run desktop entry that should launch through wine

seth wrote:
Exec=env WINEPREFIX="/home/user/.wine.hearthstone" /usr/bin/wine "/home/user/.wine.hearthstone/drive_c/Program Files/Battle.net/Battle.net.exe"

Returned the same error as before

Offline

#12 2021-08-07 18:51:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,366

Re: [Solved] Can't run desktop entry that should launch through wine

In an interactive shell, run and post the outputs of

stat /usr/bin/wine
stat "/home/user/.wine.hearthstone/drive_c/Program Files/Battle.net/Battle.net.exe"

And ultimately

env WINEPREFIX="/home/user/.wine.hearthstone" /usr/bin/wine "/home/user/.wine.hearthstone/drive_c/Program Files/Battle.net/Battle.net.exe"

Obviously replace the obfuscated "user" token, nb. that stat will print the actual path (though there's no actual benefit in this obfuscation - unless it's an embarrassing term ;-) )

Offline

#13 2021-08-07 21:05:10

ConnahGriffin
Member
Registered: 2021-02-27
Posts: 13

Re: [Solved] Can't run desktop entry that should launch through wine

seth wrote:
stat /usr/bin/wine

Output:

  File: /usr/bin/wine
  Size: 13760     	Blocks: 32         IO Block: 4096   regular file
Device: 802h/2050d	Inode: 3702693     Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2021-08-07 10:41:38.686113954 +0530
Modify: 2020-05-10 15:15:45.000000000 +0530
Change: 2021-08-06 00:51:21.146193112 +0530
 Birth: 2021-08-06 00:51:21.145193112 +0530
seth wrote:
stat "/home/user/.wine.hearthstone/drive_c/Program Files/Battle.net/Battle.net.exe"

Output:

  File: /home/code/.wine.hearthstone/drive_c/Program Files/Battle.net/Battle.net.exe
  Size: 1079184   	Blocks: 2120       IO Block: 4096   regular file
Device: 803h/2051d	Inode: 49678599    Links: 1
Access: (0770/-rwxrwx---)  Uid: ( 1000/user)   Gid: ( 1000/user)
Access: 2021-08-07 20:18:17.082072762 +0530
Modify: 2021-08-06 08:20:19.260501794 +0530
Change: 2021-08-06 08:25:55.557497143 +0530
 Birth: 2021-08-06 08:20:19.235501794 +0530
seth wrote:
env WINEPREFIX="/home/user/.wine.hearthstone" /usr/bin/wine "/home/user/.wine.hearthstone/drive_c/Program Files/Battle.net/Battle.net.exe"

Output:

002c:fixme:winediag:start_process Wine Staging 5.8 is a testing version containing experimental patches.
002c:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031EBDC 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E9EC 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031ED34 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031EC8C 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E63C 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031ECA0 63 C) semi-stub
0024:fixme:msvcp:locale__Locimp__Makexloc (0031ECA0 63 0087B750 00000000) semi-stub
0024:fixme:msvcp:locale__Locimp__Makewloc (0031ECA0 63 0087B750 00000000) semi-stub
0024:fixme:msvcp:locale__Locimp__Makeushloc (0031ECA0 63 0087B750 00000000) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031EC60 63 C) semi-stub
0024:fixme:msvcp:locale__Locimp__Makexloc (0031EC60 63 0087B750 00000000) semi-stub
0024:fixme:msvcp:locale__Locimp__Makewloc (0031EC60 63 0087B750 00000000) semi-stub
0024:fixme:msvcp:locale__Locimp__Makeushloc (0031EC60 63 0087B750 00000000) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031EC60 63 C) semi-stub
0024:fixme:msvcp:locale__Locimp__Makexloc (0031EC60 63 0087B750 00000000) semi-stub
0024:fixme:msvcp:locale__Locimp__Makewloc (0031EC60 63 0087B750 00000000) semi-stub
0024:fixme:msvcp:locale__Locimp__Makeushloc (0031EC60 63 0087B750 00000000) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031EC60 63 C) semi-stub
0024:fixme:msvcp:locale__Locimp__Makexloc (0031EC60 63 0087B750 00000000) semi-stub
0024:fixme:msvcp:locale__Locimp__Makewloc (0031EC60 63 0087B750 00000000) semi-stub
0024:fixme:msvcp:locale__Locimp__Makeushloc (0031EC60 63 0087B750 00000000) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031EC60 63 C) semi-stub
0024:fixme:msvcp:locale__Locimp__Makexloc (0031EC60 63 0087B750 00000000) semi-stub
0024:fixme:msvcp:locale__Locimp__Makewloc (0031EC60 63 0087B750 00000000) semi-stub
0024:fixme:msvcp:locale__Locimp__Makeushloc (0031EC60 63 0087B750 00000000) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031ED5C 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E3AC 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E41C 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E6F0 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E724 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E5D4 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E68C 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E68C 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E6BC 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E6BC 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E6BC 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E61C 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E6DC 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E6D4 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E6DC 1 C) semi-stub
0024:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E6FC 1 C) semi-stub
0024:fixme:advapi:OpenEventLogW ((null),L"System") stub
0024:fixme:advapi:ReadEventLogA (0xcafe4242,0x00000009,0x00000000,0x902a00,0x00010000,0x31e6d0,0x31e6d4) stub
0024:fixme:advapi:CloseEventLog (0xcafe4242) stub
0024:fixme:font:RemoveFontMemResourceEx (0x87c8d421) stub
0024:fixme:font:RemoveFontMemResourceEx (0x87cbbe09) stub
0024:fixme:font:RemoveFontMemResourceEx (0x87d536a9) stub
0024:fixme:font:RemoveFontMemResourceEx (0x87d498a9) stub
0024:fixme:font:RemoveFontMemResourceEx (0x87dd9cb9) stub
0024:fixme:font:RemoveFontMemResourceEx (0x87a54ca1) stub
0024:fixme:font:RemoveFontMemResourceEx (0x87a27e71) stub
0024:fixme:font:RemoveFontMemResourceEx (0x87ab6c51) stub
0024:fixme:font:RemoveFontMemResourceEx (0x87aaabb1) stub
0024:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
00f0:err:ole:CoCreateInstanceEx apartment not initialised
00f0:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFA, 0031FE9C
0108:fixme:wbemprox:wbem_locator_ConnectServer unsupported flags
0108:fixme:wbemprox:client_security_SetBlanket 7BB91C84, 00F1FE38, 10, 0, (null), 3, 3, 00000000, 0x00000000
0108:fixme:wbemprox:client_security_Release 7BB91C84
0108:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0108:fixme:wbemprox:enum_class_object_Next timeout not supported
0118:fixme:kernelbase:AppPolicyGetThreadInitializationType FFFFFFFA, 029BFF14
0108:fixme:ole:CoInitializeSecurity (00000000,-1,00000000,00000000,0,3,00000000,0,00000000) - stub!
0108:fixme:wbemprox:client_security_SetBlanket 7BB91C84, 00F92330, 10, 0, (null), 3, 3, 00000000, 0x00000000
0108:fixme:wbemprox:client_security_Release 7BB91C84
0024:fixme:wbemprox:wbem_locator_ConnectServer unsupported flags
0024:fixme:wbemprox:client_security_SetBlanket 78C2EC84, 00FD5FA0, 10, 0, (null), 3, 3, 00000000, 0x00000000
0024:fixme:wbemprox:client_security_Release 78C2EC84
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0024:fixme:wbemprox:enum_class_object_Next timeout not supported
0024:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0024:fixme:ntdll:EtwEventRegister ({d2d578d9-2936-45b6-a09f-30e32715f42d}, 0x429c1e0, 0x85ce808, 0x85ce808) stub.
0024:fixme:nls:GetThreadPreferredUILanguages 00000038, 0x31eadc, (nil) 0x31ead8
0024:fixme:nls:get_dummy_preferred_ui_language (0x38 0x31eadc (nil) 0x31ead8) returning a dummy value (current locale)
0024:fixme:nls:GetThreadPreferredUILanguages 00000038, 0x31eadc, 0x98fba68 0x31ead8
0024:fixme:nls:get_dummy_preferred_ui_language (0x38 0x31eadc 0x98fba68 0x31ead8) returning a dummy value (current locale)
0024:fixme:winsock:WSALookupServiceBeginW (0x31e87c 0x00000ff0 0x31e8b8) Stub!
[0808/022835.699:ERROR:network_change_notifier_win.cc(142)] WSALookupServiceBegin failed with: 0
0024:fixme:iphlpapi:NotifyAddrChange (Handle 0x31e9f8, overlapped 0x9930738): stub
0024:fixme:userenv:RegisterGPNotification 00000318 0
0024:fixme:userenv:RegisterGPNotification 0000031C 1
0024:fixme:shcore:IsOS (OS_DOMAINMEMBER) What should we return here?
019c:fixme:wtsapi:WTSRegisterSessionNotification Stub 00010094 0x00000001
0024:fixme:service:I_ScRegisterDeviceNotification Notification filters are not yet implemented.
0024:fixme:win:GetPointerDevices (0x31e62c (nil)): partial stub
0024:fixme:system:GetDisplayConfigBufferSizes (0x2 0x31e62c 0x31e628): stub
01c0:fixme:process:CreateProcessInternalW Unsupported attribute 0x20002.
01e8:fixme:wpc:WindowsParentalControls_GetUserSettings ((null) 0E6DFC24)
0024:fixme:shcore:SetCurrentProcessExplicitAppUserModelID L"BlizzardEntertainment.Battlenet.beta": stub
0024:fixme:shell:CustomDestinationList_SetAppID 0x113fa30 (L"BlizzardEntertainment.Battlenet.beta"): stub
0024:fixme:shell:CustomDestinationList_BeginList 0x113fa30 (0x31e4bc {92ca9dcd-5622-4bba-a805-5e9f541bd8c9} 0x31e4c0): stub
0024:fixme:msg:ChangeWindowMessageFilterEx 0x100aa c05b 1 (nil)
0184:fixme:netapi32:NetGetJoinInformation Semi-stub (null) 0xd0cfb94 0xd0cfb90
01f0:fixme:secur32:schannel_get_cipher_algid unknown algorithm 23
01f0:fixme:secur32:schannel_get_mac_algid unknown algorithm 200, cipher 23
01d4:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031EB4C 1 C) semi-stub
01d4:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E95C 1 C) semi-stub
01d4:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031ED5C 1 C) semi-stub
01d4:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
01d4:fixme:ntdll:EtwEventRegister ({d2d578d9-2936-45b6-a09f-30e32715f42d}, 0x2c0c1e0, 0x6f3e808, 0x6f3e808) stub.
01d4:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
[0808/022837.153:ERROR:dxva_video_decode_accelerator_win.cc(1397)] DXVAVDA fatal error: could not LoadLibrary: msmpeg2vdec.dll: Module not found. (0x7E)
023c:fixme:thread:QueryThreadCycleTime (00000158,08BDFE18): stub!
0024:fixme:shell:SHGetPropertyStoreForWindow (0x200cc 0x11252944 0x31adf0) stub!
0024:fixme:shell:window_prop_store_SetValue 0x1166b80, {{9f4c2855-9f79-4b39-a8d0-e1d42de1d5f3},4}, 0x31ade0
0024:fixme:shell:window_prop_store_SetValue 0x1166b80, {{9f4c2855-9f79-4b39-a8d0-e1d42de1d5f3},2}, 0x31add0
0024:fixme:shell:window_prop_store_SetValue 0x1166b80, {{9f4c2855-9f79-4b39-a8d0-e1d42de1d5f3},3}, 0x31adc0
0024:fixme:shell:window_prop_store_SetValue 0x1166b80, {{9f4c2855-9f79-4b39-a8d0-e1d42de1d5f3},5}, 0x31adb0
0024:fixme:shell:window_prop_store_Commit 0x1166b80
0024:fixme:dwmapi:DwmIsCompositionEnabled 0031B4F8
0024:fixme:shell:SHGetPropertyStoreForWindow (0x100d8 0x11252944 0x31ab40) stub!
0024:fixme:shell:window_prop_store_SetValue 0x1164e20, {{9f4c2855-9f79-4b39-a8d0-e1d42de1d5f3},4}, 0x31ab30
0024:fixme:shell:window_prop_store_SetValue 0x1164e20, {{9f4c2855-9f79-4b39-a8d0-e1d42de1d5f3},2}, 0x31ab20
0024:fixme:shell:window_prop_store_SetValue 0x1164e20, {{9f4c2855-9f79-4b39-a8d0-e1d42de1d5f3},3}, 0x31ab10
0024:fixme:shell:window_prop_store_SetValue 0x1164e20, {{9f4c2855-9f79-4b39-a8d0-e1d42de1d5f3},5}, 0x31ab00
0024:fixme:shell:window_prop_store_Commit 0x1164e20
0024:fixme:win:GetPointerDevices (0x31af1c (nil)): partial stub
0024:fixme:system:GetDisplayConfigBufferSizes (0x2 0x31af1c 0x31af18): stub
0024:fixme:win:FlashWindowEx 0x3196ec - semi-stub
01c0:fixme:sync:NtSetInformationJobObject stub: 0x4f8 4 0xe15f92c 4
01c0:fixme:process:CreateProcessInternalW Unsupported attribute 0x20002.
0268:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031EB4C 1 C) semi-stub
0268:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E95C 1 C) semi-stub
0268:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031ED5C 1 C) semi-stub
0268:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0268:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031ECBC 1 C) semi-stub
0268:fixme:ntdll:EtwEventRegister ({d2d578d9-2936-45b6-a09f-30e32715f42d}, 0x2c0c1e0, 0x6f3e808, 0x6f3e808) stub.
0280:fixme:winsock:WSALookupServiceBeginW (0x8f0f314 0x00000ff0 0x8f0f350) Stub!
[0808/022840.044:ERROR:network_change_notifier_win.cc(142)] WSALookupServiceBegin failed with: 0
0280:fixme:iphlpapi:NotifyAddrChange (Handle 0x8f0f490, overlapped 0x7763720): stub
0280:fixme:wlanapi:WlanEnumInterfaces (00000001, 00000000, 08F0EFFC) semi-stub
011c:fixme:ntdll:server_ioctl_file Unsupported ioctl 4004747b (device=4004 access=1 func=d1e method=3)
011c:fixme:winsock:server_ioctl_sock Unsupported ioctl 4004747b (device=4004 access=1 func=d1e method=3)
011c:fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_IOR('t', 123, 4))
0024:fixme:shell:CustomDestinationList_SetAppID 0x1172f90 (L"BlizzardEntertainment.Battlenet.beta"): stub
0024:fixme:shell:CustomDestinationList_BeginList 0x1172f90 (0x31c320 {92ca9dcd-5622-4bba-a805-5e9f541bd8c9} 0x31c324): stub
0024:fixme:shell:CustomDestinationList_SetAppID 0x1144468 (L"BlizzardEntertainment.Battlenet.beta"): stub
0024:fixme:shell:CustomDestinationList_BeginList 0x1144468 (0x31ba18 {92ca9dcd-5622-4bba-a805-5e9f541bd8c9} 0x31ba1c): stub
0024:fixme:event:wait_for_withdrawn_state window 0x200cc/4200007 wait timed out
0024:fixme:win:RegisterTouchWindow (0x100ea 00000002): stub
019c:fixme:wtsapi:WTSRegisterSessionNotification Stub 00010096 0x00000000
0024:fixme:win:GetPointerDevices (0x31acac (nil)): partial stub
0024:fixme:system:GetDisplayConfigBufferSizes (0x2 0x31acac 0x31aca8): stub
0280:fixme:wlanapi:WlanEnumInterfaces (00000001, 00000000, 08F0EFFC) semi-stub
01c0:fixme:process:CreateProcessInternalW Unsupported attribute 0x20002.
0024:fixme:win:RegisterTouchWindow (0x200ee 00000002): stub
0298:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
0258:fixme:dwmapi:DwmGetCompositionTimingInfo (00000000 09A7F5B8)
02e0:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031EB4C 1 C) semi-stub
02e0:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E95C 1 C) semi-stub
02e0:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031ED5C 1 C) semi-stub
02e0:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
02e0:fixme:ntdll:EtwEventRegister ({d2d578d9-2936-45b6-a09f-30e32715f42d}, 0x2c0c1e0, 0x6f3e808, 0x6f3e808) stub.
02e0:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
02e0:fixme:thread:QueryThreadCycleTime (FFFFFFFE,0031EDF0): stub!
0180:fixme:file:ReplaceFileW Ignoring flags 2
0180:fixme:dwrite:dwritefactory3_GetSystemFontSet 0xfd86d0, 0xcfbf894: stub
0180:fixme:dwrite:dwritefactory3_GetSystemFontSet 0xfd86d0, 0xcfbf894: stub
0180:fixme:dwrite:dwritefactory3_GetSystemFontSet 0xfd86d0, 0xcfbf894: stub
0180:fixme:dwrite:dwritefactory3_GetSystemFontSet 0xfd86d0, 0xcfbf894: stub
02e0:fixme:dwrite:dwritefontface5_HasVariations 0xac2dd8: stub
02e0:fixme:dwrite:dwritefontface5_HasVariations 0xac8e50: stub
0180:fixme:dwrite:dwritefactory3_GetSystemFontSet 0xfd86d0, 0xcfbf894: stub
0180:fixme:dwrite:dwritefactory3_GetSystemFontSet 0xfd86d0, 0xcfbf894: stub
02e0:fixme:dwrite:dwritefontface5_HasVariations 0xacb810: stub
0180:fixme:file:ReplaceFileW Ignoring flags 2
02e0:fixme:dwrite:dwritefontface5_HasVariations 0xace440: stub
0024:fixme:win:GetPointerDevices (0x31c5ec (nil)): partial stub
0024:fixme:system:GetDisplayConfigBufferSizes (0x2 0x31c5ec 0x31c5e8): stub
02e0:fixme:dwrite:dwritefontface5_HasVariations 0xaceff0: stub
0330:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
02e0:fixme:dwrite:dwritefontface5_HasVariations 0xad7ff8: stub
0358:fixme:file:ReplaceFileW Ignoring flags 2
02e0:fixme:dwrite:dwritefontface5_HasVariations 0xadcb98: stub
027c:fixme:file:ReplaceFileW Ignoring flags 2
01c0:fixme:process:CreateProcessInternalW Unsupported attribute 0x20002.
03a4:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031EB4C 1 C) semi-stub
03a4:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031E95C 1 C) semi-stub
03a4:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031ED5C 1 C) semi-stub
03a4:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
03a4:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0031ECBC 1 C) semi-stub
03a4:fixme:ntdll:EtwEventRegister ({d2d578d9-2936-45b6-a09f-30e32715f42d}, 0x2c0c1e0, 0x6f3e808, 0x6f3e808) stub.
[0808/022915.525:ERROR:mf_audio_decoder.cc(418)] MSAudDecMFT.dll nor Msmpeg2adec.dll is not loaded. Load it in IO thread. (Not here.)
[0808/022915.525:ERROR:mf_audio_decoder.cc(179)] Failed to find audio decoder: -2147467259
[0808/022915.525:ERROR:mf_audio_decoder.cc(709)] Failed to initialize MfAudioDecoder
[0808/022915.526:ERROR:batching_media_log.cc(38)] MediaEvent: {"error":"audio decoder initialization failed"}
[0808/022915.526:ERROR:batching_media_log.cc(35)] MediaEvent: {"pipeline_error":15}
01b8:fixme:file:ReplaceFileW Ignoring flags 2

even with all the errrors and fixme, it still runs as it should. I'll override the dlls later, I just want to get the desktop file up and ready so that I don't have to use an alias or some other bs to make it work on i3 or awesome.(I said I use xfce but that one is one of the reasons I downgraded wine, it's a long story)

Last edited by ConnahGriffin (2021-08-07 21:09:00)

Offline

#14 2021-08-07 21:08:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,366

Re: [Solved] Can't run desktop entry that should launch through wine

The exec line runs the game, please post your actual present desktop service entry and the exact error you get (it should™ no longer be the original one since the exec line presumingly changed)

Offline

#15 2021-08-07 21:31:12

ConnahGriffin
Member
Registered: 2021-02-27
Posts: 13

Re: [Solved] Can't run desktop entry that should launch through wine

seth wrote:

The exec line runs the game, please post your actual present desktop service entry and the exact error you get (it should™ no longer be the original one since the exec line presumingly changed)

This is kinda embarrassing, I can't. Don't get me wrong, it's not a wouldn't but can't. Here's why:

Since the wiki recommends running a desktop entry with gtk-launch (and also because it gets executed as a shell if executed normally), I did as such but the output is:

gtk-launch: no such application /home/user/.local/share/applications/wine/Programs/Battle.net/Battle.net.desktop

Before this, I used to launch it using rofi and one of my file manger(thunar) which could execute it properly. Which returned the error that lead me to created this thread/post.

At this point in time, when executed as usual, it returns no error. Now I get absolutely nothing. It doesn't even show up in the process tree when searching under wine and Battle.net through htop and ps.

With my current desktop entry being

[Desktop Entry]
Name=Battle.net
Exec=env WINEPREFIX=/home/user/.wine.hearthstone /usr/bin/wine start /unix "/home/user/.wine.hearthstone/drive_c/Program Files/Battle.net/Battle.net.exe"
Type=Application
StartupNotify=true
Icon=65EF_Battle.net
StartupWMClass=battle.net launcher.exe

Using the command desktop-file-validate on it returns nothing so I assume the desktop config is correct but it still wouldn't launch

Last edited by ConnahGriffin (2021-08-07 21:38:45)

Offline

#16 2021-08-07 21:48:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,366

Re: [Solved] Can't run desktop entry that should launch through wine

gtk-launch Battle.net

?

/usr/bin/wine start /unix

"start /unix"?

Offline

#17 2021-08-07 22:06:51

ConnahGriffin
Member
Registered: 2021-02-27
Posts: 13

Re: [Solved] Can't run desktop entry that should launch through wine

seth wrote:
gtk-launch Battle.net

?

Oh, I thought I included that, srry. It return:

gtk-launch: no such application Battle.net
seth wrote:

/usr/bin/wine start /unix

"start /unix"?

Oh yeah, that was recommended by one of the users...I just changed a part or two in it like removing "start" and seeing what changed, identical result from the previous one. As for the "/unix" part, unless I'm mistaken, I think that makes it so that we can use the unix pathing instead of the Dos pathing in part of the command that points at the executable. But apparently not...it started working after removing the /unix part of it. Many thanks for the help

Offline

#18 2021-08-07 22:07:43

ConnahGriffin
Member
Registered: 2021-02-27
Posts: 13

Re: [Solved] Can't run desktop entry that should launch through wine

Every one, many thanks for the help and may the lord and saviour Linus bless you all.

I think it is necessary to state that the line "start /unix" may be necessary on some cases since I have another program that runs only with it

Last edited by ConnahGriffin (2021-08-07 22:25:58)

Offline

#19 2021-08-08 00:23:12

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: [Solved] Can't run desktop entry that should launch through wine

The '/unix' switch is part of 'start' not 'wine'. If you only remove 'start' the cmdline gets invalid.

Last edited by Maniaxx (2021-08-08 00:25:55)


sys2064

Offline

Board footer

Powered by FluxBB