On Sun, 23 Aug 2009 10:20:08 +0200
[email protected] wrote:

> Is there any chance to start guvcview with user rights AND to give the
> application higer priorities so that whatever guvcview wants from the
> system will be served as soon as possible to avoid stuttering videos?

You can create a simple script, say, /usr/local/bin/capture and give
permissions to lauch it as root via sudo.

Script might be one-liner like

  #!/bin/sh
  exec nice -n -10 ionice -c 1 capture-command

and sudo line might look like this:

  user ALL=(root) NOPASSWD: /usr/local/bin/capture

NOPASSWD here means that you just have to type
'sudo /usr/local/bin/capture' to run the script as root, no questions
asked.

-- 
Mike Kazantsev // fraggod.net

Attachment: signature.asc
Description: PGP signature

Reply via email to