swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.48k stars 1.11k forks source link

Accent does not work in applications installed with snap #8208

Open rmasad opened 3 months ago

rmasad commented 3 months ago

A strange error is that the accent does not work in applications installed with snap (I'm Latin American, we have characters like á, é, í or ú).

I tried i3wm and Gnome, accents work well in both.

Sway version: 1.9 Ubuntu version: 24.04

rmasad commented 3 months ago

Update: reviewing, it is not all Snap applications that fail, so far the ones I see with problems are: Slack, Discord, Brave and Mailspring.

xvkdev commented 3 months ago

@rmasad Do Chrome and firefox work, for example when writing emails on gmail?

rmasad commented 3 months ago

Neither Chromium nor Firefox installed by snap accents work. Chrome (installed by your ppa) works perfectly.

xvkdev commented 3 months ago

What about for example, the terminal?

On Sat, Jun 22, 2024, 20:35 rmasad @.***> wrote:

Neither Chromium nor Firefox installed by snap accents work. Chrome (installed by your ppa) works perfectly.

— Reply to this email directly, view it on GitHub https://github.com/swaywm/sway/issues/8208#issuecomment-2184148987, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIX3TJCF42K2CMUIZGNYLLZIW7V5AVCNFSM6AAAAABJHGPMCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGE2DQOJYG4 . You are receiving this because you commented.Message ID: @.***>

rmasad commented 3 months ago

What command in the terminal?

xvkdev commented 3 months ago

Doesn't matter, just try to get a letter with a tilde.

On Sat, Jun 22, 2024, 20:54 rmasad @.***> wrote:

What command in the terminal?

— Reply to this email directly, view it on GitHub https://github.com/swaywm/sway/issues/8208#issuecomment-2184154508, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIX3TOWITF2GJVHPD3QWLLZIXB4TAVCNFSM6AAAAABJHGPMCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGE2TINJQHA . You are receiving this because you commented.Message ID: @.***>

rmasad commented 3 months ago

Works the tildes in my terminals.

I think it's a combination of chromium/electron, snap and sway.

cfsmp3 commented 3 months ago

For me they won't work (in any app, except alacritty, but I have that one with explicit key bindings).

Just in case I tried firefox from .deb and of course it didn't work. That would have been quite the miracle :-)

rmasad commented 3 months ago

I think I found the problem. When entering Chromium and forcing it to use Wayland, accents work.

Apparently snap applications that use electron have this problem.

When trying to force the use of Wayland on some, it gives an error:

mailspring --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto
[59198:0625/130002.609262:ERROR:wayland_connection.cc(224)] Failed to connect to Wayland display: No such file or directory (2)
[59198:0625/130002.609301:ERROR:ozone_platform_wayland.cc(223)] Failed to initialize Wayland platform
[59198:0625/130002.609304:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.
The futex facility returned an unexpected error code.
[0625/130002.618119:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)
[1]    59198 IOT instruction (core dumped)  mailspring --enable-features=UseOzonePlatform,WaylandWindowDecorations
cfsmp3 commented 3 months ago

Apparently snap applications that use electron have this problem.

Do Chrome or Firefox use electron at all?

Anyway while I'm suffering the same problem (no accents), for me it's a global problem, unrelated to snap (AFAIT) or electron.