flathub / com.amazon.Workspaces

https://flathub.org/apps/details/com.amazon.Workspaces
4 stars 7 forks source link

Symlink libvchan-plugin-clipboard.so to app/lib #57

Closed bbhtt closed 4 months ago

bbhtt commented 10 months ago

Try to fix https://github.com/flathub/com.amazon.Workspaces/issues/39

flathubbot commented 10 months ago

Started test build 86581

flathubbot commented 10 months ago

Build 86581 successful To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/69241/com.amazon.Workspaces.flatpakref
bbhtt commented 10 months ago

Hi @tmay-dg can you please try the above build? Launch it using flatpak run --branch=test com.amazon.Workspaces and see if anything changed in logs/behaviour.

tmay-dg commented 10 months ago

Hi @bbhtt -- unfortunately I got the same errors. I ran the flatpak install ..., followed by the flatpak run --branch=test ...:

2023-12-08T14:43:30.715Z 70c60aa5-dd06-4d39-9981-e0a6daf02b30 LVL:2 RC:   0      MGMT_VCHAN :VChan plugins path = /usr/lib/x86_64-linux-gnu/pcoip-client/vchan_plugins
2023-12-08T14:43:30.715Z 70c60aa5-dd06-4d39-9981-e0a6daf02b30 LVL:1 RC:-510      MGMT_VCHAN :Unable to open plugin directory /usr/lib/x86_64-linux-gnu/pcoip-client/vchan_plugins (No such file or directory)
2023-12-08T14:43:30.715Z 70c60aa5-dd06-4d39-9981-e0a6daf02b30 LVL:1 RC:-510      MGMT_VCHAN :>> Failed to load/initialize VChan plugin!
bbhtt commented 10 months ago

Can you try flatpak run --env=LD_PRELOAD=/app/extra/bin/pcoip-client/vchan_plugins/libvchan-plugin-clipboard.so --branch=test com.amazon.Workspaces ?

Somehow, they hardcoded the path /usr/lib/x86-64-linux-gnu. This also explains why in the deb all the other libs are in /opt but only one is in /usr/lib...

The library is proprietary, and I can't find any docs+no way to look at the code.

tmay-dg commented 10 months ago

Dang, still no luck with LD_PRELOAD being set - same error.