Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to copy paste into gamescope windows? #303

Closed
hschen2 opened this issue Nov 5, 2021 · 7 comments · Fixed by #906
Closed

Possible to copy paste into gamescope windows? #303

hschen2 opened this issue Nov 5, 2021 · 7 comments · Fixed by #906
Labels
enhancement New feature or request nested Nested mode via X11/Wayland

Comments

@hschen2
Copy link

hschen2 commented Nov 5, 2021

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

@emersion emersion added enhancement New feature or request nested Nested mode via X11/Wayland labels Nov 5, 2021
@emersion
Copy link
Collaborator

emersion commented Nov 5, 2021

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

@d10sfan
Copy link

d10sfan commented May 25, 2022

This would be beneficial on the steam deck as well

@aksdb
Copy link

aksdb commented Jun 19, 2022

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.

@pierregil33
Copy link

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 ?

@aksdb
Copy link

aksdb commented Jun 27, 2022

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.

@pierregil33
Copy link

pierregil33 commented Jun 27, 2022

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

@xrishox
Copy link

xrishox commented Aug 20, 2022

would love to see this implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request nested Nested mode via X11/Wayland
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants