I had asked another question which is related. I know that I can invoke lg (looking glass) via the gnome-shell "run application" window (by pressing Alt+F2). What I'd like to know is how to do this from a command line?

For example, if I wanted to pop up the looking glass from a shell script, how would I do it?

(my other question)


You can use the following command to launch looking glass from a terminal or keyboard shortcut:

gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Main.lookingGlass.toggle();'

When you get in DE, you can't use keyboard shortcut to run "looking glass", you have to use ALT+F2 to run it at first time.


Looking glass is built into gnome-shell and the command for looking glass is lg

Currently it can be run from gome shell by typing Alt+F2 and then typing lg in the dialog box.

I will see of I can find a better solution.

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.