Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ibus-Avro is not showing word suggestions in Ubuntu Budgie #166

Closed
razi006 opened this issue Mar 9, 2021 · 25 comments
Closed

Ibus-Avro is not showing word suggestions in Ubuntu Budgie #166

razi006 opened this issue Mar 9, 2021 · 25 comments

Comments

@razi006
Copy link

razi006 commented Mar 9, 2021

I've been using Ibus-Avro for a long time in Ubuntu and Linux Mint. I've switched to Ubuntu Budgie yesterday and facing a problem. I'm highly depended on Bangla typing. So, Ibus-Avro is somewhat essential for me. When I’m typing, it’s not showing word or spell suggestions like it does in Ubuntu. I can’t change the spelling too. And, sometimes, the written words are disappearing when I'm pressing print screen button. What Can I do?

@gunnarhj
Copy link
Contributor

gunnarhj commented Mar 9, 2021

Which version of Ubuntu Budgie?

Asking because Budgie has had big problems with IBus in general previously, and if you are on 20.04 it's important that all your packages are up-to-date:

sudo apt update
sudo apt upgrade

@razi006
Copy link
Author

razi006 commented Mar 9, 2021

Cropped Screenshot from 2021-03-09 22-49-01
Cropped Screenshot from 2021-03-09 22-37-22
Cropped Screenshot from 2021-03-09 22-38-44

Nope. Nothing happened. I'm on 20.04.2 LTS.

@gunnarhj
Copy link
Contributor

gunnarhj commented Mar 9, 2021

Ok. In any case it seems to be an Ubuntu Budgie specific problem, so I suppose you should better report it to the developers of that distro:

https://github.com/UbuntuBudgie/budgie-desktop/issues

@razi006
Copy link
Author

razi006 commented Mar 9, 2021

Okay

@fossfreedom
Copy link

@gunnarhj sorry - we (UB) have zero knowledge in this area - no idea about how to debug, nor how ibus-avro works.

@sarim
Copy link
Owner

sarim commented Mar 9, 2021

@razi006 so suggestion window isn't appearing but you can write bangla?

@fossfreedom
Copy link

All - this all sounds like gobbledegook to me (only an english user here I'm afraid).

I found this on the upstream budgie issue tracker - maybe related? solus-project/budgie-desktop#729 (comment)

I also found this in the upstream ibus issue tracker ibus/ibus#2038

Again - none of this makes any sense to me since ibus is a mystery to me.

@razi006
Copy link
Author

razi006 commented Mar 9, 2021

@razi006 so suggestion window isn't appearing but you can write bangla?

I can write... but can't do it properly. Like I'm trying to write 'ki' with ঈ, but it's appearing as 'কই'!! Usually, I fix this kind of problem with suggestion box. But without it...

@sarim
Copy link
Owner

sarim commented Mar 9, 2021

Well up until receiving this issue's notification, I had no idea what "budgie" was either, not sure I fully do now either. "Ubuntu Budgie", "Budgie-Desktop", "Solus-Project" are those different projects? This seems like the distro/DE isn't launching ibus-panel. Which makes it a bug of that DE/distro and should be reported there. If I were making a gnome based desktop environment or linux distribution, making sure ibus is running properly oob would be a top priority task to me :P

@razi006 I would suggest exploring the issue links @fossfreedom posted above. As its not a issue of ibus-avro project, I'm going to close this. Feel free to continue the discussion about any workaround :)

@sarim sarim closed this as completed Mar 9, 2021
@gunnarhj
Copy link
Contributor

gunnarhj commented Mar 9, 2021

@razi006: Can you please describe the steps you took to set up ibus-avro?

I'm asking because Budgie is a bit special. It's a GNOME like desktop environment, but without gnome-shell. So Avro Phonetic should be added in Settings, just as on GNOME (i.e. not via ibus-setup), but unlike 'true GNOME' you also need to add the Keyboard Layout applet in Budgie Desktop Settings.

@razi006
Copy link
Author

razi006 commented Mar 9, 2021

Well up until receiving this issue's notification, I had no idea what "budgie" was either, not sure I fully do now either. "Ubuntu Budgie", "Budgie-Desktop", "Solus-Project" are those different projects? This seems like the distro/DE isn't launching ibus-panel. Which makes it a bug of that DE/distro and should be reported there. If I were making a gnome based desktop environment or linux distribution, making sure ibus is running properly oob would be a top priority task to me :P

@razi006 I would suggest exploring the issue links @fossfreedom posted above. As its not a issue of ibus-avro project, I'm going to close this. Feel free to continue the discussion about any workaround :)

I've tried it. But, after running ibus-daemon -r -d i got stuck with Bangla and couldn't turn back to English.

@razi006
Copy link
Author

razi006 commented Mar 9, 2021

@razi006: Can you please describe the steps you took to set up ibus-avro?

I'm asking because Budgie is a bit special. It's a GNOME like desktop environment, but without gnome-shell. So Avro Phonetic should be added in Settings, just as on GNOME (i.e. not via ibus-setup), but unlike 'true GNOME' you also need to add the Keyboard Layout applet in Budgie Desktop Settings.

I installed it from Synaptic Package Manager. Then added it from here...
Cropped Screenshot from 2021-03-10 01-11-31

@gunnarhj
Copy link
Contributor

gunnarhj commented Mar 9, 2021

I installed Ubuntu Budgie 20.04.2 in a VM, and can reproduce the issue with no suggestion window.

GNOME integrates IBus, and starts and configures it automatically if IBus is installed. For that reason (and to avoid very frequent crashes) we recently changed im-config so it doesn't do anything in case of IBus on a GNOME desktop. Since Budgie is GNOME like, and claims to be GNOME through the XDG_CURRENT_DESKTOP environment variable, we did the same for Budgie (see for instance the Ubuntu bug #1901460).

GNOME (including Budgie) starts IBus through this command:

ibus-daemon --panel disable --xim

However, as @sarim pointed out, that --panel disable thing prevents the suggestion window from showing up on Budgie (while it works as expected on 'true GNOME' with gnome-shell). And it does so not only for ibus-avro but for other IBus input methods as well (I saw the same issue with ibus-libpinyin). And it's not only Ubuntu Budgie; I see the same thing on Debian in a Budgie session.

So @fossfreedom, I'd say that this is an upstream Budgie issue. Using the same command for starting IBus as is used on GNOME seems to be wrong. Budgie should probably use:

ibus-daemon --daemonize --xim

At least that would be one way to deal with the issue.

It would be possible to work around the issue (again) on Debian/Ubuntu via im-config, but TBH I'm really disinclined to do that. The issue seems to be upstream in nature, and affects not only Debian/Ubuntu.

@razi006: To work around the issue and fix it for yourself on 20.04 right now, you can open the /usr/share/im-config/data/21_ibus.rc file for editing and change these lines:

if is_gnome; then
    return
fi

to

#if is_gnome; then
#    return
#fi

(i.e. comment those lines). Then, after next reboot, you will hopefully see the suggestion window.

@fossfreedom
Copy link

fossfreedom commented Mar 9, 2021 via email

@sarim
Copy link
Owner

sarim commented Mar 9, 2021

Thanks a lot @gunnarhj for doing the deep dive. You weren't kidding when (in a previous thread) you said you don't give up easy. :D

Using the same command for starting IBus as is used on GNOME seems to be wrong. Budgie should probably use:

Or maybe they can provide their own ibus panel that visually meshes well with their DE. At some point I wanted to make a ibus panel myself, probably will do long long future.

@fossfreedom
Copy link

fossfreedom commented Mar 9, 2021 via email

@gunnarhj
Copy link
Contributor

gunnarhj commented Mar 9, 2021

Maybe best to just suggest the modified start command for now to make it work. (Assuming that creating a Budgie specific ibus panel might take some time...)

@sarim
Copy link
Owner

sarim commented Mar 9, 2021

Yeah, fixing the start command to use ibus's panel is the way to go. As I said, I don't know much about budgie. But from the quick google search it seems like they were trying to implement a different visual style than of gnome-shell's? So I thought if ibus's default panel doesn't visually meshes well with budgie then they can make their own. I believe source for ibus panel is https://github.com/ibus/ibus/tree/master/ui/gtk3.

@gunnarhj
Copy link
Contributor

gunnarhj commented Mar 9, 2021

I believe source for ibus panel is https://github.com/ibus/ibus/tree/master/ui/gtk3.

Looks like I was the one who last changed a file in that directory. :) (Which doesn't mean that I would have a clue on how to make an alternative panel.)

@sarim
Copy link
Owner

sarim commented Mar 9, 2021

Last time I checked (years ago), by reading ibus documentation, the description of events were clear enough, (or so I thought). Also creating the whole ui from scratch would be a daunting task, that folder contains quite a bit of related stuff. I just want to rewrite the widget that shows up as "suggestion words".

@razi006
Copy link
Author

razi006 commented Mar 10, 2021

I installed Ubuntu Budgie 20.04.2 in a VM, and can reproduce the issue with no suggestion window.

GNOME integrates IBus, and starts and configures it automatically if IBus is installed. For that reason (and to avoid very frequent crashes) we recently changed im-config so it doesn't do anything in case of IBus on a GNOME desktop. Since Budgie is GNOME like, and claims to be GNOME through the XDG_CURRENT_DESKTOP environment variable, we did the same for Budgie (see for instance the Ubuntu bug #1901460).

GNOME (including Budgie) starts IBus through this command:

ibus-daemon --panel disable --xim

However, as @sarim pointed out, that --panel disable thing prevents the suggestion window from showing up on Budgie (while it works as expected on 'true GNOME' with gnome-shell). And it does so not only for ibus-avro but for other IBus input methods as well (I saw the same issue with ibus-libpinyin). And it's not only Ubuntu Budgie; I see the same thing on Debian in a Budgie session.

So @fossfreedom, I'd say that this is an upstream Budgie issue. Using the same command for starting IBus as is used on GNOME seems to be wrong. Budgie should probably use:

ibus-daemon --daemonize --xim

At least that would be one way to deal with the issue.

It would be possible to work around the issue (again) on Debian/Ubuntu via im-config, but TBH I'm really disinclined to do that. The issue seems to be upstream in nature, and affects not only Debian/Ubuntu.

@razi006: To work around the issue and fix it for yourself on 20.04 right now, you can open the /usr/share/im-config/data/21_ibus.rc file for editing and change these lines:

if is_gnome; then
    return
fi

to

#if is_gnome; then
#    return
#fi

(i.e. comment those lines). Then, after next reboot, you will hopefully see the suggestion window.

Cropped Screenshot from 2021-03-10 13-10-35

@archisman-panigrahi
Copy link
Contributor

@fossfreedom Once this is fixed upstream, please consider if this patch can be backported to Ubuntu Budgie 20.04 as a release in focal-updates. That would help thousands of LTS users type non-Latin scripts without upgrading their Ubuntu version.

@gunnarhj Thank you for spending so much time helping so many people worldwide to type their native scripts conveniently.

@fossfreedom
Copy link

fossfreedom commented Mar 10, 2021 via email

@gunnarhj
Copy link
Contributor

@razi006: Try this:

gedit admin:///usr/share/im-config/data/21_ibus.rc

@gunnarhj
Copy link
Contributor

@fossfreedom wrote:

Certainly this will be backported to both 20.04 and 20.10 Ubuntu Budgie
once accepted by upstream and I will try to get it into Debian as well.

I think Debian unstable is a bit urgent, since "Hard Freeze" for Debian 11 happens the day after tomorrow, and the autopkgtest is trivial.

Maybe it's motivated to patch it there now based on your PR, even if it's not yet committed upstream. They won't likely reject your PR. The only thing I can think of is that they might find the --daemonize option redundant, but OTOH it doesn't hurt AFAICT. And UbuntuBudgie/budgie-desktop#65 is there already and can be reopened. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants