After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 673767 - app-usage: Turn into a real API
app-usage: Turn into a real API
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-04-09 07:30 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2018-07-13 19:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
app-usage: Remove crufty old "context"s idea (21.29 KB, patch)
2012-04-09 07:30 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
app-usage: Make ShellAppUsageData into a public boxed type (8.42 KB, patch)
2012-04-09 07:30 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
app-usage: Remove unused open-window-count attribute (2.00 KB, patch)
2012-04-09 07:30 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
app-usage: Remove more unused things (1.53 KB, patch)
2012-04-09 07:30 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review

Description Jasper St. Pierre (not reading bugmail) 2012-04-09 07:30:30 UTC
Extensions may want to use the app-usage data to do interesting things,
without having to parse the XML file themselves.
Comment 1 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:30:32 UTC
Created attachment 211613 [details] [review]
app-usage: Remove crufty old "context"s idea

Back in the day, there was a proposed system of tracking apps in a specific
context. The inspiration was that you may have used apps in multiple modes:
Firefox may have been used in both "Programmer Reference" and "Kitten Videos"
contexts. Early user response to the feedback wasn't too positive -- context
switching is something that humans have trouble doing implicitly, let alone
explicitly. The old codebase still has a few remnants of this around; let's
finally put them to rest.

Note that we still write out a dummy context tag to the XML file -- old
versions of the shell will flat out crash if you don't have one of those
in there, so just leave it in for compatibility sake.
Comment 2 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:30:35 UTC
Created attachment 211614 [details] [review]
app-usage: Make ShellAppUsageData into a public boxed type

Add a public accessor to get the raw usage data, as well.
Comment 3 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:30:38 UTC
Created attachment 211615 [details] [review]
app-usage: Remove unused open-window-count attribute

Since this has already been unused and was inaccessible, this shouldn't
matter too much.
Comment 4 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:30:41 UTC
Created attachment 211616 [details] [review]
app-usage: Remove more unused things
Comment 5 Florian Müllner 2018-07-13 19:12:24 UTC
I put the cleanup patches into https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/146, as they still make sense.

However I haven't seen any extension developers asking for access to the data, so I've left that bit out.