cli/cli

giving message when run any gh commad: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

xkeshav opened this issue · 1 comments

Describe the bug

with Ubuntu V 24.04
Firefox v 125.2

gh version 2.45.0 (2024-03-31 Ubuntu 2.45.0-1build1)
https://github.com/cli/cli/releases/tag/v2.45.0

installed github cli in ubuntu24.04 using

sudo apt install gh

and then try gh auth which works great and now when I try gh browse from my repo; it opens the repo in the browser (Firefox )

but it keep giving this message in terminal

Gtk-Message: 22:13:11.423: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

is there something missing or what I need to do to remove this message.

also does terminal keep open while we run gh browse? how can we just run a command ahcih open repo in browser and complete the command?

Steps to reproduce the behavior

image

Expected vs actual behavior

it shoud not give any error in terminal; do i need to dsiable any flag in browser or what?

@xkeshav : Thanks for opening up this issue, let's see if we can figure out what's going on! 🙇

Have you looked into any of the Ubuntu forums regarding atk-bridge?

I'm not an Ubuntu expert, but what I found from a cursory glance is that atk-bridge is related to Accessibility Toolkit. Apparently other Ubuntu users have run into this issue due to the installation and setup of various packages and GTK with many recommending various environmental overrides up to uninstalling certain packages.

Looking at cli/browser module's Linux support, we try various different potential tools for opening up URLs in your web browser:

  • xdg-open
  • x-www-browser
  • www-browser
  • wslview

Do you have any more information about your workstation setup you can share?

  • Do you have libatk-adaptor package installed?
  • Is GTK_MODULES defined?