winapps-org / winapps

The winapps main project, forked from https://github.com/Fmstrat/winapps/
544 stars 26 forks source link

All apps are here but can't open? #104

Closed Edwin1212256756 closed 1 month ago

Edwin1212256756 commented 1 month ago

image

I can see all my apps but when i launch any of them i get this error:

image

I got explorer to run with: bin/winapps check but i can't open explorer in the men.

oskardotglobal commented 1 month ago

Please symlink the winapps executable to ~/.local/bin/winapps

oskardotglobal commented 1 month ago

Also duplicate of #89, but gonna keep this issue as you actually show an error message here

oskardotglobal commented 1 month ago

Furthermore, please make sure you're actually following our installation guide and have our version of the source instead of the abandoned version by fmstrat

Edwin1212256756 commented 1 month ago

Now that i've reinstalled my whole linux, i followed the new guide made by y'all.

got the VM working with docker but when i run the check command, i just see a black screen: image

My config file: RDP_USER="docker" RDP_IP="127.0.0.1"

RDP_PASS="MyWindowsPassword"

RDP_DOMAIN="MYDOMAIN"

RDP_SCALE=100

RDP_FLAGS=""

MULTIMON="true"

DEBUG="true"

FREERDP_COMMAND="xfreerdp"

oskardotglobal commented 1 month ago

Please install freerdp3 and uninstall freerdp2.

Edwin1212256756 commented 1 month ago

The test command works fine, opens explorer fine.

./installer.sh
Would you like to install for the current user or the whole system? User Removing any old configurations... ./installer.sh: line 297: : command not found ./installer.sh: line 298: : command not found Installing... Checking for installed apps in RDP machine (this may take a while)..../installer.sh: line 50: /home/edwin/winapps/apps//home/edwin/winapps/apps/info: No such file or directory

Edwin1212256756 commented 1 month ago

./installer.sh
? Would you like to install for the current user or the whole system? System Removing any old configurations... Installing... Checking for installed apps in RDP machine (this may take a while)..../installer.sh: line 48: /home/edwin/winapps/apps/info: No such file or directory Finished.

The RDP connection failed to connect or run. Please confirm FreeRDP can connect with: bin/winapps check

If it cannot connect, this is most likely due to:

But the test command works fine?

config file:

RDP_USER="docker"

RDP_PASS="MyWindowsPassword"

RDP_DOMAIN="MYDOMAIN"

RDP_IP="127.0.0.1"

RDP_SCALE=100

RDP_FLAGS=""

MULTIMON="true"

DEBUG="true"

FREERDP_COMMAND="xfreerdp3"

oskardotglobal commented 1 month ago

@Edwin1212256756 Please try the latest commits in that PR

Edwin1212256756 commented 1 month ago

Still same issue, but before the error about the vm not running, it opens the vm like the login screen and it logs and and closes and opens a command promt for like 0.1 second and closes and after a while the vm not running error comes in the console.

oskardotglobal commented 1 month ago

Are you running freerdp3?

Edwin1212256756 commented 1 month ago

think so, freerdp outputs nothing because it's not installed, but xfreerdp3 works so i guess so

Edwin1212256756 commented 1 month ago

once i start the install script, i can see xfreerdp3 starts to life

image

Alchemi1963 commented 1 month ago

I am experiencing these same issues. Confirmed the freerdp version is 3.5.1

I'd also like the add that bin/winapps manual "C:\Program Files\Microsoft Office\root\Office16\WINWORD.exe" does work.

For relevance: I'm running Arch + KDE Plasma + Wayland

oskardotglobal commented 1 month ago

Yeah, freerdp on wayland seems like the culprit here, did you try changing xfreerdp3 to wlfreerdp (or whatever it's called on your distro) in the config?

Alchemi1963 commented 1 month ago

Update: it is not wayland related. I tried wlfreerdp3 but it failed completely, xfreerdp3 works as intented (I tried inputting the command installer.sh uses and it worked, except for the cmd part)

I found that since installer.sh uses printf, the lines aren't written to the installed.bat file as intended which breaks it. This is the case on at least on my installation (ArchLinux - GNU coreutils v9.5).

I suspect this is also the case for @Edwin1212256756 . This also explains why @Edwin1212256756 saw freerdp3 running, but nothing else. And why I did see cmd open for a brief second and exit (it's because it didn't do anything because of the broken command.

The broken changes of printf are that \\ is printed as \ and newlines aren't a thing. This means every command is directly followed by the next one and the UNC path begins with \tsclient instead of \tsclient

LDprg commented 1 month ago

wlfreerdp doesn't support app only streaming, so you are only able to stream the full Windows. Try with x11.

Edwin1212256756 commented 1 month ago

@Alchemi1963 Your Winapps version fixed my issue, thanks a lot!