Comments (23)
@AucaCoyan should be good to close
from espanso.
OK. That works!! The only problem for me is that I switch layouts :(. I use dvorak and switch to the dvorak layout when I use my laptop keyboard, but my main keyboard is already set to dvorak and uses US as the default layout for the system as it does the conversion for me.
Minor issue in practice. If I have to change the config each time, so be it, but would be nice if it worked :)
Thanks for the help to this point though. It's great to have it working again!!
from espanso.
Some more context... echo $XDG_SESSION_TYPE does return wayland.
from espanso.
Hmmm, this is strange. What does the output of loginctl show-session $(loginctl | grep $(whoami) | awk '{print $1}') -p Type
show? This is the command use to determine what session type is used.
from espanso.
I tried to grab a screen shot of the stuck process in the task bar after starting into wayland but it wouldn't capture it for me. There is a 'W' in a circle and when you hover over it you get a box Espanso sync tool not responding which some times is half red and half yellow if that helps any.
loginctl show-session
Type=wayland
Type=x11
Interesting that there are two perhaps??
from espanso.
The unresponsive window is a separate issue #1776. From the output above it looks like there are two sessions associated with your EUID, one for wayland and one for x11. This explains the message you see when trying to restart espanso.
from espanso.
OK. How? This is a bulk standard KDE Neon install. Could it be the layer allowing x11 apps to run on wayland? Any fixes?
from espanso.
I'm not familiar with KDE, but I don't believe xwayland requires a separate X11 session (it doesn't on my system).
Currently, the code used to determine session type uses the value from the last session listed where there are multiple sessions for the current user.
Are you signing into both Wayland and X11 via the KDE display manager?
from espanso.
Not that I'm aware of. I'm using a Wayland Plasma session at logon from the logon window. Not sure how you could use both, but guess its possible.
from espanso.
Some times it works! I logged in yesterday and espanso worked fine. Today after a reboot.. nope. Must be an order thing I guess, but no clue what.
from espanso.
I just upgraded Neon to the KDE6 release and unfortunately have exactly the same situation. The test for the DM seems to return both X11 and Wayland so it won't start on Wayland (does work on X11).
from espanso.
Hey @pnunn, thinking out loud here. Is it possible the display manager / login starts and uses an X11 session which is not being terminated on login? If so, have you tried terminating this session after logging in to the Wayland session?
from espanso.
Hi @morgan-dgk thanks for this. It is certainly possible and if I had any clue how to find the session and kill it I'd be more than happy to give it a go. Any pointers?
Could it also be something to do with the X-Wayland layer?
from espanso.
Hi @morgan-dgk thanks for this. It is certainly possible and if I had any clue how to find the session and kill it I'd be more than happy to give it a go. Any pointers?
Could it also be something to do with the X-Wayland layer?
Try who -u
to list all users sessions with pid and the do sudo kill -9 <PID for x11 session>
.
I'm not sure on your question re X-Wayland. On my compositor the xwayland does not appear to require an active x11 session.
from espanso.
Any update on this @pnunn?
from espanso.
Hi @morgan-dgk I did have one shot at it but must have killed the wrong session and crashed the entire computer (took a bit to get it back to be honest). Will have another look later today (maybe on another machine) and see what happens. I'll let you know.
from espanso.
Hi @morgan-dgk I've been playing with this again, and the only session I can see any mention of Xorg on is the active one.
ps -aux | grep xorg root 1710 0.2 0.2 2814612 82240 tty2 Ssl+ 10:44 0:00 /usr/lib/xorg/Xorg -nolisten tcp -background none -seat seat0 vt2 -auth /run/sddm/xauth_fiHdYu -noreset -displayfd 16 pnunn 6111 0.0 0.0 6616 2560 pts/1 S+ 10:46 0:00 grep --color=auto xorg
and if I kill tty2 I kill my active session and have to reboot.
Is there a way to force espanso to not check for the X session?
from espanso.
Not as far as I am aware. Based on some quick reading, it seems like you may need to configure sddm to use Wayland as the compositor for the greeter (otherwise it will start an x11 session).
This article from the arch wiki should help.
from espanso.
We seem to be making progress (no idea if it will persist yet). I followed your link and found that there was no sddm.conf.d directory, however, I did do the apply plasma settings bit mentioned in the header of the article, and after issuing the setcap command and restarting espanso, it seems to be running.
I'll try a reboot shortly and see if its still working then or if this is a total fluke.
from espanso.
OK. After a reboot... espanso seems to start OK, and I can see it running, find the version and it pretty much seems right, EXCEPT, it does nothing!!
None of the expansions work. I re-did the setcap command, restarted espanso and still nothing is picked up.
The logs have the following
27 Mar 14 20:49:13 peter-xps157590 espanso[6723]: 20:49:13 [worker(6723)] #033[0m#033[34m[INFO] #033[0mexiting worker process and daemon... 26 Mar 14 20:49:14 peter-xps157590 espanso[6717]: 20:49:14 [daemon(6717)] #033[0m#033[34m[INFO] #033[0mworker requested a general exit, quitting the daemon 24 Mar 14 20:49:16 peter-xps157590 systemd[2514]: Started espanso. 23 Mar 14 20:49:16 peter-xps157590 espanso[7860]: 20:49:16 [daemon(7860)] #033[0m#033[34m[INFO] #033[0mreading configs from: "/home/pnunn/.config/espanso" 22 Mar 14 20:49:16 peter-xps157590 espanso[7860]: 20:49:16 [daemon(7860)] #033[0m#033[34m[INFO] #033[0mreading packages from: "/home/pnunn/.config/espanso/match/packages" 21 Mar 14 20:49:16 peter-xps157590 espanso[7860]: 20:49:16 [daemon(7860)] #033[0m#033[34m[INFO] #033[0musing runtime dir: "/home/pnunn/.cache/espanso" 20 Mar 14 20:49:16 peter-xps157590 espanso[7860]: 20:49:16 [daemon(7860)] #033[0m#033[34m[INFO] #033[0msystem info: KDE neon v22.04 - kernel: 6.5.0-25-generic 19 Mar 14 20:49:16 peter-xps157590 espanso[7860]: 20:49:16 [daemon(7860)] #033[0m#033[33m[WARN] #033[0mkeyboard layout watcher couldn't determine active layout. 18 Mar 14 20:49:16 peter-xps157590 espanso[7860]: 20:49:16 [daemon(7860)] #033[0m#033[34m[INFO] #033[0mwatching for changes in path: "/home/pnunn/.config/espanso" 17 Mar 14 20:49:16 peter-xps157590 espanso[7860]: 20:49:16 [daemon(7860)] #033[0m#033[34m[INFO] #033[0mespanso version: 2.2.1 16 Mar 14 20:49:16 peter-xps157590 espanso[7860]: 20:49:16 [daemon(7860)] #033[0m#033[34m[INFO] #033[0mspawning the worker process... 15 Mar 14 20:49:16 peter-xps157590 espanso[7860]: 20:49:16 [daemon(7860)] #033[0m#033[34m[INFO] #033[0mbinded to IPC unix socket: /home/pnunn/.cache/espanso/espansodaemonv2.sock 14 Mar 14 20:49:16 peter-xps157590 espanso[7866]: 20:49:16 [worker(7866)] #033[0m#033[34m[INFO] #033[0mreading configs from: "/home/pnunn/.config/espanso" 13 Mar 14 20:49:16 peter-xps157590 espanso[7866]: 20:49:16 [worker(7866)] #033[0m#033[34m[INFO] #033[0mreading packages from: "/home/pnunn/.config/espanso/match/packages" 12 Mar 14 20:49:16 peter-xps157590 espanso[7866]: 20:49:16 [worker(7866)] #033[0m#033[34m[INFO] #033[0musing runtime dir: "/home/pnunn/.cache/espanso" 11 Mar 14 20:49:16 peter-xps157590 espanso[7866]: 20:49:16 [worker(7866)] #033[0m#033[34m[INFO] #033[0msystem info: KDE neon v22.04 - kernel: 6.5.0-25-generic 10 Mar 14 20:49:16 peter-xps157590 espanso[7866]: 20:49:16 [worker(7866)] #033[0m#033[34m[INFO] #033[0mbinded to IPC unix socket: /home/pnunn/.cache/espanso/espansoworkerv2.sock 9 Mar 14 20:49:16 peter-xps157590 espanso[7866]: 20:49:16 [worker(7866)] #033[0m#033[34m[INFO] #033[0musing WaylandAppInfoProvider 8 Mar 14 20:49:16 peter-xps157590 espanso[7866]: 20:49:16 [worker(7866)] #033[0m#033[33m[WARN] #033[0munable to determine keyboard layout automatically, please explicitly specify it in the configuration. 7 Mar 14 20:49:16 peter-xps157590 espanso[7866]: 20:49:16 [worker(7866)] #033[0m#033[34m[INFO] #033[0mmonitoring the status of the daemon process 6 Mar 14 20:49:16 peter-xps157590 espanso[7866]: 20:49:16 [worker(7866)] #033[0m#033[34m[INFO] #033[0musing EVDEVSource 5 Mar 14 20:49:16 peter-xps157590 espanso[7866]: 20:49:16 [worker(7866)] #033[0m#033[34m[INFO] #033[0mQuerying modifier status... 4 Mar 14 20:49:16 peter-xps157590 espanso[7866]: 20:49:16 [worker(7866)] #033[0m#033[33m[WARN] #033[0munable to determine keyboard layout automatically, please explicitly specify it in the configuration. 3 Mar 14 20:49:16 peter-xps157590 espanso[7866]: 20:49:16 [worker(7866)] #033[0m#033[34m[INFO] #033[0musing EVDEVInjector 2 Mar 14 20:49:16 peter-xps157590 espanso[7866]: 20:49:16 [worker(7866)] #033[0m#033[34m[INFO] #033[0musing WaylandFallbackClipboard 1 Mar 14 20:49:16 peter-xps157590 kernel: [ 283.247330] input: Espanso virtual device as /devices/virtual/input/input24
I'm not sure if that's of any help at all.
from espanso.
from espanso.
Yeah, wayland provides a mechanism for managing keyboard layout on a per window basis but we're not currently handling this. Would be a good future enhancement!
from espanso.
Thank you! One less issue to think about
from espanso.
Related Issues (20)
- Python throws an error when the clipboard contains newline. HOT 3
- Animated gifs paste incorrectly in certain apps HOT 1
- link to config file/match folder in the taskbar right click menu HOT 7
- espanso periodically stops triggering HOT 1
- The candidate input method is being replaced while typing, not after typing. HOT 5
- Espanso tray Icon is difficult to see with Light color mode (Windows) HOT 2
- Reactive input for filtering files HOT 1
- null
- emoji representation in search bar HOT 4
- Search shortcut: `CMD+F4` key combination not working HOT 3
- Portable Espanso on Windows does not override installed copy HOT 5
- Switching Layouts restarts SyncTool and takes focus HOT 10
- replace multi clipboards HOT 2
- Espanso not triggering on Windows 11 HOT 8
- Cannot cat files without producing some output prior (wayland only) HOT 3
- Espanso not working with Cisco Packet tracer Cli HOT 1
- Getting mixed up output on Windows using 'portet' app HOT 2
- Espanso as App Launcher HOT 3
- espanso does not work on ubuntu 24.04 (noble) HOT 1
- Using the multiline feature will delete all whitespace infront of scond row HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espanso.