espanso / espanso

Cross-platform Text Expander written in Rust
https://espanso.org
GNU General Public License v3.0
9.87k stars 273 forks source link

How does Espanso detect Wayland v. Xorg? i3wm incorrectly being detected as Wayland #2030

Closed simonm closed 1 month ago

simonm commented 2 months ago

Description

Hello

I'm trying to run espanso on Xorg using i3 window manager.

I am on Arch.

❯ expac '%-30n %v' -s 'espanso'
espanso-gui                    24.7-1
espanso-x11                    2.2.1-4

When launching (using espanso service start --unmanaged) I get a popup: "Incompatibility detected" (see attached image)

Screenshot_2024-07-30-10-57-32_7680x2160

How does espanso detect Wayland?

How can I force Xorg detection?

Thank you in advance

Steps to reproduce

No response

Expected behavior

No response

Screenshots

Screenshot_2024-07-30-10-57-32_7680x2160

Logs

I attach an strace of espanso startup:

strace espanso service start --unmanaged &> espanso.strace.log

espanso.strace.log

Your environment

Arch current

❯ expac '%-30n %v' -s 'espanso'
espanso-gui                    24.7-1
espanso-x11                    2.2.1-4

FYI - I do sometimes use Wayland based compositors and XWayland and they're all installed on my machine. But all of the above is within an i3wm session.

Self-service

smeech commented 2 months ago

How did you install Espanso?

simonm commented 2 months ago

Hi,

I used the package in AUR: espanso-x11.

Installed packages are:

❯ expac '%-30n %v' -s 'espanso' espanso-gui 24.7-1 espanso-x11 2.2.1-4

I start it using: ❯ espanso service start --unmanaged

Let me know if I can provide any additional information to help!

Thank you.

On Tue, Jul 30, 2024 at 12:56 PM Stephen Meech @.***> wrote:

How did you install Espanso?

— Reply to this email directly, view it on GitHub https://github.com/espanso/espanso/issues/2030#issuecomment-2258067917, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAARUZS4HDD3J5IVMKE4B3ZO5WN5AVCNFSM6AAAAABLV5RRPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJYGA3DOOJRG4 . You are receiving this because you authored the thread.Message ID: @.***>

-- Simon Mullis


@.***

simonm commented 2 months ago

I think I know what is the problem here.... I'm migrating back to Xorg / X11 after a few years on Wayland to finally resolve some long running issues in a few different areas. I think one of my config files still had xdg-desktop-portal-* running on startup. This sets a bunch of XDG_ related variables - some of which is Wayland related.

Maybe this is how espanso checks for "wayland-ness". I will find out in a moment when I reboot. I will update this ticket shortly but again: I think this is user error on my part.

By the way - espanso really looks fantastic. Exactly what I've been looking for.

simonm commented 1 month ago

Yes. Confirmed, all is ok now after a reboot. This was caused by an inconsistent environment on my side - not a problem with espanso.

I will close this ticket.

smeech commented 1 month ago

Thank you. Glad you got it sorted out.