Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Where I work, we have 2 public Ubuntu computers. I want to set up a custom message to be prompted whenever the user opens Firefox.

share|improve this question
Use can set Firefox's homepage to a local page created by you to say whatever you want. This page can be made to look like a disclaimer page with a continue/accept/etc. link that continues on to wherever you want. – James Nov 17 '12 at 16:17

James is correct, however if you wanted an actual pop-up box:

First, make a new file somewhere called, make sure to create it as your user. e.g. /home/username/

Inside it put

zenity --warning --text="MESSAGE"

Where MESSAGE is the text you want to show them.

Then in terminal

sudo chmod 755 /home/username/

This allows all to execute the file, but only user to edit it. If you want only root to be able to edit the file change 755 to 555

Now in terminal type

sudo gedit /usr/share/applications/firefox.desktop


Exec=firefox %u


Exec=/home/username/ %u

Now, if you launch firefox from the sidebar or desktop etc, it will show the message, then open firefox after you close the message.

Also, for more options with zenity to edit the popup message,

man zenity

p.s. I'm not sure if a two part command can be put after Exec=, if anyone with more experience could verify, might be able to skip creating the .sh file.

share|improve this answer

Your Answer


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.