View Single Post
Old 06-14-2013, 03:37 AM   #5
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
awesome's Lua core API has a function "exec" which will do what it indicates - a call to exec(), thus replacing its process by another. I think upstart shouldn't get in the way here since the PID is still claimed by the new process, i.e. it seems to be still running.

As of how to make awesome execute this command - it has a DBus interface. I can't look right now if the Kindle ships the awesome-client binary which is a wrapper that will issue DBus calls to the running awesome instance. Otherwise, you would need to make up the DBus call yourself.

The awesome source code is a bit sprinkled over many files but still quite readable.

That said, I don't know if Amazon made some bigger modifications.
hawhill is offline   Reply With Quote