Super User is a question and answer site for computer enthusiasts and power users. 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

I've been trying to add a gnome-screenshot launcher to cairo dock. I would like it to generate a random filename and save the screen after I've selected the screengrab area.

These are the 2 commands I have been trying:

    name=$RANDOM && gnome-screenshot -a --file=/home/user/Desktop/$name     
    gnome-screenshot -a --file=/home/user/Desktop/$RANDOM   

Both work through a terminal, and also work from the cairo dock as long as I am not trying to randomize the filename.. I can only assume the error is with $RANDOM, OR Have I overlooked something in the dock itself? I don't really know where to start here, the command appears to work fine unless it's used as a quick launch from the dock. God I hate asking questions like this, but here goes:
Does anybody know where I am making the mistake? I'd very much like to get around this..
- Thanks in advance

share|improve this question

You must log in to answer this question.

Browse other questions tagged .