'Alfred\'s environmental variables minus the ``alfred_`` prefix.
.. versionadded:: 1.7
The variables Alfred 2.4+ exports are:
Variable                      Description
alfred_preferences            Path to Alfred.alfredpreferences
(where your workflows and settings are
stored).
alfred_preferences_localhash  Machine-specific preferences are stored
in ``Alfred.alfredpreferences/preferences/local/<hash>``
(see ``alfred_preferences`` above for
the path to ``Alfred.alfredpreferences``)
alfred_theme                  ID of selected theme
alfred_theme_background       Background colour of selected theme in
format ``rgba(r,g,b,a)``
alfred_theme_subtext          Show result subtext.
``0`` = Always,
``1`` = Alternative actions only,
``2`` = Selected result only,
``3`` = Never
alfred_version                Alfred version number, e.g. ``\'2.4\'``
alfred_version_build          Alfred build number, e.g. ``277``
alfred_workflow_bundleid      Bundle ID, e.g.
``net.deanishe.alfred-mailto``
alfred_workflow_cache         Path to workflow\'s cache directory
alfred_workflow_data          Path to workflow\'s data directory
alfred_workflow_name          Name of current workflow
alfred_workflow_uid           UID of workflow
**Note:** all values are Unicode strings except ``version_build`` and
``theme_subtext``, which are integers.
:returns: ``dict`` of Alfred\'s environmental variables without the
``alfred_`` prefix, e.g. ``preferences``, ``workflow_data``.'

@property
def alfred_env(self):

    if (self._alfred_env is not None):
        return self._alfred_env
    data = {}
    for key in (u'alfred_preferences', u'alfred_preferences_localhash', u'alfred_theme', u'alfred_theme_background', u'alfred_theme_subtext', u'alfred_version', u'alfred_version_build', u'alfred_workflow_bundleid', u'alfred_workflow_cache', u'alfred_workflow_data', u'alfred_workflow_name', u'alfred_workflow_uid'):
        value = os.getenv(key)
        if isinstance(value, str):
            if (key in (u'alfred_version_build', u'alfred_theme_subtext')):
                value = int(value)
            else:
                value = self.decode(value)
        data[key[7:]] = value
    self._alfred_env = data
    return self._alfred_env
