Trying to write a short script to capture a screen window using scrot launched via a [DeskTop Entry] icon on the desktop.
The following works fine from the command line in terminal:
Code:
scrot -s /home/john/Pictures/desktop.jpg
]The following does not work in a script:
Code:
#!/bin/bash
scrot -s /home/john/Pictures/desktop.jpg
Tried all sorts of variations and did some searching, but it puzzles me.
As far as I know, PATH and Permissions are correct.
The command line version waits for at least a minute for the cursor to define the required window.
The script takes several seconds to terminate, then nothing.
Very similar scripts to map keyboard keys work fine.
What am I doing wrong ?
John.
Bookmarks