Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.