Open srosato opened 4 years ago
Adding my comment from Slack here as well: I don't believe gnome-flashback supports this, and since we're not using any other GNOME component that might support it (namely, gnome-shell or mutter) I'm not sure whether it'll be ever be supported
cc @muktupavels (since he's probably the only person that could tell us what's possible or not possible)
Could you test GNOME Flashback session? I think it was supposed to work...
I confirm that on my laptop which has Ubuntu 20.04 LTS with popOS, that installing gnome-session-flashback
and logging in shows the same problem.
If I log back in to the popOS session which I believe uses gnome3 and try the per application feature, it works as intended. So it indeed seems to be related to GNOME Flashback.
I could file an issue on their gitlab project if you guys believe it is associated to this package, just let me know, thanks!
@srosato Please open upstream issue mentioning gnome-flashback version. Also please add steps with how to reproduce problem in GNOME Flashback session including input sources you have added.
I am using Ubuntu development version - 20.10 and have gnome-flashback 3.37.3. I can not reproduce problem!
GNOME has Super + Space
as default shortcut for switching to next input source. How/where it is changed/set to mod+alt+backspace
? What is mod
here?
Hmm strange, because I have the same issue both on my Ubuntu 18.04 with Linux Mint installed on desktop and my popOS Ubuntu 20.04 installed on laptop, both running regolith. I meant super
instead of mod
.
Post output of:
gsettings get org.gnome.desktop.input-sources sources
gsettings get org.gnome.desktop.input-sources xkb-options
gsettings get org.gnome.desktop.input-sources per-window
On laptop:
gsettings get org.gnome.desktop.input-sources sources
>> [('xkb', 'us'), ('xkb', 'ca')]
gsettings get org.gnome.desktop.input-sources xkb-options
>> ['grp:switch', 'lv3:switch', 'grp_led:scroll']
gsettings get org.gnome.desktop.input-sources per-window
>> true
On desktop:
gsettings get org.gnome.desktop.input-sources sources
>> [('xkb', 'us'), ('xkb', 'ca')]
gsettings get org.gnome.desktop.input-sources xkb-options
>> @as []
gsettings get org.gnome.desktop.input-sources per-window
>> true
Someone will need to find what Regolith is changing/configuring that affects this functionality...
Installed Ubuntu 20.04 in VM. Installed all updates. Added ppa:regolith-linux/release. Installed regolith-desktop.
Added few input sources, enabled per-window setting and I can confirm it does not work. Installed GNOME Flashback session and it as not working there too. No idea why it works in Ubuntu session...
Then I tried new user. For some reason it had same input sources that I added for previous user (that was unexpected!!!). Enabled per-window setting and now it works. Then logged in Regolith session, does not work and after that does not work in Flashback session.
So on login Regolith is doing something that breaks functionality in gnome-flashback. It still might be bug in gnome-flashback, but someone will need to find what is causing/triggering this problem first.
Nice finds! Thanks for helping out. Do you still want me to file a bug on the gitlab of gnome flashback? Seems there is a chance it might be related, since trying gnome-flashback alone without Regolith does not seem to work either
If there is something that Regolith is doing during login, it should just be dconf mutation. But, the code in the release PPA is not using the gsettings overrides changes that are present in the stable and unstable repos. I will try and follow @muktupavels test against unstable and see what happens.
I have tested against the unstable
repo on Ubuntu 20.04 and see the error behavior. Meaning, a terminal session and gnome editor session "share" the same input source even if I change it after changing focus from one app to another. I specified the configuration in gnome-settings as directed in the top post to this issue, and installed another language and input source. Then I rebooted and performed the test. (I mention these details because I do not use the multiple language feature in gnome so I may have missed some detail). Here is the code that executes when a regolith session starts: https://github.com/regolith-linux/regolith-gnome-flashback/blob/master/usr/bin/regolith-session-init
All of the xdg desktop files are in the same repo, in case it helps: https://github.com/regolith-linux/regolith-gnome-flashback/tree/master/usr
No need for upstream bug if we don't know what is causing this problem...
Deleted .cache
and .config
dirs, logged out, logged in, re-enabled per-window input sources. Works in GNOME Flashback session. Logged in Regolith session. And looks like it works here too now (tried with 2 terminal windows)! Logout and login, now does not work...
Sorry, I have no time to debug this...
I faced the same issue. Tried to upgrade from 20.04 to 20.10 and the issue persist
I tried to remove .cache dir, rebooted the system, and have the same problem.
gsettings get org.gnome.desktop.input-sources sources
[('xkb', 'us'), ('xkb', 'ru')]
gsettings get org.gnome.desktop.input-sources xkb-options
['grp:caps_toggle']
gsettings get org.gnome.desktop.input-sources per-window
true
gnome-flashback 3.38.0-0ubuntu1
regolith-gnome-flashback 2.6.2-1
regolith-desktop-standard 2.92-1groovy
Also, I tried to use gxkb (I used this one on Arch Linux with i3). I have this behavior
I assume that this bug somewhere in X or in gnome-session. I'll try a couple of other options and come back with results
I hope that helps!
same here, fresh install of Regolith Linux, vanilla config. Works first time around, stops working after next login.
I think I have helpful command for you ;D I issued that for myself, instead of not even working localectl from systemd package. I am too using ubuntu 20.10 ppa on regolith desktop.
And sway 1.5 firefox having flickering on wayland but these not part of regolith or these topic. Well they have 1.5.1 release as well as regolith just updated today with same 1.5.1 bugfix.
I have no even wallpaper or can't open up gnome settings using $mod+c bindkey sym. And I have grey plain color on my desktop. Even sway 1.5 has preconfigured background image like tropic stuff etc. ...;D
The only thing is that its not pre window layout switching why ever these is needed to you lel? Its not convenient to have different layout for each window. Well I think you have to man setxkbmap, maybe they have such functionality. But after these command was issued all kind of switching problems was gone. Just press Alt+Shift and all will be ok. You can man localectl or setxkbmap for more info.
Note that other programs may relay on dbus or some gnome session trash so for me only setxkbmap works I even add these line to my .bashrc file so when I open up console or any terminal it gots issued again for me. You can start it from any script as you wish for work.
setxkbmap -v -option grp:alt_shift_toggle -layout us,ru -model logitech_g15
Please feel free to ignore this if it is not related, but I posted something about setxkbmap behaviour to the Unix Stack Exchange yesterday: Why does setxkbmap on a single device also change other devices?
I did not mention Regolith on there since I thought this was not related.
But I've been confused at how the keyboard layouts are set in Regolith, which led me to this thread, which made me wonder if it's actually a Regolith thing. If it's not a related item to the current discussion, I can file it separately.
Ubuntu version: 20.04.1 LTS Regolith version: 1.5.1
I have the same problem, everything else is perfect.
Ubuntu 21.04, Regolith 1.6
Hope I can help somehow to solve this problem.
This is not really a regolith issue but an i3 issue - as far as I can tell, anyway.
This could help
This is not really a regolith issue but an i3 issue - as far as I can tell, anyway.
This could help
Thank you very much. The closest solution I found so far, but still not working, I wrote to the author, maybe he can help.
Today I installed regolith 2.0 alpha on popOS 22.04 (therefore using Ubuntu 22.04). I was able to switch keyboard layout per application now!
Not the best news for those still on 1.6 with an older OS version, but at least if you decide to move forward you will no longer bring that bug with you.
Describe the bug I have a small issue, not sure its related to regolith and maybe more with gnome. I went on slack and Ken said that maybe it was related to gnome-flashback but he is not sure. I installed regolith-desktop this week on both a fresh install of popOS and my older ubuntu mint mate install (based on 18.04).
On both my popOS/ubuntu 20.04 and Ubuntu 18.04 Mint Mate 19 instances with regolith-desktop installed, I cannot seem to be able to have "per application" keyboard layout. I went into
gnome-control-center > region-and-languages > gear icon near input sources
and checked theallow different sources for each window
. I logged out, rebooted, also tried gnome tweaks, using gsettings, but no matter what I do, if I switch my keyboard layout using the default keyboard shortcutmod+alt+backspace
it switches the layout globally. I have been searching for a couple of hours now on Google and cannot find anything. The setting also stay correctly checked after re-opening gnome-control-center.Only thing I was able to do is
sudo dpkg-reconfigure keyboard-configuration
to configure so I can hold the right-alt key to temporarily switch to latin keyboard. But I'd like the more persistent way of layout per application that gnome offers. My two configured input languages are English (US) and French (CA)gnome-shell version: 3.36.4
Any clues to help me find out whats wrong? Thanks a bunch
To Reproduce Steps to reproduce the behavior: install regolith desktop on a fresh popOS (ubuntu 20.04) or Linux Mate 19 - Ubuntu 18.04 (that uses gnome2, so I expected it to be impossible to have regolith-desktop, but it works like a charm).
Setup two keyboard layouts. Try to switch them with keyboard shortcut on a per application basis.
Expected behavior Each application remembers its keyboard layout
Configuration file(s)
~/.config/regolith/i3/config
was staged with this override:~/.config/regolith/Xresources
was staged:Installation Details
If you could help me diagnose this problem to see if its related to Regolith that would be very helpful! Thank you