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 372080 - Singleton Perks
Singleton Perks
Status: RESOLVED WONTFIX
Product: lsr
Classification: Deprecated
Component: core
0.3.x
Other Linux
: Normal enhancement
: ---
Assigned To: LSR maintainers
LSR maintainers
gnome[unmaintained]
Depends on:
Blocks: 358183
 
 
Reported: 2006-11-07 16:42 UTC by Peter Parente
Modified: 2011-07-06 06:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Peter Parente 2006-11-07 16:42:44 UTC
The solution to bug #358183 might be to introduce the concept of a singleton Perk. I thought of this idea a while ago while working on the DefaultDialogPerk. It's wasteful to have multiple instances of this Perk when the settings chooser Task creates a singleton dialog. What if we could specify a Perk as being a singleton that only created on instance, but would load across all Tiers?

This idea might be implemented as follows:

1) Add a new singleton UIE metadata flag to Perks.
2) Respect this flag in the UIRegistrar or in the TierManager by creating and caching one instance of the Perk.

The Perk can be intermingled in the Perk load order with other Perks.
Comment 1 Peter Parente 2006-11-10 13:34:12 UTC
The GnomeMagPerk is another example of a Perk that might behave better as a singleton.
Comment 2 Peter Parente 2006-11-11 03:42:51 UTC
Sharing of state across Perk instances can be accomplished using PerkState objects and attributes. (Duh!) Therefore, part of the benefit of a singleton Perk is lost.

The remaining benefits are:

1) Less memory overhead.
2) No reliance on a Tier for certain commands (i.e. input tasks can be truly global).

Comment 3 Peter Parente 2007-05-29 10:23:13 UTC
#2 is actually incorrect too. When the foreground window is part of an inaccessible application (i.e., it does not bridge to AT-SPI), X key events are not forwarded to lsr by AT-SPI. So the primary use case for having global key commands is not solved by singleton Perks.
Comment 4 Akhil Laddha 2011-07-06 06:41:36 UTC
lsr (Linux Screen reader) development has been stalled and it has been unmaintained for a few years now. Maintainers don't have future development plan so i am closing the bugs as WONTFIX. Please feel free to reopen the bugs in future if anyone takes the responsibility for active development.