flathub / com.valvesoftware.Steam

https://flathub.org/apps/details/com.valvesoftware.Steam
338 stars 69 forks source link

ibus support for Games like Dota 2, CS:GO and possibly others. #934

Open SaladinAyyub opened 2 years ago

SaladinAyyub commented 2 years ago

Gnome uses ibus as the default input method and games like CS:GO, Dota 2 and many others work perfectly with native steam/ibus.

Other flatpaks like Webcord, Spotify, Lunar Client (Minecraft) works flawlessly with ibus-anthy (For Japanese input). the flatpak does have fcitx support but many people simply prefer whats default and ibus works with other flatpaks as well.

How to test

Testing this with a gnome system is easy simply going to Settings-> Keyboard -> Input Sources and add a different input method you may need ibus-anthy or other package depending on the language you want, Fedora comes with these packages by default. Select the desired input method and start typing in various games. The one I know works is Dota 2. The ingame chat works in both the party chat and in game chats. The default key for switching I think should be Super + Space

Expected result - ibus input methods should work depending on the desired language.

Current result - It stays english the input method doesn't work.

Screenshot from 2022-08-05 14-08-28

csc-chicken commented 1 year ago

Oh !! accidentally found your issue. Use fcitx5 instead!! I also had problems with ibus when i use line(popular chat app in Japan and my home Taiwan ) in wine .Fcitx5 will fix it just as line I think. Afterwards ,remember to go to language setting to let input method set as fcitx5

csc-chicken commented 1 year ago

It's an old problem in Chinese in Mandarin Ubuntu forum(for 2 years I think). seems like ibus and fcitx see space and enter event differently when you type so ibus does not work." It's a feature, not a bug" I guess.

SaladinAyyub commented 1 year ago

It's an old problem in Chinese in Mandarin Ubuntu forum(for 2 years I think). seems like ibus and fcitx see space and enter event differently when you type so ibus does not work." It's a feature, not a bug" I guess.

Its a bug as steam installed through native package manager seems to be working just fine.. even inside a distrobox container..

Also other apps from flatpak are working with ibus.. so I think this flatpak needs some permission or some package in order to support the same..

csc-chicken commented 1 year ago

Oh! I mean ibus won't work with wine apps. Ibus by design will not work well in wine, most of the game on steam now runs through proton which also a version of wine. CS:GO etc has native linux version will not have this issue. You can see it to believe it when you install notepad++ in a wine prefix and test with ibus and fcitx5.

SaladinAyyub commented 1 year ago

Oh! I mean ibus won't work with wine apps. Ibus by design will not work well in wine, most of the game on steam now runs through proton which also a version of wine. CS:GO etc has native linux version will not have this issue. You can see it to believe it when you install notepad++ in a wine prefix and test with ibus and fcitx5.

Thanks for the response.. I have been using fcitx5-mozc I will test it in a week time in different games.. lets see if it works..

csc-chicken commented 1 year ago

@shuriken1812 good news yesterday I test notepad++ on zorin os with native wine 6.0.3 and bottles soda version 7.0.8 ibus works well!! Seems like some bug are fixed. As for gaming fcitx5 may be a better bet but it's good chance that ibus will work now instead of last year around September. I tested Ibus around that time and wine apps was not working.

csc-chicken commented 1 year ago

By the way Steam contribute a lot including input method with SteamDeck UI 3.3 . We should thank them for great support. Gaben is and always a Lord!!

SaladinAyyub commented 1 year ago

By the way Steam contribute a lot including input method with SteamDeck UI 3.3 . We should thank them for great support. Gaben is and always a Lord!!

Yep there are improvements made.. And I am aware ibus works with few games like Dota 2 but only with native steam package and not with this flatpak package so thats where the bug is.. you can try adding notepad++ as a non steam game on flatpak Steam..

On My system Fcitx5-mozc is working great both with native and flatpak steam. But this issue should be open for ibus compatibility in flatpak.. @csc-chicken thanks for the suggestion.

howyay commented 1 year ago

As of time of writing this, neither fcitx and ibus (with rime, specifically) works on flatpak Steam for me. Is it still working fine for you two? @shuriken1812 @csc-chicken

Sorry for the confusion, I wasn't aware of the upstream issue with CJK inputs with Steam and mistaken that for this issue, which are not the same problem.

SaladinAyyub commented 1 year ago

As of time of writing this, neither fcitx and ibus (with rime, specifically) works on flatpak Steam for me. Is it still working fine for you two? @shuriken1812 @csc-chicken

I haven't tried IME since some time, fcitx should work tho as I do remember it working.. atleast on few games. With steam itself IMEs dont work sadly.