Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I open a dialog box as below from a terminal?

enter image description here

share|improve this question

3 Answers 3

up vote 3 down vote accepted

Install the X11 keyboard/mouse input simulator xdotool and run xdotool key Alt+F2.

You can add this alias to your ~/.bashrc file to make typing easier:

alias rd="xdotool key Alt+F2"

Now all you need to do is type rd.

Hacky, but works.

share|improve this answer

Two options:

  1. Install gmrun from software center with sudo apt-get install gmrun then use command gmrun from the terminal
  2. Compile gnome-run from source and use gnome-run from the terminal. Instructions here: http://bioinfo.cipf.es/dbau/gnome_run.html

Unfortunately this is harder than it should be.

share|improve this answer

I found another way to do it:

  1. Install xautomation Install xautomation package
  2. Run this command: xte 'keydown Alt_L' 'key F2' 'keyup Alt_L'

Thanks htorque for the hint "keyboard/mouse input"

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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