Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/etrace: add --use-flatpak-run option to exec #41

Merged
merged 2 commits into from
Apr 2, 2021

Conversation

anonymouse64
Copy link
Contributor

Needs to be researched a bit for the file command, but it works well for the
exec command using the automatic classname option with xdotool.

Also add a corresponding option for --classname.

Example output with a flatpak:

$ ./etrace exec --use-flatpak-run --no-trace org.gabmus.whatip
Total startup time: 1.596067141s
Gdk-Message: 17:49:30.377: org.gabmus.whatip: Fatal IO error 0 (Success) on X server :99.0.

It still needs some love when it comes to tracing, as it just outputs /bin/sh for some reason right now:

$ ./etrace exec -f org.gabmus.whatip

Gdk-Message: 17:49:08.685: org.gabmus.whatip: Fatal IO error 0 (Success) on X server :99.0.

1 exec calls during snap run:
     Start  Stop   Elapsed      Exec
     0      19078  19.078016ms  /bin/sh
Total time:  2.246505976s
Total startup time: 2.233035943s

Updates #25

This is useful for i.e. flatpaks which will mostly(?) have class names defined.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
Needs to be researched a bit for the file command, but it works well for the
exec command using the automatic classname option with xdotool.

Also add a corresponding option for --classname.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
@anonymouse64 anonymouse64 merged commit 6582874 into master Apr 2, 2021
@anonymouse64 anonymouse64 deleted the feature/exec-flatpak-support branch April 2, 2021 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant