casualsnek / cassowary

Run Windows Applications on Linux as if they are native, Use linux applications to launch files files located in windows vm without needing to install applications on vm. With easy to use configuration GUI
GNU General Public License v2.0
2.93k stars 78 forks source link

Unlisted app fails to start #73

Open thegrasshopper104 opened 2 years ago

thegrasshopper104 commented 2 years ago

I can't really add anything else. Affinity Photo fails to run.

aronkvh@NeonAron:~$ python3 -m cassowary -c guest-run -- C:\Program Files\Affinity\Photo\Photo.exe
[ 2022-04-09 17:41:38,859 ] | [  DEBUG ] :  [      helper ->              vm_wake  ] -->  Attempting to resume VM 
[ 2022-04-09 17:41:38,863 ] | [ WARNING ] :  [      helper ->              vm_wake  ] -->  VM state is not set to suspended : State -> '1'  
[ 2022-04-09 17:41:38,863 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  Opening & closing a test window to trigger login or try to fix black screen bug on first launch 
[ 2022-04-09 17:41:38,863 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  Trying to fix black window bug by opening a test window before requested application - 1649518898.8638434CMDLINE: xfreerdp /d:"DESKTOP-FJOGKME" /u:"aronkvh" /p:"Edit It Yourself" /v:"192.168.122.66" +clipboard /a:drive,root,/ +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span  /wm-class:"cassowaryApp-echo" /app:"ipconfig.exe" 
[ 2022-04-09 17:41:38,866 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  Test window opened and closed ! 
[ 2022-04-09 17:41:38,867 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  An app was already opened, the black window should not appear now ! 
[ 2022-04-09 17:41:38,867 ] | [  DEBUG ] :  [    __init__ ->                 main  ] -->  guest-run with commandline: xfreerdp /d:"DESKTOP-FJOGKME" /u:"aronkvh" /p:"Edit It Yourself" /v:192.168.122.66 +clipboard /a:drive,root,/ +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span  /wm-class:"cassowaryApp-C:Program" /app:"C:Program" /app-icon:"/home/aronkvh/.local/lib/python3.8/site-packages/cassowary/base/../gui/extrares/cassowary_app.png" /app-cmd:"FilesAffinityPhotoPhoto.exe " 
sh: 1: xfreerdp: not found

Operating System: KDE neon 5.24 KDE Plasma Version: 5.24.4 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 Kernel Version: 5.13.0-39-generic (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Core™ i7-3770 CPU @ 3.40GHz Memory: 27,4 GiB of RAM Graphics Processor: NVIDIA GeForce RTX 3060/PCIe/SSE2

casualsnek commented 2 years ago

Last line states that freerdp package is not installed ! Can you please share output of which xfreerfp and which wlfreerdp ?

Since you are on KDE neon can you install freerdp with sudo apt install freerdp2-x11 and try again !

thegrasshopper104 commented 2 years ago

I installed the package, the commands give no output

casualsnek commented 2 years ago

I installed the package, the commands give no output

It looks like issue with your freerdp installation ! Do you get any output if you just run xfreerdp command on terminal ?

thegrasshopper104 commented 2 years ago

It looks like issue with your freerdp installation ! Do you get any output if you just run xfreerdp command on terminal ? yes, the command list.

now this is what I get when trying to connect:

 python3 -m cassowary -c guest-run -- C:\Program Files\Affinity\Photo\Photo.exe
[ 2022-04-09 20:02:47,241 ] | [  DEBUG ] :  [      helper ->              vm_wake  ] -->  Attempting to resume VM 
[ 2022-04-09 20:02:47,245 ] | [ WARNING ] :  [      helper ->              vm_wake  ] -->  VM state is not set to suspended : State -> '1'  
[ 2022-04-09 20:02:47,246 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  Opening & closing a test window to trigger login or try to fix black screen bug on first launch 
[ 2022-04-09 20:02:47,246 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  Trying to fix black window bug by opening a test window before requested application - 1649527367.246971CMDLINE: xfreerdp /d:"DESKTOP-FJOGKME" /u:"aronkvh" /p:"Edit It Yourself" /v:"192.168.122.66" +clipboard /a:drive,root,/ +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span  /wm-class:"cassowaryApp-echo" /app:"ipconfig.exe" 
[ 2022-04-09 20:02:47,817 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  Test window opened and closed ! 
[ 2022-04-09 20:02:47,817 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  An app was already opened, the black window should not appear now ! 
[ 2022-04-09 20:02:47,818 ] | [  DEBUG ] :  [    __init__ ->                 main  ] -->  guest-run with commandline: xfreerdp /d:"DESKTOP-FJOGKME" /u:"aronkvh" /p:"Edit It Yourself" /v:192.168.122.66 +clipboard /a:drive,root,/ +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span  /wm-class:"cassowaryApp-C:Program" /app:"C:Program" /app-icon:"/home/aronkvh/.local/lib/python3.8/site-packages/cassowary/base/../gui/extrares/cassowary_app.png" /app-cmd:"FilesAffinityPhotoPhoto.exe " 
[20:02:47:538] [42065:42066] [INFO][com.freerdp.core] - freerdp_connect:freerdp_set_last_error_ex resetting error state
[20:02:47:539] [42065:42066] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpdr
[20:02:47:539] [42065:42066] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpsnd
[20:02:47:539] [42065:42066] [INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
[20:02:47:539] [42065:42066] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rail
[20:02:47:539] [42065:42066] [INFO][com.freerdp.client.common.cmdline] - loading channelEx drdynvc
[20:02:48:860] [42065:42066] [INFO][com.freerdp.primitives] - primitives autodetect, using optimized
[20:02:48:863] [42065:42066] [INFO][com.freerdp.core] - freerdp_tcp_is_hostname_resolvable:freerdp_set_last_error_ex resetting error state
[20:02:48:863] [42065:42066] [INFO][com.freerdp.core] - freerdp_tcp_connect:freerdp_set_last_error_ex resetting error state
[20:02:48:078] [42065:42066] [ERROR][com.freerdp.core] - nla_recv_pdu:freerdp_set_last_error_ex ERRCONNECT_LOGON_FAILURE [0x00020014]
[20:02:48:078] [42065:42066] [ERROR][com.freerdp.core.rdp] - rdp_recv_callback: CONNECTION_STATE_NLA - nla_recv_pdu() fail
[20:02:48:078] [42065:42066] [ERROR][com.freerdp.core.transport] - transport_check_fds: transport->ReceiveCallback() - -1
casualsnek commented 2 years ago

It looks like issue with your freerdp installation ! Do you get any output if you just run xfreerdp command on terminal ? yes, the command list.

now this is what I get when trying to connect:

 python3 -m cassowary -c guest-run -- C:\Program Files\Affinity\Photo\Photo.exe
[ 2022-04-09 20:02:47,241 ] | [  DEBUG ] :  [      helper ->              vm_wake  ] -->  Attempting to resume VM 
[ 2022-04-09 20:02:47,245 ] | [ WARNING ] :  [      helper ->              vm_wake  ] -->  VM state is not set to suspended : State -> '1'  
[ 2022-04-09 20:02:47,246 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  Opening & closing a test window to trigger login or try to fix black screen bug on first launch 
[ 2022-04-09 20:02:47,246 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  Trying to fix black window bug by opening a test window before requested application - 1649527367.246971CMDLINE: xfreerdp /d:"DESKTOP-FJOGKME" /u:"aronkvh" /p:"Edit It Yourself" /v:"192.168.122.66" +clipboard /a:drive,root,/ +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span  /wm-class:"cassowaryApp-echo" /app:"ipconfig.exe" 
[ 2022-04-09 20:02:47,817 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  Test window opened and closed ! 
[ 2022-04-09 20:02:47,817 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  An app was already opened, the black window should not appear now ! 
[ 2022-04-09 20:02:47,818 ] | [  DEBUG ] :  [    __init__ ->                 main  ] -->  guest-run with commandline: xfreerdp /d:"DESKTOP-FJOGKME" /u:"aronkvh" /p:"Edit It Yourself" /v:192.168.122.66 +clipboard /a:drive,root,/ +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span  /wm-class:"cassowaryApp-C:Program" /app:"C:Program" /app-icon:"/home/aronkvh/.local/lib/python3.8/site-packages/cassowary/base/../gui/extrares/cassowary_app.png" /app-cmd:"FilesAffinityPhotoPhoto.exe " 
[20:02:47:538] [42065:42066] [INFO][com.freerdp.core] - freerdp_connect:freerdp_set_last_error_ex resetting error state
[20:02:47:539] [42065:42066] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpdr
[20:02:47:539] [42065:42066] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpsnd
[20:02:47:539] [42065:42066] [INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
[20:02:47:539] [42065:42066] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rail
[20:02:47:539] [42065:42066] [INFO][com.freerdp.client.common.cmdline] - loading channelEx drdynvc
[20:02:48:860] [42065:42066] [INFO][com.freerdp.primitives] - primitives autodetect, using optimized
[20:02:48:863] [42065:42066] [INFO][com.freerdp.core] - freerdp_tcp_is_hostname_resolvable:freerdp_set_last_error_ex resetting error state
[20:02:48:863] [42065:42066] [INFO][com.freerdp.core] - freerdp_tcp_connect:freerdp_set_last_error_ex resetting error state
[20:02:48:078] [42065:42066] [ERROR][com.freerdp.core] - nla_recv_pdu:freerdp_set_last_error_ex ERRCONNECT_LOGON_FAILURE [0x00020014]
[20:02:48:078] [42065:42066] [ERROR][com.freerdp.core.rdp] - rdp_recv_callback: CONNECTION_STATE_NLA - nla_recv_pdu() fail
[20:02:48:078] [42065:42066] [ERROR][com.freerdp.core.transport] - transport_check_fds: transport->ReceiveCallback() - -1

Seems like some formatting issue with path. Can you try using \\ instead of single \ in windows path and enclosing the path within quotes: The command should look like:

python3 -m cassowary -c guest-run -- "C:\\Program Files\\Affinity\\Photo\\Photo.exe"

thegrasshopper104 commented 2 years ago

doesn't work that way either:

[ 2022-04-09 20:53:40,095 ] | [  DEBUG ] :  [      helper ->              vm_wake  ] -->  Attempting to resume VM 
[ 2022-04-09 20:53:40,098 ] | [ WARNING ] :  [      helper ->              vm_wake  ] -->  VM state is not set to suspended : State -> '1'  
[ 2022-04-09 20:53:40,099 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  Opening & closing a test window to trigger login or try to fix black screen bug on first launch 
[ 2022-04-09 20:53:40,099 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  Trying to fix black window bug by opening a test window before requested application - 1649530420.0991929CMDLINE: xfreerdp /d:"DESKTOP-FJOGKME" /u:"aronkvh" /p:"Edit It Yourself" /v:"192.168.122.66" +clipboard /a:drive,root,/ +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span  /wm-class:"cassowaryApp-echo" /app:"ipconfig.exe" 
[ 2022-04-09 20:53:40,655 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  Test window opened and closed ! 
[ 2022-04-09 20:53:40,655 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  An app was already opened, the black window should not appear now ! 
[ 2022-04-09 20:53:40,656 ] | [  DEBUG ] :  [    __init__ ->                 main  ] -->  guest-run with commandline: xfreerdp /d:"DESKTOP-FJOGKME" /u:"aronkvh" /p:"Edit It Yourself" /v:192.168.122.66 +clipboard /a:drive,root,/ +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span  /wm-class:"cassowaryApp-Photo.exe" /app:"C:\Program Files\Affinity\Photo\Photo.exe" /app-icon:"/home/aronkvh/.local/lib/python3.8/site-packages/cassowary/base/../gui/extrares/cassowary_app.png"  
[20:53:40:333] [45199:45200] [INFO][com.freerdp.core] - freerdp_connect:freerdp_set_last_error_ex resetting error state
[20:53:40:333] [45199:45200] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpdr
[20:53:40:333] [45199:45200] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpsnd
[20:53:40:333] [45199:45200] [INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
[20:53:40:333] [45199:45200] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rail
[20:53:40:333] [45199:45200] [INFO][com.freerdp.client.common.cmdline] - loading channelEx drdynvc
[20:53:40:659] [45199:45200] [INFO][com.freerdp.primitives] - primitives autodetect, using optimized
[20:53:40:661] [45199:45200] [INFO][com.freerdp.core] - freerdp_tcp_is_hostname_resolvable:freerdp_set_last_error_ex resetting error state
[20:53:40:661] [45199:45200] [INFO][com.freerdp.core] - freerdp_tcp_connect:freerdp_set_last_error_ex resetting error state
[20:53:41:876] [45199:45200] [ERROR][com.freerdp.core] - nla_recv_pdu:freerdp_set_last_error_ex ERRCONNECT_LOGON_FAILURE [0x00020014]
[20:53:41:876] [45199:45200] [ERROR][com.freerdp.core.rdp] - rdp_recv_callback: CONNECTION_STATE_NLA - nla_recv_pdu() fail
[20:53:41:876] [45199:45200] [ERROR][com.freerdp.core.transport] - transport_check_fds: transport->ReceiveCallback() - -1
jeroenkurvers commented 2 years ago

For me it works if I use python3 -m cassowary -c guest-run -- "C:\Program Files\Affinity\Photo\Photo.exe". But in Affinity I had to disable the welcome screen to startup at launch.