Follow on question - running a program as root lazarus / 1-Linux ---------------------------------------------------------------------- xircon · 2010-03-14 08:47 OK...... Code: [Select]S := fpsystem ('/usr/lib/kde4/libexec/kdesu konsole'); works, but Code: [Select]S := fpsystem ('/usr/lib/kde4/libexec/kdesu konsole -e /home/steve/update'); doesn't.  It runs from a run box fine. update script contains: Code: [Select]#!/bin/bash clear && urpmi.update -a && urpmi --auto-select -v Nearly 30 years since I last programmed in Pascal, it is not exactly flooding back . But its coming along: (http://i367.photobucket.com/albums/oo118/xircon/rootutils1.png) ---------------------------------------------------------------------- xircon · 2010-03-14 15:19 After a few hours of trial and (mainly) error: Code: [Select]S := fpsystem ('/usr/lib/kde4/libexec/kdesu '+'"konsole -e /home/steve/update"'); Works!! Kdesu requests password, Konsole opens and it runs the script.