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

Text to active window does not work [flatpak, wayland] #203

Open
nnbyte opened this issue Jan 17, 2025 · 4 comments
Open

Text to active window does not work [flatpak, wayland] #203

nnbyte opened this issue Jan 17, 2025 · 4 comments

Comments

@nnbyte
Copy link

nnbyte commented Jan 17, 2025

Hello,

First of all, awesome app, great job! I am still discovering/learning about it.

Everything I tested until now works, except for the "Text to active window" option. FYI, I am using your flatpak app on wayland (on openSUSE Tumbleweed with KDE Plasma).

Image

I installed the ydotool and setup the ydotoold deamon to run in the background. I set a socket under my own user so I can access it without sudo. It works for me, I can execute stuff directly. I also set an environment variable via .profile.

user@pc:~$ sudo -b ydotoold --socket-path="$HOME/.ydotool_socket" --socket-own="$(id -u):$(id -g)"
[sudo] password for root: 
user@pc:~$ Socket path: /home/user/.ydotool_socket
Socket permission: 0600
Socket ownership: UID=1000, GID=1000
READY

user@pc:~$ echo $YDOTOOL_SOCKET
/home/user/.ydotool_socket

user@pc:~$ ps auxf | grep ydotoold
user    39153  0.0  0.0   3608  1984 pts/1    S+   21:01   0:00  |   |   \_ grep --color=auto ydotoold
root       39115  0.0  0.0  17620  4252 pts/1    S    21:01   0:00  \_ sudo -b ydotoold --socket-path=/home/user/.ydotool_socket --socket-own=1000:1000
root       39116  0.0  0.0  17620  3328 pts/2    Ss+  21:01   0:00      \_ sudo -b ydotoold --socket-path=/home/user/.ydotool_socket --socket-own=1000:1000
root       39117  0.0  0.0   2684  1712 pts/2    S    21:01   0:00          \_ ydotoold --socket-path=/home/user/.ydotool_socket --socket-own=1000:1000

I allowed your flatpak to access the socket like this (i hope it is correct/enough?):

Image

What am I missing?

@mkiol
Copy link
Owner

mkiol commented Jan 19, 2025

Everything is fine with your configuration :)

The problem is that the integration with ydotool and "Insert text into active window" feature on Wayland is not yet included in the official version (and not in the beta version). It will be in the next release (v4.8.0).

@bitsByB
Copy link

bitsByB commented Jan 25, 2025

Looking forward to it! I might need a little crash course on ydotoold though... 😬

@nnbyte
Copy link
Author

nnbyte commented Jan 25, 2025

Looking forward to it! I might need a little crash course on ydotoold though... 😬

nice installation tutorial
https://gabrielstaples.com/ydotool-tutorial/#gsc.tab=0

@bitsByB
Copy link

bitsByB commented Jan 26, 2025

Great thanks a lot @nnbyte !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants