0

When I click on the wrench under the cursor in the image below, then navigate to bluetooth the settings page for bluetooth is correctly populated. My understanding has been that the way to mimic the mouse click from the command line is to type gnome-control-center bluetooth. But when I do that, the GUI says: no bluetooth found. So the mouse click must be doing something different, i.e., either it's opening a different program or it's opening gnome-control-center with some flag. Could somebody advise please how to correctly mimic from the command-line the mouse-click on the wrench? Thanks very much for any suggestions.

Ubuntu wrench

0

OS: Ubuntu 18.04

This command mimics the one you have asked.. but only drawback is the window is not active..

gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "Shell.AppSystem.get_default().lookup_app('gnome-control-center.desktop').activate()"

enter image description here


enter image description here

enter image description here


For fvwm session.. the only option I came across is to install the package blueman

sudo apt install blueman

enter image description here

  • Thanks very much for this @PRATAP. It works perfectly in the ubuntu desktop, but I'm actually using fvwm. In that environment, none of the keyboard shortcuts work for some reason. So I tried simply sourcing the command string you provided, and got this error message: Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Shell was not provided by any .service files Can you suggest a way to proceed? – Leo Simon 2 days ago
  • Hi.. What is your 0S and how to install fvwm? – PRATAP 2 days ago
  • I'm using ubuntu 18.04. fvwm is pretty easy to install: ` sudo apt -y install fvwm` Once you've installed it, when you restart and get back to the login page, there will be a drop-down menu giving you the option of choosing fvwm or ubuntu etc. This is a pretty good guide: zensites.net/fvwm/guide/index.html – Leo Simon 15 hours ago
  • Hi thanks for info.. Seems it out of my knowledge.. I tried it.. I installed and saw if I can.. But no. I Suggest you to edit your Q and include the info that u want to bring settings dialogue from fvwm. Thanks – PRATAP 5 hours ago

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.