Running an app in Ubuntu Precise

Questions about Wine on Linux
Locked
johnaaronrose
Level 2
Level 2
Posts: 22
Joined: Tue Dec 01, 2009 8:49 am

Running an app in Ubuntu Precise

Post by johnaaronrose »

I'm using Wine 1.6.1 installed using the UbuntuWine Team's ppa under Ubuntu Precise. I have a Desktop Configuration File (named Basic4android.desktop) created by Wine when I installed the Basicx4android windows app.

The file is in directory /home/john/.local/share/applications/wine/Programs/Basic4android/.

Contents of the file are:
[Desktop Entry]
Name=Basic4android
Exec=env WINEPREFIX="/home/john/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/john/.wine/dosdevices/c:/users/Public/Start\\ Menu/Programs/Basic4android/Basic4android.lnk
Type=Application
StartupNotify=true
Path=/home/john/.wine/dosdevices/c:/Basic4android
Icon=05D9_Basic4android.0

/home/john/.wine/dosdevices/c:/users/Public/Start Menu/Programs/Basic4android/Basic4android.lnk (written using standard Unix notation) exists. I don't know how to determine where it points to. However, the file (basic4android.exe) that it should point to is in directory /home/john/.wine/c:/dosdevices/c:/Basic4android/ and I can run it successfully by double clicking it in the Nautilus File Manager.

When I try to run the app (by using the launcher in Unity (corresponding to the Desktop Configuration File detailed above), I get a small window showing 'File Missing' with no useful options, but it doesn't detail which file that is missing. Help please!

PS I get the same problem with other windows apps (e.g. Windows version of Android SDK).
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Running an app in Ubuntu Precise

Post by dimesio »

What happens when you run it from a terminal? http://wiki.winehq.org/FAQ#run_from_terminal
johnaaronrose
Level 2
Level 2
Posts: 22
Joined: Tue Dec 01, 2009 8:49 am

Re: Running an app in Ubuntu Precise

Post by johnaaronrose »

I get "File not found". I hope that I did it correctly: I copied it from the exec line in the .desktop file. Terminal output was:
john@JohnDesktop:~$ wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/john/.wine/dosdevices/c:/users/Public/Start\\ Menu/Programs/Basic4android/Basic4android.lnk
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x73e91c,0x73e920): stub
fixme:win:RegisterDeviceNotificationA (hwnd=0x130868, filter=0x93e654,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x130868, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x130868, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x130868, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x130868, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x130868, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x130868, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x130868, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x130868, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x130868, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x130868, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x130868, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x130868, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x130868, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x130868, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:exec:SHELL_execute flags ignored: 0x00000100
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: Success.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Running an app in Ubuntu Precise

Post by dimesio »

Run the executable, not the .lnk file.
johnaaronrose
Level 2
Level 2
Posts: 22
Joined: Tue Dec 01, 2009 8:49 am

Re: Running an app in Ubuntu Precise

Post by johnaaronrose »

I get:
john@JohnDesktop:~$ ./.wine/dosdevices/c:/Basic4android/Basic4android.exe

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for VisualHint.SmartPropertyGrid.PropertyGrid ---> System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "System.resources" was correctly embedded or linked into assembly "System" at compile time, or that all the satellite assemblies required are loadable and fully signed.
at System.Resources.ResourceManager.AssemblyResourceMissing (System.String fileName) [0x00000] in <filename unknown>:0
at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) [0x00000] in <filename unknown>:0
at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) [0x00000] in <filename unknown>:0
at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) [0x00000] in <filename unknown>:0
at System.Resources.ResourceManager.GetObject (System.String name, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at VisualHint.SmartPropertyGrid.PropertyGrid..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at cs..ctor () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) cs:.ctor ()
at d9.f () [0x00000] in <filename unknown>:0
at d9..ctor () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) d9:.ctor ()
at du..ctor () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) du:.ctor ()
at du.a (System.String[] A_0) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for VisualHint.SmartPropertyGrid.PropertyGrid ---> System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "System.resources" was correctly embedded or linked into assembly "System" at compile time, or that all the satellite assemblies required are loadable and fully signed.
at System.Resources.ResourceManager.AssemblyResourceMissing (System.String fileName) [0x00000] in <filename unknown>:0
at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) [0x00000] in <filename unknown>:0
at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) [0x00000] in <filename unknown>:0
at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) [0x00000] in <filename unknown>:0
at System.Resources.ResourceManager.GetObject (System.String name, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at VisualHint.SmartPropertyGrid.PropertyGrid..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at cs..ctor () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) cs:.ctor ()
at d9.f () [0x00000] in <filename unknown>:0
at d9..ctor () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) d9:.ctor ()
at du..ctor () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) du:.ctor ()
at du.a (System.String[] A_0) [0x00000] in <filename unknown>:0
john@JohnDesktop:~$
Locked