How to Restart Chromium from the Command Line?

3,061 views
Skip to first unread message

George Ioakimedes

unread,
Feb 14, 2013, 10:36:50 AM2/14/13
to chromium...@chromium.org
I'm running Chromium (24.0.1312.56 Ubuntu (24.0.1312.56-0ubuntu0.12.10.3) on Intel Atom with GMA3150 running Lubuntu 12.10. In a startup script I launch chromium with the --kiosk switch. This will be used off-line as a kiosk with all pages stored locally. I've written a udev script that when a "special" thumb drive is inserted the files for the web content can be updated by copying them over to the system. 

I've been trying to shutdown Chromium using killall -9 chromium-browser but that throws a "he's dead jim" error on the next launch. If I search for the first PID running matching chromium that doesn't throw that error but it seems like it doesn't gracefully close Chromium (as opposed to using alt-F4 but the system won't have a keyboard nor do I want to allow customers to close the browser). Basically what's the equivalent of alt-F4 from the command line?

What I'm trying to do in my script is the following:

1) Detect the special thumb drive insertion
2) Play a "Please stand-by ..." video full screen
3) close Chromium
4) copy new files
5) launch Chromium
6) kill "Please stand-by ..." video

I had another thought this morning that perhaps there's a way of to tell Chromium to switch to a different page from the command line? If I could do that I could have Chromium play the stand-by video and wen done switch back to the newly updated index.html page

Anyone have some good ideas??

Thanks,
George

Christian Biesinger

unread,
Feb 14, 2013, 2:42:07 PM2/14/13
to georg...@gmail.com, chromium...@chromium.org
Perhaps you could try combining xwininfo -name with xkill?

-christian
> --
> --
> Chromium Discussion mailing list: chromium...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-discuss
>
>
>
Reply all
Reply to author
Forward
0 new messages