sarim / ibus-avro

Avro phonetic bangla typing layout for ibus
Mozilla Public License 2.0
240 stars 92 forks source link

ibus-avro not working #197

Closed abirabedinkhan closed 2 years ago

abirabedinkhan commented 2 years ago

ibus-avro isn't working on my kali machine. It actually switches to Avro phonetic but it still writes in English.

gunnarhj commented 2 years ago

Please run

env | grep -E 'XMOD|_IM'

and let us know what that command outputs.

archisman-panigrahi commented 2 years ago

May or may not be relevant to the issue, but Kali Linux has a lot of essential background processes disabled, which makes it hard to perform regular tasks in it (It is not meant to be used as a general purpose desktop operating system).

Please see https://unix.meta.stackexchange.com/questions/5360/why-is-kali-linux-so-hard-to-set-up-why-wont-people-help-me and https://unix.meta.stackexchange.com/questions/5360/why-is-kali-linux-so-hard-to-set-up-why-wont-people-help-me#comment10172_5360

abirabedinkhan commented 2 years ago

Please run

env | grep -E 'XMOD|_IM'

and let us know what that command outputs.

┌──(abirabedinkhan㉿code)-[~]
└─$ env | grep -E 'XMOD|_IM'

QT_IM_MODULE=ibus
XMODIFIERS=@im=ibus
gunnarhj commented 2 years ago
QT_IM_MODULE=ibus
XMODIFIERS=@im=ibus

That should be sufficient provided that you use the GNOME desktop. Otherwise this is needed too:

GTK_IM_MODULE=ibus
abirabedinkhan commented 2 years ago
QT_IM_MODULE=ibus
XMODIFIERS=@im=ibus

That should be sufficient provided that you use the GNOME desktop. Otherwise this is needed too:

GTK_IM_MODULE=ibus

Yes, I am gnome-desktop.

abirabedinkhan commented 2 years ago

But Avro is working inside the search light gnome-shell app. But it's not working outside of it

gunnarhj commented 2 years ago

Then it's not an ibus-avro issue, but it's all about how ibus itself plays with GNOME on your OS. I would test with setting GTK_IM_MODULE explicitly anyway.

abirabedinkhan commented 2 years ago

How can I set GTK_IM_MODULE=ibus

archisman-panigrahi commented 2 years ago

See "Set environment variable globally". https://fedingo.com/how-to-set-environment-variable-in-ubuntu/

abirabedinkhan commented 2 years ago

It also not working in ubuntu...

abirabedinkhan commented 2 years ago
➜  ~ $GTK_IM_MODULE                 
Usage: ibus COMMAND [OPTION...]

Commands:
  engine          Set or get engine
  exit            Exit ibus-daemon
  list-engine     Show available engines
  watch           (Not implemented)
  restart         Restart ibus-daemon
  version         Show version
  read-cache      Show the content of registry cache
  write-cache     Create registry cache
  address         Print the D-Bus address of ibus-daemon
  read-config     Show the configuration values
  reset-config    Reset the configuration values
  emoji           Save emoji on dialog to clipboard
  help            Show this information
➜  ~ $GTK_IM_MODULE engine          
xkb:us::eng
➜  ~ sudo $GTK_IM_MODULE engine ibus

(process:50800): IBUS-CRITICAL **: 18:32:05.174: ibus_bus_set_global_engine: assertion 'IBUS_IS_BUS (bus)' failed
Set global engine failed.
gunnarhj commented 2 years ago

Please understand that your issue is not with the ibus-avro plugin itself. It's about the configuration of your Kali Linux system, which nobody here seems to know enough about.

Take a look again at @apandada1's comment about Kali Linux. The fact that you need to ask these questions indicates that Kali Linux is not a good choice of OS for you.

archisman-panigrahi commented 2 years ago

I also not working in ubuntu...

Not sure what you meant. ibus-avro works just fine in Ubuntu, its official flavors, and Mint. This issue can be closed, since it is not specific to ibus-avro (@sarim).

abirabedinkhan commented 2 years ago

after @apandada1 recommendation I replace kali with ubuntu. But still I bus-avro isn't working. https://prnt.sc/Y-43ZtaSIF3x

gunnarhj commented 2 years ago

Which guide for installing and setting up ibus-avro did you follow?

abirabedinkhan commented 2 years ago

I did it before on a ubuntu machine before and it worked.

sudo apt-get install ibus-avro

I ran this command and added language from keyboard settings Bangla (Avro Phonetic)

gunnarhj commented 2 years ago

As a test, can you try with some other IBus engine, for instance ibus-libpinyin?

abirabedinkhan commented 2 years ago

it's working again. I just reinstall ibus and ibus-avro