App won't launch from desktop, but will from Terminal?!?

Questions about Wine on Linux
Locked
RRlax
Newbie
Newbie
Posts: 3
Joined: Wed Jul 26, 2017 6:30 pm

App won't launch from desktop, but will from Terminal?!?

Post by RRlax »

Ubuntu 16.04 with Wine / 32-bit prefix & have KeePass 2.36 installed.

On Ubuntu's Unity desktop, I have an icon to launch that has the following as the Command:

Code: Select all

wine  ~/.wine/drive_c/Programs/Kpass/KeePass.exe
When I double-click, it seems to start, the icon appears in the launcher bar for a little while, and then all signs of any loading of the program ends and the icon disappears.
If I open a terminal window and paste the command into it exactly as above, the program runs fine, but does have some fixme lines showing in terminal.
Why won't it run from the desktop configuration file?

This is what I get in the Terminal window from start to the first window appearing:

Code: Select all

localuser@compuer:~$ wine  ~/.wine/drive_c/Programs/Kpass/KeePass.exe
fixme:thread:SetThreadStackGuarantee (0x32fc38): stub
fixme:nls:CompareStringEx semi-stub behavior for flag(s) 0x10000000
err:ole:CoGetContextToken apartment not initialised
fixme:msvcrt:__clean_type_info_names_internal (0x60345090) stub
fixme:advapi:LsaOpenPolicy ((null),0x32effc,0x00000800,0x32efa4) stub
fixme:advapi:LsaClose (0xcafe) stub
fixme:gdiplus:GdipGetFamilyName No support for handling of multiple languages!
fixme:gdiplus:resample_bitmap_pixel Unimplemented interpolation 7
fixme:richedit:ME_HandleMessage EM_GETLANGOPTIONS: stub
fixme:richedit:ME_HandleMessage EM_GETLANGOPTIONS: stub
fixme:richedit:ME_HandleMessage EM_SETLANGOPTIONS: stub
fixme:richedit:ME_HandleMessage ECO_AUTOWORDSELECTION not implemented yet!
fixme:shell:SHAutoComplete stub
fixme:gdiplus:GdipCreateHalftonePalette stub
fixme:wtsapi:WTSRegisterSessionNotification Stub 0xc0c32 0x00000000
fixme:ole:CoGetApartmentType (0xcd9e788, 0xcd9e784): semi-stub
fixme:ole:CoGetApartmentType (0x32dd20, 0x32dc98): semi-stub
fixme:process:FlushProcessWriteBuffers : stub
fixme:ole:Context_CC_ContextCallback (0x3f62c78/0x3f62c7c)->(0x79f277a5, 0x2dee448, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: App won't launch from desktop, but will from Terminal?!?

Post by dimesio »

RRlax wrote: Why won't it run from the desktop configuration file?
Because you can't use ~ in .desktop files. You need to provide the full path. You should also use wine start /unix when using a unix-style path.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: App won't launch from desktop, but will from Terminal?!?

Post by Bob Wya »

RRlax wrote:Ubuntu 16.04 with Wine / 32-bit prefix & have KeePass 2.36 installed.
...
It seems a bit odd to me that you aren't just using KeepassXC. This is a native Linux application that can open Keepass 1 / 2 databases and operates in a similar way to Keepass 2. I use it myself and it interoperates perfectly!

Bob
RRlax
Newbie
Newbie
Posts: 3
Joined: Wed Jul 26, 2017 6:30 pm

Re: App won't launch from desktop, but will from Terminal?!?

Post by RRlax »

dimesio wrote:
RRlax wrote: Why won't it run from the desktop configuration file?
Because you can't use ~ in .desktop files. You need to provide the full path. You should also use wine start /unix when using a unix-style path.
Thank you! That solved the problem.

As to the post about using the native Linux app, I guess my hesitation on that may have been that the app doesn't come from the author of KeePass, and I don't want to take a chance - how can I trust that XC software - especially since Linux/Ubuntu does not have easy way of user control of what apps can access the internet....
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: App won't launch from desktop, but will from Terminal?!?

Post by Bob Wya »

RRlax wrote:...

As to the post about using the native Linux app, I guess my hesitation on that may have been that the app doesn't come from the author of KeePass, and I don't want to take a chance - how can I trust that XC software - especially since Linux/Ubuntu does not have easy way of user control of what apps can access the internet....
1) KeepassX and KeepassXC are open source as well.
2) How can you really trust your Keepass 2 binary then? :wink:

After all applications running under Wine are not sandboxed... Sounds to me like your arguments are seriously flawed... :cry:

Bob
Locked