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 pep8'd sugar3 2013-06-11 15:27:19 +02:00
event-controller Make gir files depend on their library 2013-11-17 18:50:07 +01:00
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 Fix translations in non standard prefix 2013-09-10 22:55:11 +02:00
.gitignore Rename the module to sugar3 2011-11-14 18:17:18 +01:00
.license Rename the module to sugar3 2011-11-14 18:17:18 +01:00
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 Rename the module to sugar3 2011-11-14 18:17:18 +01:00
acme-volume.h Rename the module to sugar3 2011-11-14 18:17:18 +01:00
config.py.in Fix translations in non standard prefix 2013-09-10 22:55:11 +02:00
eggaccelerators.c Port key handling code to GTK3 2011-12-13 17:19:53 -03:00
eggaccelerators.h Switch sugarext to be an introspectable library 2011-12-13 17:19:52 -03:00
eggdesktopfile.c Port key handling code to GTK3 2011-12-13 17:19:53 -03:00
eggdesktopfile.h Rename the module to sugar3 2011-11-14 18:17:18 +01:00
eggsmclient-private.h Switch sugarext to be an introspectable library 2011-12-13 17:19:52 -03:00
eggsmclient-xsmp.c Restore use of XSMP client 2012-11-23 19:39:49 +01:00
eggsmclient-xsmp.h Restore use of XSMP client 2012-11-23 19:39:49 +01:00
eggsmclient.c Rename the module to sugar3 2011-11-14 18:17:18 +01:00
eggsmclient.h Rename the module to sugar3 2011-11-14 18:17:18 +01:00
env.py Add a SUGAR_HOME environment variable 2013-09-11 16:36:31 +02:00
gsm-app.c Rename the module to sugar3 2011-11-14 18:17:18 +01:00
gsm-app.h Rename the module to sugar3 2011-11-14 18:17:18 +01:00
gsm-client-xsmp.c Rename the module to sugar3 2011-11-14 18:17:18 +01:00
gsm-client-xsmp.h Rename the module to sugar3 2011-11-14 18:17:18 +01:00
gsm-client.c Rename the module to sugar3 2011-11-14 18:17:18 +01:00
gsm-client.h Rename the module to sugar3 2011-11-14 18:17:18 +01:00
gsm-session.c Switch sugarext to be an introspectable library 2011-12-13 17:19:52 -03:00
gsm-session.h Rename the module to sugar3 2011-11-14 18:17:18 +01:00
gsm-xsmp.c Rename the module to sugar3 2011-11-14 18:17:18 +01:00
gsm-xsmp.h Rename the module to sugar3 2011-11-14 18:17:18 +01:00
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 pep8'd sugar3 2013-06-11 15:27:19 +02:00
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 Cursor tracker: only display the cursor in mouse/trackpad mode 2012-10-15 20:53:17 +02:00
sugar-cursor-tracker.h Cursor tracker: only display the cursor in mouse/trackpad mode 2012-10-15 20:53:17 +02:00
sugar-fatattr.c Include string.h to sugar-fatattr 2013-08-16 00:14:42 +02:00
sugar-fatattr.h Adding SugarExt for setting hidden attribute on FAT files 2013-06-10 15:46:54 +02:00
sugar-gesture-grabber.c Cleanup: remove unused variable 2012-10-08 13:03:43 +02:00
sugar-gesture-grabber.h gestures: Add remove() call to SugarGestureGrabber 2012-10-08 13:03:15 +02:00
sugar-grid.c Rename the module to sugar3 2011-11-14 18:17:18 +01:00
sugar-grid.h Rename the module to sugar3 2011-11-14 18:17:18 +01:00
sugar-key-grabber.c keygrabber: Handle XI2 key events, part of SL #3895 2012-12-14 13:39:14 +01:00
sugar-key-grabber.h Key grabber: make grab_keys introspectable 2012-08-22 17:42:50 +02:00
sugar-marshal.list Rename the module to sugar3 2011-11-14 18:17:18 +01:00
sugar-wm.c Reimplement the wm module in C 2012-09-06 18:14:46 +02:00
sugar-wm.h Reimplement the wm module in C 2012-09-06 18:14:46 +02:00
util.py Use proper formatting syntax, fixes #2170 2013-12-26 15:57:33 +01:00