Sample Header Ad - 728x90

pkexec doesn't show onscreen keyboard

2 votes
1 answer
98 views
I have an web application that runs on a pc without a physical keyboard that is opened in chrome. I use the following command: pkexec --user google-chrome-stable --force-renderer-accessibility --app "http://my/url " This shows the right url, but does not show me the onscreen keyboard when I select a text field. If I remove the pkexec it does show me the onscreen keyboard. What can I do to make it also work with the pkexec? I use Debian 9.4 and the OSK is the gnome onscreen keyboard. I noticed that when testing with gedit iso chrome, it works fine: pkexec --user gedit Both executables have a similar policy file: Authentication is required to run Chrome Run Chrome auth_admin auth_admin auth_admin /usr/bin/google-chrome-stable TRUE It seems like the dbus calls to show the keyboard are no longer send when I use pkexec. If I look at the dbus-monitor the calls do come in when I run the command google-chrome-stable --force-renderer-accessibility --app "http://my/url " But if I add pkexec --user to the command it no longer sends dbus messages like this: method call time=1710323137.837430 sender=:1.101 -> destination=org.gnome.Caribou.Keyboard serial=2172 path=/org/gnome/Caribou/Keyboard; interface=org.gnome.Caribou.Keyboard; member=Show
Asked by Frank (131 rep)
Mar 11, 2024, 03:51 PM
Last activity: Mar 20, 2024, 07:40 AM