sugar-toolkit-gtk3/src/sugar3
Sebastian Silva 2f2b2d20d8 Allow to run activities without Sugar shell.
- Handle lack of GSettings gracefully.
- Still requires sugar-datastore.
- Supports avoiding X11 docks/panels.
- Provides icons for Activity windows.

Try it outside Sugar. Go to an Activity directory and run 'sugar-activity'.
Tested it with Terminal, Finance, Write, Browse, Memorize under XFCE4.
Tested in Gnome under OLPC-OS.
Also works from Sugar Terminal Activity.
Does not affect regular Sugar operation.

This is patch v.2 -
    Addresses most concerns:
    - Removed commented code, sorry.
    - Changed code to use profile.get_nickname and get_color where possible.

    Couldn't the launcher just pass this info?
    Maybe the launcher could set the activity root as well?
        - It is intended to be usable from the command line also.
    Should put sugar version in the environment
        - It is intended to work even without Sugar Shell installed.
    Why don't we always set the icon?
        - On XO it might use some memory. I was concerned to degrade
        performance.
    Also, imports should be at the top of the file?
        - Also a concern about performance on XO.
        This way it is only loaded in this use case.
        Maybe it is insignificant -moved as requested.
    It would be nice if the changes to the POT for sugar-toolkit-gtk3
    could be incorporated in this pull request, please.
        - There were no changes to POT files as part of this patch. Maybe
        it is worth translating low level command line tools, not sure.
    Suggest packaged activities might also provide .desktop files.
        - Intriguing but not sure within scope of this patch. You mean generate
        a .desktop file automatically as an option? Sounds nice!
    Suggest sugar-activity might also accept path to unpacked bundle.
        - Implemented!
2016-04-21 03:10:30 -05:00
..
activity Allow to run activities without Sugar shell. 2016-04-21 03:10:30 -05:00
bundle Don't break activity startup if .info have 'class' instead of 'exec' 2015-04-06 08:51:39 -03:00
datastore Allow to run activities without Sugar shell. 2016-04-21 03:10:30 -05:00
dispatch
event-controller
graphics Allow to run activities without Sugar shell. 2016-04-21 03:10:30 -05:00
presence Allow to run activities without Sugar shell. 2016-04-21 03:10:30 -05:00
test Add a testing method to open a activity with a uri 2014-11-11 12:03:02 -03:00
__init__.py
.gitignore
.license
acme-volume-alsa.c Add capture device support 2014-03-31 17:41:30 -04:00
acme-volume-alsa.h Add capture device support 2014-03-31 17:41:30 -04:00
acme-volume.c
acme-volume.h
config.py.in
eggaccelerators.c
eggaccelerators.h
eggdesktopfile.c
eggdesktopfile.h
eggsmclient-private.h
eggsmclient-xsmp.c
eggsmclient-xsmp.h
eggsmclient.c
eggsmclient.h
env.py
gsm-app.c
gsm-app.h
gsm-client-xsmp.c
gsm-client-xsmp.h
gsm-client.c
gsm-client.h
gsm-session.c
gsm-session.h
gsm-xsmp.c
gsm-xsmp.h
logger.py allow start on full disk 2015-11-23 17:26:29 +11:00
Makefile.am Provide access to Gtk.Clipboard.set_with_data 2015-01-14 15:53:37 -03:00
mime.py Add a method to get all the extensions associated to a mime type 2014-05-08 11:18:50 -04:00
network.py
power.py power: avoid filesystem access if powerd absent 2015-05-14 20:24:32 +10:00
profile.py Allow to run activities without Sugar shell. 2016-04-21 03:10:30 -05:00
speech.py Update speech.py 2016-03-26 17:11:07 -04:00
sugar-clipboard.c Provide access to Gtk.Clipboard.set_with_data 2015-01-14 15:53:37 -03:00
sugar-clipboard.h Provide access to Gtk.Clipboard.set_with_data 2015-01-14 15:53:37 -03:00
sugar-cursor-tracker.c
sugar-cursor-tracker.h
sugar-fatattr.c
sugar-fatattr.h
sugar-gesture-grabber.c
sugar-gesture-grabber.h
sugar-grid.c
sugar-grid.h
sugar-key-grabber.c
sugar-key-grabber.h
sugar-marshal.list
sugar-wm.c
sugar-wm.h
util.py