We have moved to a new Sailfish OS Forum. Please start new discussions there.
5

Might action logging & replay be possible?

asked 2014-12-24 22:10:23 +0300

rdmo gravatar image

updated 2015-03-29 15:37:20 +0300

When users wish to do something on the Jolla in several GUI interactions, dbus-monitor can note the actions. I'd like a script that makes a human-readable report and code for users to adapt to their needs. sed should do. Next, then, is to write a parser that turns dbus-monitor output to put forth prosaic human language; descriptive prose with directed graphs.

AutoITscript works for some versions of MS Windows, xmacro for xorg, but none of it is particularly pleasant to read (raw).

Scriptability enables user self-logs to review or report, and to seperate actions that can be undone, revised or stopped from come lete irreversible historical events. This is why Bash and any CLI with history is useful. Fingerterm hasscript and scriptreplay, limited to displayed terminal i/o.

Remorse and Undo could become user preferences, so that the user experience improves further.

edit retag flag offensive close delete

Comments

To what extent is dbus useful to log reversible and irreversible user actions?

rdmo ( 2015-03-25 22:26:09 +0300 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2015-03-29 15:13:51 +0300

r0kk3rz gravatar image

Dbus is used for inter-process communication , and as such things that happen between one process and another can be found caught and replayed through dbus-monitor and dbus-send. Anything that is handled by a single process is unlikely have a dbus interface.

So to answer your question, dbus is of limited usage for what you describe, as there is potentially a lot of things which the user can do which is handled by only one process or app and may not involve dbus at all.

edit flag offensive delete publish link more

Comments

Thanks. Do GUI interactions by the user and other signals get captured by a few different processes (touch, sound, wireless etc) and sent via dbus to target processes?

If this is not the case please help me improve my understanding of what goes on.

rdmo ( 2015-03-29 15:50:54 +0300 )edit

Touch actions themselves don't, but some actions like opening an app do. its a bit of a complicated question to answer really, this thread on TMO is a good place to start.

Other than that, you can watch dbus-monitor via ssh and do some actions in the UI and see what pops up and what doesn't.

r0kk3rz ( 2015-03-29 16:06:13 +0300 )edit

Thanks for the link. The lack of touch events does limit the use of dbus in this case, probably. I think other approaches need consideration.

rdmo ( 2015-03-29 16:17:25 +0300 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2014-12-24 22:10:23 +0300

Seen: 281 times

Last updated: Mar 29 '15