gamescope icon indicating copy to clipboard operation
gamescope copied to clipboard

Possible to copy paste into gamescope windows?

Open hschen2 opened this issue 4 years ago • 7 comments

It seems that gamescope windows have isolated copy and paste, i was wondering if theres any way i can copy from outside gamescope into it?, right now i cant copy my password for example into the gamescope window. Ty for your help. Im running on Sway if it matters

hschen2 avatar Nov 05 '21 12:11 hschen2

Yeah, I think clipboard sync is something we'll want to have at some point.

emersion avatar Nov 05 '21 12:11 emersion

This would be beneficial on the steam deck as well

d10sfan avatar May 25 '22 19:05 d10sfan

While only a workaround, I wrote a tool that will run gamescope for you, launching a process outside of gamescope and within gamescope that use a unix socket to transmit clipboard changes. Therefore you effectively have a working clipboard in gamescope.

aksdb avatar Jun 19 '22 10:06 aksdb

While only a workaround, I wrote a tool that will run gamescope for you, launching a process outside of gamescope and within gamescope that use a unix socket to transmit clipboard changes. Therefore you effectively have a working clipboard in gamescope.

I don't sucess to use this (arch linux, with steam and gamescope 3.11.30-1 from AUR). may I copy the gamescopetool file somewhere ?

Also, I prefere to use flatpak steam with com.valvesoftware.Steam.Utility.gamescope Is there a way to get it working for flatpak ?

pierregil33 avatar Jun 27 '22 11:06 pierregil33

While only a workaround, I wrote a tool that will run gamescope for you, launching a process outside of gamescope and within gamescope that use a unix socket to transmit clipboard changes. Therefore you effectively have a working clipboard in gamescope.

I don't sucess to use this (arch linux, with steam and gamescope 3.11.30-1 from AUR). may I copy the gamescopetool file somewhere ?

Also, I prefere to use flatpak steam with com.valvesoftware.Steam.Utility.gamescope Is there a way to get it working for flatpak ?

You can copy it whereever you want. It should be fine. I am not using flatpak, so I have no way to verify the workings, but from what I know, as long as you have access to the executable of gamescopetool from within the flatpak sandbox and if gamescope is in the $PATH within that sandbox, it should work just the same.

gamescopetool is currently relatively dumb. It will just launch gamescope (that's why gamescope has to be in the $PATH) and pass the path to itself as the first argument to launch (that's why it doesn't matter where gamescopetool is located).

Settings for a game I launch in steam are for example: /home/myuser/bin/gamescopetool -w 1920 -h 1090 -f -- %command%. If your homedirectory is available from within flatpak, the same thing should work for you.

aksdb avatar Jun 27 '22 15:06 aksdb

I paste gamescopetool side to gamescope in /usr/bin and chown it to my user, now it works.

trying to do same for flatpak under : /var/lib/flatpak/runtime/com.valvesoftware.Steam.Utility.gamescope/x86_64/stable/active/files/bin, this don't work. it seems that flatpak miss depencies for runing gamescopetool: steam error gamescopetool: /usr/lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by gamescopetool) . thank you

pierregil33 avatar Jun 27 '22 22:06 pierregil33

would love to see this implemented

xrishox avatar Aug 20 '22 23:08 xrishox