Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

Target is building a Linux box, using X, to display commercials (there is a movie in background played by mplayer) and applets (like newsticker, delivered as web apps working locally).

I have startup program for the apps, which goes like this (startapps.sh) :

cd /opt/re/scripts

export DISPLAY=":0.0"

XPARA=`/bin/xrandr | awk 'BEGIN { FPAT="[0-9]+"; } / connected / { print $2 " " $3; }'`


        APPLIST=`ls $APPDIR`

        for APP in $APPLIST
                APPSIZE=`./appsize.php $XPARA $APP`
                APPPOS=`./appsize.php $XPARA $APP 1`
                /bin/screen -d -m /bin/sudo -u rsu /bin/chromium-browser --disable-audio --disable-sync --disable-glsl-translator --disable-translate --disable-web-security --disable-java $APPSIZE --app="$APPURL" &>/dev/null &
                /bin/sleep 1
                /bin/xdotool search --name $APP windowmove $APPPOS

Comments: sudo was made to run without terminal already, the screen -d -m approach is a current experiment, it does not work regardless if use screen or not

This script WORKS!

And then I have systemd service to allow start/stop/reload of this, which goes like this

Description=OTDE Applets

ExecStop=/bin/xdotool search --onlyvisible --class chromium windowfocus key alt+F4
ExecReload=/bin/xdotool search --onlyvisible --class chromium windowfocus key ctrl+F5


But running this via the service DOES NOT work.

In short

  • /path/startapps.sh works, the browser window comes up and gets positioned on display

  • service otde-applets start does not work, google chrome outputs the same information on console (whatever it would be) but does not finally show anything on monitor

service otde-applest status gives:

Redirecting to /bin/systemctl status  otde-applets.service
otde-applets.service - OTDE Applets
          Loaded: loaded (/opt/re/services/otde-applets.service; disabled)
          Active: failed (Result: exit-code) since Tue 2013-03-26 22:48:26 CET; 12min ago
         Process: 1951 ExecStart=/opt/re/scripts/startapps.sh (code=exited, status=1/FAILURE)

Mar 26 22:48:25 localhost.localdomain systemd[1]: Starting OTDE Applets...
Mar 26 22:48:25 localhost.localdomain sudo[1961]: root : TTY=pts/1 ; PWD=/opt/re/scripts ; USER=rsu ; COMMAND=/bin/chromium-browser --disable-audio --disable-sync --disable-glsl-translator --disable-trans...ets/newsticker/
Mar 26 22:48:26 localhost.localdomain systemd[1]: otde-applets.service: control process exited, code=exited status=1
Mar 26 22:48:26 localhost.localdomain systemd[1]: Failed to start OTDE Applets.
Mar 26 22:48:26 localhost.localdomain systemd[1]: Unit otde-applets.service entered failed state

Thse "status 1" comes out of the xdotool not being able to locate the chrome window

I looked at various log files, tried to remove the &>/dev/null to see some more commentary, but unfortunaltely no hints there. Any help or suggestions appreciated.

share|improve this question
found this in dmesg: [ 2542.538200] SELinux: initialized (dev proc, type proc), uses genfs_contexts [ 2542.945854] chromium-browse[3454]: segfault at 0 ip 00007fe703536ff0 sp 00007fffa9587200 error 4 in chromium-browser[7fe702efe000+4646000] [ 2556.909622] SELinux: initialized (dev proc, type proc), uses genfs_contexts [ 2557.306593] chromium-browse[3542]: segfault at 0 ip 00007f4bec8beff0 sp 00007fffdc771040 error 4 in chromium-browser[7f4bec286000+4646000] will try to disable selinux – January Piwoniusz Mar 26 '13 at 22:22
disabling SE linux did not solve the problem – January Piwoniusz Mar 26 '13 at 22:40

Your Answer


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

Browse other questions tagged or ask your own question.