Programs installed in Snap format do not detect the keyboard
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| snapd |
Undecided
|
Unassigned | ||
| snapd (Ubuntu) |
High
|
Unassigned |
Bug Description
I installed 3 programs in Snap format
1 with the software center (Spotify)
2 using the terminal Thunderbird, Superproductivity
In the case of installation from the terminal, keyboard strokes are not detected
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: snapd 2.43~pre1+20.04
ProcVersionSign
Uname: Linux 5.4.0-14-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu16
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Feb 14 11:18:58 2020
InstallationDate: Installed on 2020-02-14 (0 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Alpha amd64 (20200212)
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)
Zygmunt Krynicki (zyga) wrote : | #3 |
I don't think this is related to CLI vs GUI but I did notice this today on my Focal system. I think it's a bug in the input stack. I will chase after this with assistance from the desktop team next week.
Changed in snapd (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
I confirm that the installation form has nothing to do with it. In Spotify only the username is supported but not the password
Paul White (paulw2u) wrote : | #5 |
See also bug 1863412 re chromium
Rogério Ferreira (rogerioferreira) wrote : | #6 |
This bug affects all snap applications.
Alex Murray (alexmurray) wrote : | #7 |
This looks to be due to snaps being denied connection to the ibus socket:
[ 791.681769] audit: type=1400 audit(158189749
[ 1167.843758] audit: type=1400 audit(158189787
[ 1615.070841] audit: type=1400 audit(158189832
Alex Murray (alexmurray) wrote : | #8 |
So ibus was recently updated in focal and this moves the ibus socket path from /tmp to the users home directory - the existing desktop_legacy interface species the ibus socket path in /tmp still:
# allow communicating with ibus-daemon (this allows sniffing key events)
unix (connect, receive, send)
type=stream
peer=
So this needs to have something like the following added:
unix (connect, receive, send)
type=stream
peer=
to the desktop-legacy interface (OR ibus is reverted to move the socket back to /tmp however from a security point-of-view I think it is better to have the ibus socket address in the user's home directory).
I don't think there is a way to use the @{HOME} variable in this rule hence the /home/*/ above
Alex Murray (alexmurray) wrote : | #9 |
I've submitted a PR to snapd to add this new path https:/
Alex Murray (alexmurray) wrote : | #10 |
Ah and now I see Jamie has already submitted a better PR - https:/
Changed in snapd (Ubuntu): | |
status: | Confirmed → In Progress |
Zygmunt Krynicki (zyga) wrote : | #11 |
This was merged and released directly to Focal. The next release of snapd will include this fix in general.
Changed in snapd: | |
status: | New → Fix Released |
Changed in snapd (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in snapd: | |
status: | Fix Released → Fix Committed |
Ian Johnson (anonymouse67) wrote : | #12 |
Note that if you are on focal, you may still not get this fix if you have the edge channel of the core/snapd snaps installed, as snapd will re-exec into that channel, and the edge channel currently is lagging behind the debian package of snapd. We expect the edge channel to be properly rebuilt soon, but in the meantime you can switch channels for the core/snapd snap to stable and you will get the fix from the debian package in focal.
Kain Centeno (tenshinoneko) wrote : | #13 |
Started just having this issue yesterday for chromium and discord installed as a snap after running an update (on focal)
Reporting it as it's almost 2 months since the last comment not sure if maybe something got reverted on last update.
Olivier Tilloy (osomon) wrote : | #14 |
The last ibus update is 4 days old, and it should be unrelated, so this is probably a different issue.
Can you check the output of "journalctl -f | grep DEN" while running those snaps, and attach it here?
Kain Centeno (tenshinoneko) wrote : | #15 |
kain@kain-
Apr 03 18:55:27 kain-Blade-Stealth audit[5702]: AVC apparmor="DENIED" operation="ptrace" profile=
Apr 03 18:55:27 kain-Blade-Stealth audit[5702]: AVC apparmor="DENIED" operation="ptrace" profile=
Apr 03 18:55:27 kain-Blade-Stealth audit[5702]: AVC apparmor="DENIED" operation="open" profile=
Apr 03 18:55:27 kain-Blade-Stealth audit[5702]: AVC apparmor="DENIED" operation="ptrace" profile=
Apr 03 18:55:27 kain-Blade-Stealth audit[5702]: AVC apparmor="DENIED" operation="ptrace" profile=
Apr 03 18:55:27 kain-Blade-Stealth audit[5702]: AVC apparmor="DENIED" operation="ptrace" profile=
Apr 03 18:55:27 kain-Blade-Stealth audit[5702]: AVC apparmor="DENIED" operation="ptrace" profile=
Apr 03 18:55:46 kain-Blade-Stealth dbus-daemon[2491]: apparmor="DENIED" operation=
Apr 03 18:55:46 kain-Blade-Stealth audit[1511]: USER_AVC pid=1511 uid=103 auid=4294967295 ses=4294967295 msg='apparmor=
Apr 03 18:55:46 kain-Blade-Stealth kernel: audit: type=1107 audit(158596534
Apr 03 18:55:47 kain-Blade-Stealth dbus-daemon[2491]: apparmor="DENIED" operation=
Apr 03 18:55:47 kain-Blade-Stealth dbus-daemon[2491]: apparmor="DENIED" operation=
Apr 0...
Kain Centeno (tenshinoneko) wrote : | #16 |
I was able to fix this by changing the input method settings.
When first opening it, I see a window saying:
Current configuration for the input method:
* Active configuration: default (normally missing)
* Normal automatic choice: ibus (normally ibus or fcitx or uim)
* Override rule:
* Current override choice: (en_US)
* Current automatic choice: ibus
* Number of valid choices: 2 (normally 1)
The override rule is defined in /etc/default/
The configuration set by im-config is activated by re-starting X.
Explicit selection is not required to enable the automatic configuration if the active one is default/
Available input methods: ibus xim
Unless you really need them all, please make sure to install only one input method tool.
I hit Okay.
Then another window pops up saying:
Do you explicitly select the user configuration?
Select No, if you do not wish to update it(recommended)
select yes, if you wish to update it.
I select "yes"
On the new window I see that "default" is select. (use auto mode set /etc/default/
I went to that file and cat it, the result below:
# Default im-config mode (see im-config(8))
OLDIFS="$IFS"
IFS=':'
desktop=
for val in $XDG_CURRENT_
for d in 'GNOME' 'MATE' 'UKUI' 'Unity'; do
[ "$d" = "$val" ] && { desktop="$d"; break 2; }
done
done
IFS="$OLDIFS"
if [ -n "$desktop" ]; then
# Start best input method unless overridden below
IM_
else
# Start best input method only if CJKV environment and not overridden below
IM_
fi
# Set locale dependent preferred IM over standard auto mode
if [ "$desktop" != 'GNOME' ]; then
IM_
fi
# User and system wide configuration is normally done via im-config program.
# The above IM_CONFIG_
# override rule. If you wish to use uim over ibus just for ja_JP,
# add :ja_JP,uim at the end of the above list.
# Trace commands for debug
# (This may cause problem configuration file generated under console mode)
#IM_CONFIG_
# Verbose output for debug (uncomment following)
#IM_CONFIG_
-------------
If i change the input method to "auto" (activate IM with @-mark for most locales) the keyboard works again on all snaps
I hope the information I provided helps somehow
Kain Centeno (tenshinoneko) wrote : | #17 |
sorry i forgot to also mention that i have chinese and japanese ibus. For some reason now my icon on the top right is gone too
Julian Alarcon (julian-alarcon) wrote : | #18 |
Hi. I'm getting a similar issue but it's related with the context menu from the tray icon. I'm the maintainer of prospect-mail but I also see this issue in https:/
This is the message:
abr 20 10:34:31 ubuntu-focal audit[584]: USER_AVC pid=584 uid=103 auid=4294967295 ses=4294967295 msg='apparmor=
abr 20 10:34:31 ubuntu-focal kernel: audit: type=1107 audit(158739687
abr 20 10:34:32 ubuntu-focal dbus-daemon[2380]: apparmor="DENIED" operation=
abr 20 10:34:32 ubuntu-focal dbus-daemon[2380]: apparmor="DENIED" operation=
abr 20 10:34:32 ubuntu-focal dbus-daemon[2380]: apparmor="DENIED" operation=
abr 20 10:34:32 ubuntu-focal <email address hidden>[2846]: Impossible to send about-to-show to menu: Gio.DBusError: GDBus.Error:
abr 20 10:34:32 ubuntu-focal <email address hidden>[2846]: While reading menu layout on proxy ':1.783: Gio.DBusError: GDBus.Error:
Jamie Strandboge (jdstrand) wrote : | #19 |
Julian, I suspect your snap needs to 'plugs: [ unity7 ]' (which is what allows using dbusmenu) and that you need to 'snap connect prospect-
Zygmunt Krynicki (zyga) wrote : | #20 |
This issue was fixed in snapd 2.43 which was since released to the stable channel. Marking as such.
Changed in snapd: | |
milestone: | none → 2.43 |
status: | Fix Committed → Fix Released |
milestone: | 2.43 → 2.44 |
Zygmunt Krynicki (zyga) wrote : | #21 |
On closer look it seems that the patch was included in 2.44.
Chris S. (r-chris-2) wrote : | #22 |
I'm on snap 2.47 and chromium does not respond to the keyboard. It is version:
Version 86.0.4240.75 (Official Build) snap (64-bit)
System info:
Ubuntu 20.04.1 LTS (64-bit)
GNOME 3.36.3 with Wayland
Why am I on Wayland...? Not sure! I thought I stuck with X... Maybe that's part of the problem.
Let me know if there are any other specs that would help.
In addition, I have noted many corrupt icons since switching to the snap package. For example, the close button in the upper right that should display as a simple X has some weird shaped whale looking icon attached to the left side of it. When I go to save a file, the system icons I have selected are not display, instead corrupted icons or no icons display. I'm not sure if this is related to the keyboard issue, but they both occurred after upgrading to snap.
Olivier Tilloy (osomon) wrote : | #23 |
Chris, could you please attach the output of the following command:
snap connections chromium
For the issue with corrupt icons, please file a separate bug at https:/
I deleted the Superproductivity installation and the files from the Snap folder. I installed from the software center. It still doesn't work.