/* main.c generated by valac 0.26.0, the Vala compiler
 * generated from main.vala, do not modify */

/* 
 *      Copyright 2011 Julien Lavergne <gilir@ubuntu.com>
 *
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <unistd.h>
#include <glib/gstdio.h>


#define LXSESSION_TYPE_LX_SIGNALS (lxsession_lx_signals_get_type ())
#define LXSESSION_LX_SIGNALS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_LX_SIGNALS, LxsessionLxSignals))
#define LXSESSION_LX_SIGNALS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_LX_SIGNALS, LxsessionLxSignalsClass))
#define LXSESSION_IS_LX_SIGNALS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_LX_SIGNALS))
#define LXSESSION_IS_LX_SIGNALS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_LX_SIGNALS))
#define LXSESSION_LX_SIGNALS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_LX_SIGNALS, LxsessionLxSignalsClass))

typedef struct _LxsessionLxSignals LxsessionLxSignals;
typedef struct _LxsessionLxSignalsClass LxsessionLxSignalsClass;

#define LXSESSION_TYPE_LXSESSION_CONFIG (lxsession_lxsession_config_get_type ())
#define LXSESSION_LXSESSION_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_LXSESSION_CONFIG, LxsessionLxsessionConfig))
#define LXSESSION_LXSESSION_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_LXSESSION_CONFIG, LxsessionLxsessionConfigClass))
#define LXSESSION_IS_LXSESSION_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_LXSESSION_CONFIG))
#define LXSESSION_IS_LXSESSION_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_LXSESSION_CONFIG))
#define LXSESSION_LXSESSION_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_LXSESSION_CONFIG, LxsessionLxsessionConfigClass))

typedef struct _LxsessionLxsessionConfig LxsessionLxsessionConfig;
typedef struct _LxsessionLxsessionConfigClass LxsessionLxsessionConfigClass;

#define LXSESSION_TYPE_LXSESSION_CONFIG_KEY_FILE (lxsession_lxsession_config_key_file_get_type ())
#define LXSESSION_LXSESSION_CONFIG_KEY_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_LXSESSION_CONFIG_KEY_FILE, LxsessionLxsessionConfigKeyFile))
#define LXSESSION_LXSESSION_CONFIG_KEY_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_LXSESSION_CONFIG_KEY_FILE, LxsessionLxsessionConfigKeyFileClass))
#define LXSESSION_IS_LXSESSION_CONFIG_KEY_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_LXSESSION_CONFIG_KEY_FILE))
#define LXSESSION_IS_LXSESSION_CONFIG_KEY_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_LXSESSION_CONFIG_KEY_FILE))
#define LXSESSION_LXSESSION_CONFIG_KEY_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_LXSESSION_CONFIG_KEY_FILE, LxsessionLxsessionConfigKeyFileClass))

typedef struct _LxsessionLxsessionConfigKeyFile LxsessionLxsessionConfigKeyFile;
typedef struct _LxsessionLxsessionConfigKeyFileClass LxsessionLxsessionConfigKeyFileClass;

#define LXSESSION_TYPE_APP_OBJECT (lxsession_app_object_get_type ())
#define LXSESSION_APP_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_APP_OBJECT, LxsessionAppObject))
#define LXSESSION_APP_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_APP_OBJECT, LxsessionAppObjectClass))
#define LXSESSION_IS_APP_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_APP_OBJECT))
#define LXSESSION_IS_APP_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_APP_OBJECT))
#define LXSESSION_APP_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_APP_OBJECT, LxsessionAppObjectClass))

typedef struct _LxsessionAppObject LxsessionAppObject;
typedef struct _LxsessionAppObjectClass LxsessionAppObjectClass;

#define LXSESSION_TYPE_SIMPLE_APP_OBJECT (lxsession_simple_app_object_get_type ())
#define LXSESSION_SIMPLE_APP_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_SIMPLE_APP_OBJECT, LxsessionSimpleAppObject))
#define LXSESSION_SIMPLE_APP_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_SIMPLE_APP_OBJECT, LxsessionSimpleAppObjectClass))
#define LXSESSION_IS_SIMPLE_APP_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_SIMPLE_APP_OBJECT))
#define LXSESSION_IS_SIMPLE_APP_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_SIMPLE_APP_OBJECT))
#define LXSESSION_SIMPLE_APP_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_SIMPLE_APP_OBJECT, LxsessionSimpleAppObjectClass))

typedef struct _LxsessionSimpleAppObject LxsessionSimpleAppObject;
typedef struct _LxsessionSimpleAppObjectClass LxsessionSimpleAppObjectClass;

#define LXSESSION_TYPE_PANEL_APP (lxsession_panel_app_get_type ())
#define LXSESSION_PANEL_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_PANEL_APP, LxsessionPanelApp))
#define LXSESSION_PANEL_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_PANEL_APP, LxsessionPanelAppClass))
#define LXSESSION_IS_PANEL_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_PANEL_APP))
#define LXSESSION_IS_PANEL_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_PANEL_APP))
#define LXSESSION_PANEL_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_PANEL_APP, LxsessionPanelAppClass))

typedef struct _LxsessionPanelApp LxsessionPanelApp;
typedef struct _LxsessionPanelAppClass LxsessionPanelAppClass;

#define LXSESSION_TYPE_DOCK_APP (lxsession_dock_app_get_type ())
#define LXSESSION_DOCK_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_DOCK_APP, LxsessionDockApp))
#define LXSESSION_DOCK_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_DOCK_APP, LxsessionDockAppClass))
#define LXSESSION_IS_DOCK_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_DOCK_APP))
#define LXSESSION_IS_DOCK_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_DOCK_APP))
#define LXSESSION_DOCK_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_DOCK_APP, LxsessionDockAppClass))

typedef struct _LxsessionDockApp LxsessionDockApp;
typedef struct _LxsessionDockAppClass LxsessionDockAppClass;

#define LXSESSION_TYPE_WINDOWS_MANAGER_APP (lxsession_windows_manager_app_get_type ())
#define LXSESSION_WINDOWS_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_WINDOWS_MANAGER_APP, LxsessionWindowsManagerApp))
#define LXSESSION_WINDOWS_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_WINDOWS_MANAGER_APP, LxsessionWindowsManagerAppClass))
#define LXSESSION_IS_WINDOWS_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_WINDOWS_MANAGER_APP))
#define LXSESSION_IS_WINDOWS_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_WINDOWS_MANAGER_APP))
#define LXSESSION_WINDOWS_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_WINDOWS_MANAGER_APP, LxsessionWindowsManagerAppClass))

typedef struct _LxsessionWindowsManagerApp LxsessionWindowsManagerApp;
typedef struct _LxsessionWindowsManagerAppClass LxsessionWindowsManagerAppClass;

#define LXSESSION_TYPE_FILE_MANAGER_APP (lxsession_file_manager_app_get_type ())
#define LXSESSION_FILE_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_FILE_MANAGER_APP, LxsessionFileManagerApp))
#define LXSESSION_FILE_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_FILE_MANAGER_APP, LxsessionFileManagerAppClass))
#define LXSESSION_IS_FILE_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_FILE_MANAGER_APP))
#define LXSESSION_IS_FILE_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_FILE_MANAGER_APP))
#define LXSESSION_FILE_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_FILE_MANAGER_APP, LxsessionFileManagerAppClass))

typedef struct _LxsessionFileManagerApp LxsessionFileManagerApp;
typedef struct _LxsessionFileManagerAppClass LxsessionFileManagerAppClass;

#define LXSESSION_TYPE_DESKTOP_APP (lxsession_desktop_app_get_type ())
#define LXSESSION_DESKTOP_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_DESKTOP_APP, LxsessionDesktopApp))
#define LXSESSION_DESKTOP_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_DESKTOP_APP, LxsessionDesktopAppClass))
#define LXSESSION_IS_DESKTOP_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_DESKTOP_APP))
#define LXSESSION_IS_DESKTOP_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_DESKTOP_APP))
#define LXSESSION_DESKTOP_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_DESKTOP_APP, LxsessionDesktopAppClass))

typedef struct _LxsessionDesktopApp LxsessionDesktopApp;
typedef struct _LxsessionDesktopAppClass LxsessionDesktopAppClass;

#define LXSESSION_TYPE_POLKIT_APP (lxsession_polkit_app_get_type ())
#define LXSESSION_POLKIT_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_POLKIT_APP, LxsessionPolkitApp))
#define LXSESSION_POLKIT_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_POLKIT_APP, LxsessionPolkitAppClass))
#define LXSESSION_IS_POLKIT_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_POLKIT_APP))
#define LXSESSION_IS_POLKIT_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_POLKIT_APP))
#define LXSESSION_POLKIT_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_POLKIT_APP, LxsessionPolkitAppClass))

typedef struct _LxsessionPolkitApp LxsessionPolkitApp;
typedef struct _LxsessionPolkitAppClass LxsessionPolkitAppClass;

#define LXSESSION_TYPE_SCREENSAVER_APP (lxsession_screensaver_app_get_type ())
#define LXSESSION_SCREENSAVER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_SCREENSAVER_APP, LxsessionScreensaverApp))
#define LXSESSION_SCREENSAVER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_SCREENSAVER_APP, LxsessionScreensaverAppClass))
#define LXSESSION_IS_SCREENSAVER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_SCREENSAVER_APP))
#define LXSESSION_IS_SCREENSAVER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_SCREENSAVER_APP))
#define LXSESSION_SCREENSAVER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_SCREENSAVER_APP, LxsessionScreensaverAppClass))

typedef struct _LxsessionScreensaverApp LxsessionScreensaverApp;
typedef struct _LxsessionScreensaverAppClass LxsessionScreensaverAppClass;

#define LXSESSION_TYPE_POWER_MANAGER_APP (lxsession_power_manager_app_get_type ())
#define LXSESSION_POWER_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_POWER_MANAGER_APP, LxsessionPowerManagerApp))
#define LXSESSION_POWER_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_POWER_MANAGER_APP, LxsessionPowerManagerAppClass))
#define LXSESSION_IS_POWER_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_POWER_MANAGER_APP))
#define LXSESSION_IS_POWER_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_POWER_MANAGER_APP))
#define LXSESSION_POWER_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_POWER_MANAGER_APP, LxsessionPowerManagerAppClass))

typedef struct _LxsessionPowerManagerApp LxsessionPowerManagerApp;
typedef struct _LxsessionPowerManagerAppClass LxsessionPowerManagerAppClass;

#define LXSESSION_TYPE_NETWORK_GUI_APP (lxsession_network_gui_app_get_type ())
#define LXSESSION_NETWORK_GUI_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_NETWORK_GUI_APP, LxsessionNetworkGuiApp))
#define LXSESSION_NETWORK_GUI_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_NETWORK_GUI_APP, LxsessionNetworkGuiAppClass))
#define LXSESSION_IS_NETWORK_GUI_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_NETWORK_GUI_APP))
#define LXSESSION_IS_NETWORK_GUI_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_NETWORK_GUI_APP))
#define LXSESSION_NETWORK_GUI_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_NETWORK_GUI_APP, LxsessionNetworkGuiAppClass))

typedef struct _LxsessionNetworkGuiApp LxsessionNetworkGuiApp;
typedef struct _LxsessionNetworkGuiAppClass LxsessionNetworkGuiAppClass;

#define LXSESSION_TYPE_GENERIC_SIMPLE_APP (lxsession_generic_simple_app_get_type ())
#define LXSESSION_GENERIC_SIMPLE_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_GENERIC_SIMPLE_APP, LxsessionGenericSimpleApp))
#define LXSESSION_GENERIC_SIMPLE_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_GENERIC_SIMPLE_APP, LxsessionGenericSimpleAppClass))
#define LXSESSION_IS_GENERIC_SIMPLE_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_GENERIC_SIMPLE_APP))
#define LXSESSION_IS_GENERIC_SIMPLE_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_GENERIC_SIMPLE_APP))
#define LXSESSION_GENERIC_SIMPLE_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_GENERIC_SIMPLE_APP, LxsessionGenericSimpleAppClass))

typedef struct _LxsessionGenericSimpleApp LxsessionGenericSimpleApp;
typedef struct _LxsessionGenericSimpleAppClass LxsessionGenericSimpleAppClass;

#define LXSESSION_TYPE_AUDIO_MANAGER_APP (lxsession_audio_manager_app_get_type ())
#define LXSESSION_AUDIO_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_AUDIO_MANAGER_APP, LxsessionAudioManagerApp))
#define LXSESSION_AUDIO_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_AUDIO_MANAGER_APP, LxsessionAudioManagerAppClass))
#define LXSESSION_IS_AUDIO_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_AUDIO_MANAGER_APP))
#define LXSESSION_IS_AUDIO_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_AUDIO_MANAGER_APP))
#define LXSESSION_AUDIO_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_AUDIO_MANAGER_APP, LxsessionAudioManagerAppClass))

typedef struct _LxsessionAudioManagerApp LxsessionAudioManagerApp;
typedef struct _LxsessionAudioManagerAppClass LxsessionAudioManagerAppClass;

#define LXSESSION_TYPE_QUIT_MANAGER_APP (lxsession_quit_manager_app_get_type ())
#define LXSESSION_QUIT_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_QUIT_MANAGER_APP, LxsessionQuitManagerApp))
#define LXSESSION_QUIT_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_QUIT_MANAGER_APP, LxsessionQuitManagerAppClass))
#define LXSESSION_IS_QUIT_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_QUIT_MANAGER_APP))
#define LXSESSION_IS_QUIT_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_QUIT_MANAGER_APP))
#define LXSESSION_QUIT_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_QUIT_MANAGER_APP, LxsessionQuitManagerAppClass))

typedef struct _LxsessionQuitManagerApp LxsessionQuitManagerApp;
typedef struct _LxsessionQuitManagerAppClass LxsessionQuitManagerAppClass;

#define LXSESSION_TYPE_WORKSPACE_MANAGER_APP (lxsession_workspace_manager_app_get_type ())
#define LXSESSION_WORKSPACE_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_WORKSPACE_MANAGER_APP, LxsessionWorkspaceManagerApp))
#define LXSESSION_WORKSPACE_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_WORKSPACE_MANAGER_APP, LxsessionWorkspaceManagerAppClass))
#define LXSESSION_IS_WORKSPACE_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_WORKSPACE_MANAGER_APP))
#define LXSESSION_IS_WORKSPACE_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_WORKSPACE_MANAGER_APP))
#define LXSESSION_WORKSPACE_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_WORKSPACE_MANAGER_APP, LxsessionWorkspaceManagerAppClass))

typedef struct _LxsessionWorkspaceManagerApp LxsessionWorkspaceManagerApp;
typedef struct _LxsessionWorkspaceManagerAppClass LxsessionWorkspaceManagerAppClass;

#define LXSESSION_TYPE_LAUNCHER_MANAGER_APP (lxsession_launcher_manager_app_get_type ())
#define LXSESSION_LAUNCHER_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_LAUNCHER_MANAGER_APP, LxsessionLauncherManagerApp))
#define LXSESSION_LAUNCHER_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_LAUNCHER_MANAGER_APP, LxsessionLauncherManagerAppClass))
#define LXSESSION_IS_LAUNCHER_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_LAUNCHER_MANAGER_APP))
#define LXSESSION_IS_LAUNCHER_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_LAUNCHER_MANAGER_APP))
#define LXSESSION_LAUNCHER_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_LAUNCHER_MANAGER_APP, LxsessionLauncherManagerAppClass))

typedef struct _LxsessionLauncherManagerApp LxsessionLauncherManagerApp;
typedef struct _LxsessionLauncherManagerAppClass LxsessionLauncherManagerAppClass;

#define LXSESSION_TYPE_TERMINAL_MANAGER_APP (lxsession_terminal_manager_app_get_type ())
#define LXSESSION_TERMINAL_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_TERMINAL_MANAGER_APP, LxsessionTerminalManagerApp))
#define LXSESSION_TERMINAL_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_TERMINAL_MANAGER_APP, LxsessionTerminalManagerAppClass))
#define LXSESSION_IS_TERMINAL_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_TERMINAL_MANAGER_APP))
#define LXSESSION_IS_TERMINAL_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_TERMINAL_MANAGER_APP))
#define LXSESSION_TERMINAL_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_TERMINAL_MANAGER_APP, LxsessionTerminalManagerAppClass))

typedef struct _LxsessionTerminalManagerApp LxsessionTerminalManagerApp;
typedef struct _LxsessionTerminalManagerAppClass LxsessionTerminalManagerAppClass;

#define LXSESSION_TYPE_SCREENSHOT_MANAGER_APP (lxsession_screenshot_manager_app_get_type ())
#define LXSESSION_SCREENSHOT_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_SCREENSHOT_MANAGER_APP, LxsessionScreenshotManagerApp))
#define LXSESSION_SCREENSHOT_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_SCREENSHOT_MANAGER_APP, LxsessionScreenshotManagerAppClass))
#define LXSESSION_IS_SCREENSHOT_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_SCREENSHOT_MANAGER_APP))
#define LXSESSION_IS_SCREENSHOT_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_SCREENSHOT_MANAGER_APP))
#define LXSESSION_SCREENSHOT_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_SCREENSHOT_MANAGER_APP, LxsessionScreenshotManagerAppClass))

typedef struct _LxsessionScreenshotManagerApp LxsessionScreenshotManagerApp;
typedef struct _LxsessionScreenshotManagerAppClass LxsessionScreenshotManagerAppClass;

#define LXSESSION_TYPE_OPTION (lxsession_option_get_type ())
#define LXSESSION_OPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_OPTION, LxsessionOption))
#define LXSESSION_OPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_OPTION, LxsessionOptionClass))
#define LXSESSION_IS_OPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_OPTION))
#define LXSESSION_IS_OPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_OPTION))
#define LXSESSION_OPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_OPTION, LxsessionOptionClass))

typedef struct _LxsessionOption LxsessionOption;
typedef struct _LxsessionOptionClass LxsessionOptionClass;

#define LXSESSION_TYPE_CLIPBOARD_OPTION (lxsession_clipboard_option_get_type ())
#define LXSESSION_CLIPBOARD_OPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_CLIPBOARD_OPTION, LxsessionClipboardOption))
#define LXSESSION_CLIPBOARD_OPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_CLIPBOARD_OPTION, LxsessionClipboardOptionClass))
#define LXSESSION_IS_CLIPBOARD_OPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_CLIPBOARD_OPTION))
#define LXSESSION_IS_CLIPBOARD_OPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_CLIPBOARD_OPTION))
#define LXSESSION_CLIPBOARD_OPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_CLIPBOARD_OPTION, LxsessionClipboardOptionClass))

typedef struct _LxsessionClipboardOption LxsessionClipboardOption;
typedef struct _LxsessionClipboardOptionClass LxsessionClipboardOptionClass;

#define LXSESSION_TYPE_KEYMAP_OPTION (lxsession_keymap_option_get_type ())
#define LXSESSION_KEYMAP_OPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_KEYMAP_OPTION, LxsessionKeymapOption))
#define LXSESSION_KEYMAP_OPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_KEYMAP_OPTION, LxsessionKeymapOptionClass))
#define LXSESSION_IS_KEYMAP_OPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_KEYMAP_OPTION))
#define LXSESSION_IS_KEYMAP_OPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_KEYMAP_OPTION))
#define LXSESSION_KEYMAP_OPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_KEYMAP_OPTION, LxsessionKeymapOptionClass))

typedef struct _LxsessionKeymapOption LxsessionKeymapOption;
typedef struct _LxsessionKeymapOptionClass LxsessionKeymapOptionClass;

#define LXSESSION_TYPE_XRANDR_APP (lxsession_xrandr_app_get_type ())
#define LXSESSION_XRANDR_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_XRANDR_APP, LxsessionXrandrApp))
#define LXSESSION_XRANDR_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_XRANDR_APP, LxsessionXrandrAppClass))
#define LXSESSION_IS_XRANDR_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_XRANDR_APP))
#define LXSESSION_IS_XRANDR_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_XRANDR_APP))
#define LXSESSION_XRANDR_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_XRANDR_APP, LxsessionXrandrAppClass))

typedef struct _LxsessionXrandrApp LxsessionXrandrApp;
typedef struct _LxsessionXrandrAppClass LxsessionXrandrAppClass;

#define LXSESSION_TYPE_KEYRING_APP (lxsession_keyring_app_get_type ())
#define LXSESSION_KEYRING_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_KEYRING_APP, LxsessionKeyringApp))
#define LXSESSION_KEYRING_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_KEYRING_APP, LxsessionKeyringAppClass))
#define LXSESSION_IS_KEYRING_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_KEYRING_APP))
#define LXSESSION_IS_KEYRING_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_KEYRING_APP))
#define LXSESSION_KEYRING_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_KEYRING_APP, LxsessionKeyringAppClass))

typedef struct _LxsessionKeyringApp LxsessionKeyringApp;
typedef struct _LxsessionKeyringAppClass LxsessionKeyringAppClass;

#define LXSESSION_TYPE_A11Y_APP (lxsession_a11y_app_get_type ())
#define LXSESSION_A11Y_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_A11Y_APP, LxsessionA11yApp))
#define LXSESSION_A11Y_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_A11Y_APP, LxsessionA11yAppClass))
#define LXSESSION_IS_A11Y_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_A11Y_APP))
#define LXSESSION_IS_A11Y_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_A11Y_APP))
#define LXSESSION_A11Y_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_A11Y_APP, LxsessionA11yAppClass))

typedef struct _LxsessionA11yApp LxsessionA11yApp;
typedef struct _LxsessionA11yAppClass LxsessionA11yAppClass;

#define LXSESSION_TYPE_UPDATES_MANAGER_APP (lxsession_updates_manager_app_get_type ())
#define LXSESSION_UPDATES_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_UPDATES_MANAGER_APP, LxsessionUpdatesManagerApp))
#define LXSESSION_UPDATES_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_UPDATES_MANAGER_APP, LxsessionUpdatesManagerAppClass))
#define LXSESSION_IS_UPDATES_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_UPDATES_MANAGER_APP))
#define LXSESSION_IS_UPDATES_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_UPDATES_MANAGER_APP))
#define LXSESSION_UPDATES_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_UPDATES_MANAGER_APP, LxsessionUpdatesManagerAppClass))

typedef struct _LxsessionUpdatesManagerApp LxsessionUpdatesManagerApp;
typedef struct _LxsessionUpdatesManagerAppClass LxsessionUpdatesManagerAppClass;

#define LXSESSION_TYPE_PROXY_MANAGER_APP (lxsession_proxy_manager_app_get_type ())
#define LXSESSION_PROXY_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_PROXY_MANAGER_APP, LxsessionProxyManagerApp))
#define LXSESSION_PROXY_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_PROXY_MANAGER_APP, LxsessionProxyManagerAppClass))
#define LXSESSION_IS_PROXY_MANAGER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_PROXY_MANAGER_APP))
#define LXSESSION_IS_PROXY_MANAGER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_PROXY_MANAGER_APP))
#define LXSESSION_PROXY_MANAGER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_PROXY_MANAGER_APP, LxsessionProxyManagerAppClass))

typedef struct _LxsessionProxyManagerApp LxsessionProxyManagerApp;
typedef struct _LxsessionProxyManagerAppClass LxsessionProxyManagerAppClass;

#define LXSESSION_TYPE_UPSTART_USER_SESSION_OPTION (lxsession_upstart_user_session_option_get_type ())
#define LXSESSION_UPSTART_USER_SESSION_OPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_UPSTART_USER_SESSION_OPTION, LxsessionUpstartUserSessionOption))
#define LXSESSION_UPSTART_USER_SESSION_OPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_UPSTART_USER_SESSION_OPTION, LxsessionUpstartUserSessionOptionClass))
#define LXSESSION_IS_UPSTART_USER_SESSION_OPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_UPSTART_USER_SESSION_OPTION))
#define LXSESSION_IS_UPSTART_USER_SESSION_OPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_UPSTART_USER_SESSION_OPTION))
#define LXSESSION_UPSTART_USER_SESSION_OPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_UPSTART_USER_SESSION_OPTION, LxsessionUpstartUserSessionOptionClass))

typedef struct _LxsessionUpstartUserSessionOption LxsessionUpstartUserSessionOption;
typedef struct _LxsessionUpstartUserSessionOptionClass LxsessionUpstartUserSessionOptionClass;

#define LXSESSION_TYPE_XSETTINGS_OPTION (lxsession_xsettings_option_get_type ())
#define LXSESSION_XSETTINGS_OPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_XSETTINGS_OPTION, LxsessionXSettingsOption))
#define LXSESSION_XSETTINGS_OPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_XSETTINGS_OPTION, LxsessionXSettingsOptionClass))
#define LXSESSION_IS_XSETTINGS_OPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_XSETTINGS_OPTION))
#define LXSESSION_IS_XSETTINGS_OPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_XSETTINGS_OPTION))
#define LXSESSION_XSETTINGS_OPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_XSETTINGS_OPTION, LxsessionXSettingsOptionClass))

typedef struct _LxsessionXSettingsOption LxsessionXSettingsOption;
typedef struct _LxsessionXSettingsOptionClass LxsessionXSettingsOptionClass;

#define LXSESSION_TYPE_MAIN (lxsession_main_get_type ())
#define LXSESSION_MAIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_MAIN, LxsessionMain))
#define LXSESSION_MAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_MAIN, LxsessionMainClass))
#define LXSESSION_IS_MAIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_MAIN))
#define LXSESSION_IS_MAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_MAIN))
#define LXSESSION_MAIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_MAIN, LxsessionMainClass))

typedef struct _LxsessionMain LxsessionMain;
typedef struct _LxsessionMainClass LxsessionMainClass;
typedef struct _LxsessionMainPrivate LxsessionMainPrivate;
#define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define LXSESSION_TYPE_LXSESSION_ENV (lxsession_lxsession_env_get_type ())
#define LXSESSION_LXSESSION_ENV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_LXSESSION_ENV, LxsessionLxsessionEnv))
#define LXSESSION_LXSESSION_ENV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_LXSESSION_ENV, LxsessionLxsessionEnvClass))
#define LXSESSION_IS_LXSESSION_ENV(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_LXSESSION_ENV))
#define LXSESSION_IS_LXSESSION_ENV_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_LXSESSION_ENV))
#define LXSESSION_LXSESSION_ENV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_LXSESSION_ENV, LxsessionLxsessionEnvClass))

typedef struct _LxsessionLxsessionEnv LxsessionLxsessionEnv;
typedef struct _LxsessionLxsessionEnvClass LxsessionLxsessionEnvClass;

#define LXSESSION_TYPE_RAZOR_QT_CONFIG_KEY_FILE (lxsession_razor_qt_config_key_file_get_type ())
#define LXSESSION_RAZOR_QT_CONFIG_KEY_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_RAZOR_QT_CONFIG_KEY_FILE, LxsessionRazorQtConfigKeyFile))
#define LXSESSION_RAZOR_QT_CONFIG_KEY_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_RAZOR_QT_CONFIG_KEY_FILE, LxsessionRazorQtConfigKeyFileClass))
#define LXSESSION_IS_RAZOR_QT_CONFIG_KEY_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_RAZOR_QT_CONFIG_KEY_FILE))
#define LXSESSION_IS_RAZOR_QT_CONFIG_KEY_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_RAZOR_QT_CONFIG_KEY_FILE))
#define LXSESSION_RAZOR_QT_CONFIG_KEY_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_RAZOR_QT_CONFIG_KEY_FILE, LxsessionRazorQtConfigKeyFileClass))

typedef struct _LxsessionRazorQtConfigKeyFile LxsessionRazorQtConfigKeyFile;
typedef struct _LxsessionRazorQtConfigKeyFileClass LxsessionRazorQtConfigKeyFileClass;

#define LXSESSION_TYPE_CONFFILES_OBJECT (lxsession_conffiles_object_get_type ())
#define LXSESSION_CONFFILES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_CONFFILES_OBJECT, LxsessionConffilesObject))
#define LXSESSION_CONFFILES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_CONFFILES_OBJECT, LxsessionConffilesObjectClass))
#define LXSESSION_IS_CONFFILES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_CONFFILES_OBJECT))
#define LXSESSION_IS_CONFFILES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_CONFFILES_OBJECT))
#define LXSESSION_CONFFILES_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_CONFFILES_OBJECT, LxsessionConffilesObjectClass))

typedef struct _LxsessionConffilesObject LxsessionConffilesObject;
typedef struct _LxsessionConffilesObjectClass LxsessionConffilesObjectClass;

#define LXSESSION_TYPE_LXSESSION_AUTOSTART_CONFIG (lxsession_lxsession_autostart_config_get_type ())
#define LXSESSION_LXSESSION_AUTOSTART_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_LXSESSION_AUTOSTART_CONFIG, LxsessionLxsessionAutostartConfig))
#define LXSESSION_LXSESSION_AUTOSTART_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_LXSESSION_AUTOSTART_CONFIG, LxsessionLxsessionAutostartConfigClass))
#define LXSESSION_IS_LXSESSION_AUTOSTART_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_LXSESSION_AUTOSTART_CONFIG))
#define LXSESSION_IS_LXSESSION_AUTOSTART_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_LXSESSION_AUTOSTART_CONFIG))
#define LXSESSION_LXSESSION_AUTOSTART_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_LXSESSION_AUTOSTART_CONFIG, LxsessionLxsessionAutostartConfigClass))

typedef struct _LxsessionLxsessionAutostartConfig LxsessionLxsessionAutostartConfig;
typedef struct _LxsessionLxsessionAutostartConfigClass LxsessionLxsessionAutostartConfigClass;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))

struct _LxsessionMain {
	GObject parent_instance;
	LxsessionMainPrivate * priv;
};

struct _LxsessionMainClass {
	GObjectClass parent_class;
};


extern LxsessionLxSignals* lxsession_global_sig;
LxsessionLxSignals* lxsession_global_sig = NULL;
extern LxsessionLxsessionConfigKeyFile* lxsession_global_settings;
LxsessionLxsessionConfigKeyFile* lxsession_global_settings = NULL;
extern LxsessionPanelApp* lxsession_global_panel;
LxsessionPanelApp* lxsession_global_panel = NULL;
extern LxsessionDockApp* lxsession_global_dock;
LxsessionDockApp* lxsession_global_dock = NULL;
extern LxsessionWindowsManagerApp* lxsession_global_windows_manager;
LxsessionWindowsManagerApp* lxsession_global_windows_manager = NULL;
extern LxsessionFileManagerApp* lxsession_global_file_manager;
LxsessionFileManagerApp* lxsession_global_file_manager = NULL;
extern LxsessionDesktopApp* lxsession_global_desktop;
LxsessionDesktopApp* lxsession_global_desktop = NULL;
extern LxsessionPolkitApp* lxsession_global_polkit;
LxsessionPolkitApp* lxsession_global_polkit = NULL;
extern LxsessionScreensaverApp* lxsession_global_screensaver;
LxsessionScreensaverApp* lxsession_global_screensaver = NULL;
extern LxsessionPowerManagerApp* lxsession_global_power_manager;
LxsessionPowerManagerApp* lxsession_global_power_manager = NULL;
extern LxsessionNetworkGuiApp* lxsession_global_network_gui;
LxsessionNetworkGuiApp* lxsession_global_network_gui = NULL;
extern LxsessionGenericSimpleApp* lxsession_global_composite_manager;
LxsessionGenericSimpleApp* lxsession_global_composite_manager = NULL;
extern LxsessionAudioManagerApp* lxsession_global_audio_manager;
LxsessionAudioManagerApp* lxsession_global_audio_manager = NULL;
extern LxsessionQuitManagerApp* lxsession_global_quit_manager;
LxsessionQuitManagerApp* lxsession_global_quit_manager = NULL;
extern LxsessionWorkspaceManagerApp* lxsession_global_workspace_manager;
LxsessionWorkspaceManagerApp* lxsession_global_workspace_manager = NULL;
extern LxsessionLauncherManagerApp* lxsession_global_launcher_manager;
LxsessionLauncherManagerApp* lxsession_global_launcher_manager = NULL;
extern LxsessionTerminalManagerApp* lxsession_global_terminal_manager;
LxsessionTerminalManagerApp* lxsession_global_terminal_manager = NULL;
extern LxsessionScreenshotManagerApp* lxsession_global_screenshot_manager;
LxsessionScreenshotManagerApp* lxsession_global_screenshot_manager = NULL;
extern LxsessionGenericSimpleApp* lxsession_global_message_manager;
LxsessionGenericSimpleApp* lxsession_global_message_manager = NULL;
extern LxsessionClipboardOption* lxsession_global_clipboard;
LxsessionClipboardOption* lxsession_global_clipboard = NULL;
extern LxsessionKeymapOption* lxsession_global_keymap;
LxsessionKeymapOption* lxsession_global_keymap = NULL;
extern LxsessionXrandrApp* lxsession_global_xrandr;
LxsessionXrandrApp* lxsession_global_xrandr = NULL;
extern LxsessionKeyringApp* lxsession_global_keyring;
LxsessionKeyringApp* lxsession_global_keyring = NULL;
extern LxsessionA11yApp* lxsession_global_a11y;
LxsessionA11yApp* lxsession_global_a11y = NULL;
extern LxsessionUpdatesManagerApp* lxsession_global_updates;
LxsessionUpdatesManagerApp* lxsession_global_updates = NULL;
extern LxsessionGenericSimpleApp* lxsession_global_im1;
LxsessionGenericSimpleApp* lxsession_global_im1 = NULL;
extern LxsessionGenericSimpleApp* lxsession_global_im2;
LxsessionGenericSimpleApp* lxsession_global_im2 = NULL;
extern LxsessionGenericSimpleApp* lxsession_global_widget1;
LxsessionGenericSimpleApp* lxsession_global_widget1 = NULL;
extern LxsessionGenericSimpleApp* lxsession_global_notification;
LxsessionGenericSimpleApp* lxsession_global_notification = NULL;
extern LxsessionGenericSimpleApp* lxsession_global_keybindings;
LxsessionGenericSimpleApp* lxsession_global_keybindings = NULL;
extern LxsessionProxyManagerApp* lxsession_global_proxy;
LxsessionProxyManagerApp* lxsession_global_proxy = NULL;
extern LxsessionUpstartUserSessionOption* lxsession_global_upstart_session;
LxsessionUpstartUserSessionOption* lxsession_global_upstart_session = NULL;
extern LxsessionXSettingsOption* lxsession_global_xsettings_manager;
LxsessionXSettingsOption* lxsession_global_xsettings_manager = NULL;
static gpointer lxsession_main_parent_class = NULL;
static gchar* lxsession_main_session;
static gchar* lxsession_main_session = NULL;
static gchar* lxsession_main_desktop_environnement;
static gchar* lxsession_main_desktop_environnement = NULL;
static gboolean lxsession_main_reload;
static gboolean lxsession_main_reload = FALSE;
static gboolean lxsession_main_noxsettings;
static gboolean lxsession_main_noxsettings = FALSE;
static gboolean lxsession_main_autostart;
static gboolean lxsession_main_autostart = FALSE;
static gchar* lxsession_main_compatibility;
static gchar* lxsession_main_compatibility = NULL;
extern gchar* lxsession_session_global;

GType lxsession_lx_signals_get_type (void) G_GNUC_CONST;
GType lxsession_lxsession_config_get_type (void) G_GNUC_CONST;
GType lxsession_lxsession_config_key_file_get_type (void) G_GNUC_CONST;
GType lxsession_app_object_get_type (void) G_GNUC_CONST;
GType lxsession_simple_app_object_get_type (void) G_GNUC_CONST;
GType lxsession_panel_app_get_type (void) G_GNUC_CONST;
GType lxsession_dock_app_get_type (void) G_GNUC_CONST;
GType lxsession_windows_manager_app_get_type (void) G_GNUC_CONST;
GType lxsession_file_manager_app_get_type (void) G_GNUC_CONST;
GType lxsession_desktop_app_get_type (void) G_GNUC_CONST;
GType lxsession_polkit_app_get_type (void) G_GNUC_CONST;
GType lxsession_screensaver_app_get_type (void) G_GNUC_CONST;
GType lxsession_power_manager_app_get_type (void) G_GNUC_CONST;
GType lxsession_network_gui_app_get_type (void) G_GNUC_CONST;
GType lxsession_generic_simple_app_get_type (void) G_GNUC_CONST;
GType lxsession_audio_manager_app_get_type (void) G_GNUC_CONST;
GType lxsession_quit_manager_app_get_type (void) G_GNUC_CONST;
GType lxsession_workspace_manager_app_get_type (void) G_GNUC_CONST;
GType lxsession_launcher_manager_app_get_type (void) G_GNUC_CONST;
GType lxsession_terminal_manager_app_get_type (void) G_GNUC_CONST;
GType lxsession_screenshot_manager_app_get_type (void) G_GNUC_CONST;
GType lxsession_option_get_type (void) G_GNUC_CONST;
GType lxsession_clipboard_option_get_type (void) G_GNUC_CONST;
GType lxsession_keymap_option_get_type (void) G_GNUC_CONST;
GType lxsession_xrandr_app_get_type (void) G_GNUC_CONST;
GType lxsession_keyring_app_get_type (void) G_GNUC_CONST;
GType lxsession_a11y_app_get_type (void) G_GNUC_CONST;
GType lxsession_updates_manager_app_get_type (void) G_GNUC_CONST;
GType lxsession_proxy_manager_app_get_type (void) G_GNUC_CONST;
GType lxsession_upstart_user_session_option_get_type (void) G_GNUC_CONST;
GType lxsession_xsettings_option_get_type (void) G_GNUC_CONST;
GType lxsession_main_get_type (void) G_GNUC_CONST;
enum  {
	LXSESSION_MAIN_DUMMY_PROPERTY
};
gint lxsession_main_main (gchar** args, int args_length1);
LxsessionLxSignals* lxsession_lx_signals_new (void);
LxsessionLxSignals* lxsession_lx_signals_construct (GType object_type);
GType lxsession_lxsession_env_get_type (void) G_GNUC_CONST;
LxsessionLxsessionEnv* lxsession_lxsession_env_new (const gchar* session_arg, const gchar* desktop_environment_arg);
LxsessionLxsessionEnv* lxsession_lxsession_env_construct (GType object_type, const gchar* session_arg, const gchar* desktop_environment_arg);
void lxsession_lxsession_env_export_primary_env (LxsessionLxsessionEnv* self);
GType lxsession_razor_qt_config_key_file_get_type (void) G_GNUC_CONST;
LxsessionRazorQtConfigKeyFile* lxsession_razor_qt_config_key_file_new (const gchar* session_arg, const gchar* desktop_env_name_arg);
LxsessionRazorQtConfigKeyFile* lxsession_razor_qt_config_key_file_construct (GType object_type, const gchar* session_arg, const gchar* desktop_env_name_arg);
LxsessionLxsessionConfigKeyFile* lxsession_lxsession_config_key_file_new (const gchar* session_arg, const gchar* desktop_env_name_arg);
LxsessionLxsessionConfigKeyFile* lxsession_lxsession_config_key_file_construct (GType object_type, const gchar* session_arg, const gchar* desktop_env_name_arg);
void lxsession_lxsession_config_key_file_sync_setting_files (LxsessionLxsessionConfigKeyFile* self);
void lxsession_lxsession_env_export_env (LxsessionLxsessionEnv* self);
gchar* lxsession_get_config_path (const gchar* conf_file);
GType lxsession_conffiles_object_get_type (void) G_GNUC_CONST;
LxsessionConffilesObject* lxsession_conffiles_object_new (const gchar* conffiles_conf);
LxsessionConffilesObject* lxsession_conffiles_object_construct (GType object_type, const gchar* conffiles_conf);
void lxsession_conffiles_object_apply (LxsessionConffilesObject* self);
LxsessionXSettingsOption* lxsession_xsettings_option_new (void);
LxsessionXSettingsOption* lxsession_xsettings_option_construct (GType object_type);
void lxsession_xsettings_option_activate (LxsessionXSettingsOption* self);
void lxsession_xsettings_option_reload (LxsessionXSettingsOption* self);
gchar* lxsession_lxsession_config_get_item_string (LxsessionLxsessionConfig* self, const gchar* categorie, const gchar* key1, const gchar* key2);
LxsessionWindowsManagerApp* lxsession_windows_manager_app_new (void);
LxsessionWindowsManagerApp* lxsession_windows_manager_app_construct (GType object_type);
void lxsession_windows_manager_app_launch (LxsessionWindowsManagerApp* self);
LxsessionPanelApp* lxsession_panel_app_new (void);
LxsessionPanelApp* lxsession_panel_app_construct (GType object_type);
void lxsession_app_object_launch (LxsessionAppObject* self);
LxsessionDockApp* lxsession_dock_app_new (void);
LxsessionDockApp* lxsession_dock_app_construct (GType object_type);
LxsessionScreensaverApp* lxsession_screensaver_app_new (void);
LxsessionScreensaverApp* lxsession_screensaver_app_construct (GType object_type);
gboolean lxsession_detect_laptop (void);
LxsessionPowerManagerApp* lxsession_power_manager_app_new (void);
LxsessionPowerManagerApp* lxsession_power_manager_app_construct (GType object_type);
LxsessionNetworkGuiApp* lxsession_network_gui_app_new (void);
LxsessionNetworkGuiApp* lxsession_network_gui_app_construct (GType object_type);
LxsessionDesktopApp* lxsession_desktop_app_new (void);
LxsessionDesktopApp* lxsession_desktop_app_construct (GType object_type);
LxsessionGenericSimpleApp* lxsession_generic_simple_app_new (const gchar* argument);
LxsessionGenericSimpleApp* lxsession_generic_simple_app_construct (GType object_type, const gchar* argument);
LxsessionPolkitApp* lxsession_polkit_app_new (void);
LxsessionPolkitApp* lxsession_polkit_app_construct (GType object_type);
LxsessionLauncherManagerApp* lxsession_launcher_manager_app_new (void);
LxsessionLauncherManagerApp* lxsession_launcher_manager_app_construct (GType object_type);
void lxsession_launcher_manager_app_autostart_launch (LxsessionLauncherManagerApp* self);
GType lxsession_lxsession_autostart_config_get_type (void) G_GNUC_CONST;
LxsessionLxsessionAutostartConfig* lxsession_lxsession_autostart_config_new (void);
LxsessionLxsessionAutostartConfig* lxsession_lxsession_autostart_config_construct (GType object_type);
void lxsession_lxsession_autostart_config_start_applications (LxsessionLxsessionAutostartConfig* self);
void lxsession_lxsession_spawn_command_line_async (const gchar* command_line);
LxsessionClipboardOption* lxsession_clipboard_option_new (LxsessionLxsessionConfig* config);
LxsessionClipboardOption* lxsession_clipboard_option_construct (GType object_type, LxsessionLxsessionConfig* config);
void lxsession_option_activate (LxsessionOption* self);
LxsessionKeymapOption* lxsession_keymap_option_new (LxsessionLxsessionConfig* config);
LxsessionKeymapOption* lxsession_keymap_option_construct (GType object_type, LxsessionLxsessionConfig* config);
LxsessionXrandrApp* lxsession_xrandr_app_new (void);
LxsessionXrandrApp* lxsession_xrandr_app_construct (GType object_type);
LxsessionKeyringApp* lxsession_keyring_app_new (void);
LxsessionKeyringApp* lxsession_keyring_app_construct (GType object_type);
LxsessionA11yApp* lxsession_a11y_app_new (void);
LxsessionA11yApp* lxsession_a11y_app_construct (GType object_type);
LxsessionProxyManagerApp* lxsession_proxy_manager_app_new (void);
LxsessionProxyManagerApp* lxsession_proxy_manager_app_construct (GType object_type);
LxsessionUpdatesManagerApp* lxsession_updates_manager_app_new (void);
LxsessionUpdatesManagerApp* lxsession_updates_manager_app_construct (GType object_type);
LxsessionUpstartUserSessionOption* lxsession_upstart_user_session_option_new (LxsessionLxsessionConfig* config);
LxsessionUpstartUserSessionOption* lxsession_upstart_user_session_option_construct (GType object_type, LxsessionLxsessionConfig* config);
void lxsession_upstart_user_session_option_activate (LxsessionUpstartUserSessionOption* self);
void lxsession_on_bus_aquired (GDBusConnection* conn);
static void _lxsession_on_bus_aquired_gbus_acquired_callback (GDBusConnection* connection, const gchar* name, gpointer self);
static void ___lambda5_ (void);
static void ____lambda5__gbus_name_acquired_callback (GDBusConnection* connection, const gchar* name, gpointer self);
static void ___lambda6_ (void);
static void ____lambda6__gbus_name_lost_callback (GDBusConnection* connection, const gchar* name, gpointer self);
void lxsession_on_gnome_bus_aquired (GDBusConnection* conn);
static void _lxsession_on_gnome_bus_aquired_gbus_acquired_callback (GDBusConnection* connection, const gchar* name, gpointer self);
static void ___lambda7_ (void);
static void ____lambda7__gbus_name_acquired_callback (GDBusConnection* connection, const gchar* name, gpointer self);
static void ___lambda8_ (void);
static void ____lambda8__gbus_name_lost_callback (GDBusConnection* connection, const gchar* name, gpointer self);
void lxsession_clipboard_option_desactivate (LxsessionClipboardOption* self);
void lxsession_polkit_app_deactivate (LxsessionPolkitApp* self);
void lxsession_app_object_stop (LxsessionAppObject* self);
LxsessionMain* lxsession_main_new (void);
LxsessionMain* lxsession_main_construct (GType object_type);
static void lxsession_main_finalize (GObject* obj);

static const GOptionEntry LXSESSION_MAIN_option_entries[7] = {{"session", 's', 0, G_OPTION_ARG_STRING, &lxsession_main_session, "specify name of the desktop session profile", "NAME"}, {"de", 'e', 0, G_OPTION_ARG_STRING, &lxsession_main_desktop_environnement, "specify name of DE, such as LXDE, GNOME, or XFCE.", "NAME"}, {"reload", 'r', 0, G_OPTION_ARG_NONE, &lxsession_main_reload, "reload configurations (for Xsettings daemon)", NULL}, {"noxsettings", 'n', 0, G_OPTION_ARG_NONE, &lxsession_main_noxsettings, "disable Xsettings daemon support", NULL}, {"noautostart", 'a', 0, G_OPTION_ARG_NONE, &lxsession_main_autostart, "autostart applications disable (window-manager mode only)", NULL}, {"compatibility", 'c', 0, G_OPTION_ARG_STRING, &lxsession_main_compatibility, "specify a compatibility mode for settings (only razor-qt supported)", "NAME"}, {NULL}};

static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


static void _lxsession_on_bus_aquired_gbus_acquired_callback (GDBusConnection* connection, const gchar* name, gpointer self) {
	lxsession_on_bus_aquired (connection);
}


static void ___lambda5_ (void) {
}


static void ____lambda5__gbus_name_acquired_callback (GDBusConnection* connection, const gchar* name, gpointer self) {
	___lambda5_ ();
}


static void ___lambda6_ (void) {
	g_warning ("main.vala:486: Could not aquire name\n");
}


static void ____lambda6__gbus_name_lost_callback (GDBusConnection* connection, const gchar* name, gpointer self) {
	___lambda6_ ();
}


static void _lxsession_on_gnome_bus_aquired_gbus_acquired_callback (GDBusConnection* connection, const gchar* name, gpointer self) {
	lxsession_on_gnome_bus_aquired (connection);
}


static void ___lambda7_ (void) {
}


static void ____lambda7__gbus_name_acquired_callback (GDBusConnection* connection, const gchar* name, gpointer self) {
	___lambda7_ ();
}


static void ___lambda8_ (void) {
	g_warning ("main.vala:495: Could not aquire name\n");
}


static void ____lambda8__gbus_name_lost_callback (GDBusConnection* connection, const gchar* name, gpointer self) {
	___lambda8_ ();
}


gint lxsession_main_main (gchar** args, int args_length1) {
	gint result = 0;
	const gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	const gchar* _tmp10_ = NULL;
	const gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	gchar* log_directory = NULL;
	const gchar* _tmp14_ = NULL;
	const gchar* _tmp15_ = NULL;
	gchar* _tmp16_ = NULL;
	GFile* dir_log = NULL;
	const gchar* _tmp17_ = NULL;
	GFile* _tmp18_ = NULL;
	gchar* log_path = NULL;
	const gchar* _tmp19_ = NULL;
	gchar* _tmp20_ = NULL;
	const gchar* _tmp21_ = NULL;
	const gchar* _tmp22_ = NULL;
	GFile* _tmp23_ = NULL;
	gboolean _tmp24_ = FALSE;
	gint fint = 0;
	const gchar* _tmp28_ = NULL;
	gint _tmp29_ = 0;
	gint _tmp30_ = 0;
	gint _tmp31_ = 0;
	gint _tmp32_ = 0;
	LxsessionLxSignals* sig = NULL;
	LxsessionLxSignals* _tmp33_ = NULL;
	LxsessionLxSignals* _tmp34_ = NULL;
	LxsessionLxSignals* _tmp35_ = NULL;
	LxsessionLxsessionEnv* environment = NULL;
	const gchar* _tmp36_ = NULL;
	const gchar* _tmp37_ = NULL;
	LxsessionLxsessionEnv* _tmp38_ = NULL;
	LxsessionLxsessionEnv* _tmp39_ = NULL;
	const gchar* _tmp40_ = NULL;
	LxsessionLxsessionConfigKeyFile* _tmp51_ = NULL;
	LxsessionLxsessionEnv* _tmp52_ = NULL;
	gchar* conffiles_conf = NULL;
	gchar* _tmp53_ = NULL;
	const gchar* _tmp54_ = NULL;
	gboolean _tmp55_ = FALSE;
	gboolean _tmp59_ = FALSE;
	LxsessionLxsessionConfigKeyFile* _tmp66_ = NULL;
	gchar* _tmp67_ = NULL;
	gchar* _tmp68_ = NULL;
	gboolean _tmp69_ = FALSE;
	LxsessionLxsessionConfigKeyFile* _tmp82_ = NULL;
	gchar* _tmp83_ = NULL;
	gchar* _tmp84_ = NULL;
	gboolean _tmp85_ = FALSE;
	gboolean _tmp86_ = FALSE;
	LxsessionLxsessionConfigKeyFile* _tmp285_ = NULL;
	gchar* _tmp286_ = NULL;
	gchar* _tmp287_ = NULL;
	gboolean _tmp288_ = FALSE;
	LxsessionLxsessionConfigKeyFile* _tmp294_ = NULL;
	gchar* _tmp295_ = NULL;
	gchar* _tmp296_ = NULL;
	LxsessionLxsessionConfigKeyFile* _tmp297_ = NULL;
	gchar* _tmp298_ = NULL;
	gchar* _tmp299_ = NULL;
	gboolean _tmp300_ = FALSE;
	LxsessionLxsessionConfigKeyFile* _tmp306_ = NULL;
	gchar* _tmp307_ = NULL;
	gchar* _tmp308_ = NULL;
	gboolean _tmp309_ = FALSE;
	LxsessionLxsessionConfigKeyFile* _tmp314_ = NULL;
	gchar* _tmp315_ = NULL;
	gchar* _tmp316_ = NULL;
	gboolean _tmp317_ = FALSE;
	LxsessionLxsessionConfigKeyFile* _tmp322_ = NULL;
	gchar* _tmp323_ = NULL;
	gchar* _tmp324_ = NULL;
	gboolean _tmp325_ = FALSE;
	LxsessionLxsessionConfigKeyFile* _tmp330_ = NULL;
	gchar* _tmp331_ = NULL;
	gchar* _tmp332_ = NULL;
	gboolean _tmp333_ = FALSE;
	LxsessionLxsessionConfigKeyFile* _tmp338_ = NULL;
	gchar* _tmp339_ = NULL;
	gchar* _tmp340_ = NULL;
	gboolean _tmp341_ = FALSE;
	LxsessionLxsessionConfigKeyFile* _tmp346_ = NULL;
	gchar* _tmp347_ = NULL;
	gchar* _tmp348_ = NULL;
	gboolean _tmp349_ = FALSE;
	LxsessionLxsessionConfigKeyFile* _tmp355_ = NULL;
	gchar* _tmp356_ = NULL;
	gchar* _tmp357_ = NULL;
	gboolean _tmp358_ = FALSE;
	LxsessionLxsessionConfigKeyFile* _tmp359_ = NULL;
	gchar* _tmp360_ = NULL;
	gchar* _tmp361_ = NULL;
	gboolean _tmp362_ = FALSE;
	GMainLoop* _tmp363_ = NULL;
	GMainLoop* _tmp364_ = NULL;
	LxsessionClipboardOption* _tmp365_ = NULL;
	LxsessionLxsessionConfigKeyFile* _tmp367_ = NULL;
	gchar* _tmp368_ = NULL;
	gchar* _tmp369_ = NULL;
	gboolean _tmp370_ = FALSE;
	LxsessionPanelApp* _tmp373_ = NULL;
	LxsessionDockApp* _tmp375_ = NULL;
	LxsessionWindowsManagerApp* _tmp377_ = NULL;
	LxsessionDesktopApp* _tmp379_ = NULL;
	LxsessionPolkitApp* _tmp381_ = NULL;
	LxsessionScreensaverApp* _tmp383_ = NULL;
	LxsessionPowerManagerApp* _tmp385_ = NULL;
	LxsessionNetworkGuiApp* _tmp387_ = NULL;
	LxsessionGenericSimpleApp* _tmp389_ = NULL;
	GError * _inner_error_ = NULL;
	{
		GOptionContext* options_args = NULL;
		GOptionContext* _tmp0_ = NULL;
		GOptionContext* _tmp1_ = NULL;
		GOptionContext* _tmp2_ = NULL;
		GOptionContext* _tmp3_ = NULL;
		_tmp0_ = g_option_context_new ("- Lightweight Session manager");
		options_args = _tmp0_;
		_tmp1_ = options_args;
		g_option_context_set_help_enabled (_tmp1_, TRUE);
		_tmp2_ = options_args;
		g_option_context_add_main_entries (_tmp2_, LXSESSION_MAIN_option_entries, NULL);
		_tmp3_ = options_args;
		g_option_context_parse (_tmp3_, &args_length1, &args, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			_g_option_context_free0 (options_args);
			if (_inner_error_->domain == G_OPTION_ERROR) {
				goto __catch0_g_option_error;
			}
			_g_option_context_free0 (options_args);
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
			g_clear_error (&_inner_error_);
			return 0;
		}
		_g_option_context_free0 (options_args);
	}
	goto __finally0;
	__catch0_g_option_error:
	{
		GError* e = NULL;
		GError* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		e = _inner_error_;
		_inner_error_ = NULL;
		_tmp4_ = e;
		_tmp5_ = _tmp4_->message;
		g_critical ("main.vala:95: Option parsing failed: %s\n", _tmp5_);
		result = -1;
		_g_error_free0 (e);
		return result;
	}
	__finally0:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return 0;
	}
	_tmp6_ = lxsession_main_session;
	g_message ("main.vala:99: Session is %s", _tmp6_);
	_tmp7_ = lxsession_main_desktop_environnement;
	g_message ("main.vala:100: DE is %s", _tmp7_);
	_tmp8_ = lxsession_main_session;
	if (_tmp8_ == NULL) {
		gchar* _tmp9_ = NULL;
		g_message ("main.vala:104: No session set, fallback to LXDE session");
		_tmp9_ = g_strdup ("LXDE");
		_g_free0 (lxsession_main_session);
		lxsession_main_session = _tmp9_;
	}
	_tmp10_ = lxsession_main_desktop_environnement;
	if (_tmp10_ == NULL) {
		gchar* _tmp11_ = NULL;
		g_message ("main.vala:110: No desktop environnement set, fallback to LXDE");
		_tmp11_ = g_strdup ("LXDE");
		_g_free0 (lxsession_main_desktop_environnement);
		lxsession_main_desktop_environnement = _tmp11_;
	}
	_tmp12_ = lxsession_main_session;
	_tmp13_ = g_strdup (_tmp12_);
	_g_free0 (lxsession_session_global);
	lxsession_session_global = _tmp13_;
	_tmp14_ = g_get_user_cache_dir ();
	_tmp15_ = lxsession_main_session;
	_tmp16_ = g_build_filename (_tmp14_, "lxsession", _tmp15_, NULL);
	log_directory = _tmp16_;
	_tmp17_ = log_directory;
	_tmp18_ = g_file_new_for_path (_tmp17_);
	dir_log = _tmp18_;
	_tmp19_ = log_directory;
	_tmp20_ = g_build_filename (_tmp19_, "run.log", NULL);
	log_path = _tmp20_;
	_tmp21_ = log_directory;
	g_message ("main.vala:131: log directory: %s", _tmp21_);
	_tmp22_ = log_path;
	g_message ("main.vala:132: log path: %s", _tmp22_);
	_tmp23_ = dir_log;
	_tmp24_ = g_file_query_exists (_tmp23_, NULL);
	if (!_tmp24_) {
		{
			GFile* _tmp25_ = NULL;
			_tmp25_ = dir_log;
			g_file_make_directory_with_parents (_tmp25_, NULL, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				goto __catch1_g_error;
			}
		}
		goto __finally1;
		__catch1_g_error:
		{
			GError* err = NULL;
			GError* _tmp26_ = NULL;
			const gchar* _tmp27_ = NULL;
			err = _inner_error_;
			_inner_error_ = NULL;
			_tmp26_ = err;
			_tmp27_ = _tmp26_->message;
			g_message ("main.vala:142: %s", _tmp27_);
			_g_error_free0 (err);
		}
		__finally1:
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			_g_free0 (log_path);
			_g_object_unref0 (dir_log);
			_g_free0 (log_directory);
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
			g_clear_error (&_inner_error_);
			return 0;
		}
	}
	_tmp28_ = log_path;
	_tmp29_ = open (_tmp28_, (O_WRONLY | O_CREAT) | O_TRUNC, (mode_t) 0600);
	fint = _tmp29_;
	_tmp30_ = fint;
	dup2 (_tmp30_, STDOUT_FILENO);
	_tmp31_ = fint;
	dup2 (_tmp31_, STDERR_FILENO);
	_tmp32_ = fint;
	close (_tmp32_);
	_tmp33_ = lxsession_lx_signals_new ();
	sig = _tmp33_;
	_tmp34_ = sig;
	_tmp35_ = _g_object_ref0 (_tmp34_);
	_g_object_unref0 (lxsession_global_sig);
	lxsession_global_sig = _tmp35_;
	_tmp36_ = lxsession_main_session;
	_tmp37_ = lxsession_main_desktop_environnement;
	_tmp38_ = lxsession_lxsession_env_new (_tmp36_, _tmp37_);
	environment = _tmp38_;
	_tmp39_ = environment;
	lxsession_lxsession_env_export_primary_env (_tmp39_);
	_tmp40_ = lxsession_main_compatibility;
	if (g_strcmp0 (_tmp40_, "razor-qt") == 0) {
		LxsessionRazorQtConfigKeyFile* config = NULL;
		const gchar* _tmp41_ = NULL;
		const gchar* _tmp42_ = NULL;
		LxsessionRazorQtConfigKeyFile* _tmp43_ = NULL;
		LxsessionRazorQtConfigKeyFile* _tmp44_ = NULL;
		LxsessionLxsessionConfigKeyFile* _tmp45_ = NULL;
		_tmp41_ = lxsession_main_session;
		_tmp42_ = lxsession_main_desktop_environnement;
		_tmp43_ = lxsession_razor_qt_config_key_file_new (_tmp41_, _tmp42_);
		config = _tmp43_;
		_tmp44_ = config;
		_tmp45_ = _g_object_ref0 ((LxsessionLxsessionConfigKeyFile*) _tmp44_);
		_g_object_unref0 (lxsession_global_settings);
		lxsession_global_settings = _tmp45_;
		_g_object_unref0 (config);
	} else {
		LxsessionLxsessionConfigKeyFile* config = NULL;
		const gchar* _tmp46_ = NULL;
		const gchar* _tmp47_ = NULL;
		LxsessionLxsessionConfigKeyFile* _tmp48_ = NULL;
		LxsessionLxsessionConfigKeyFile* _tmp49_ = NULL;
		LxsessionLxsessionConfigKeyFile* _tmp50_ = NULL;
		_tmp46_ = lxsession_main_session;
		_tmp47_ = lxsession_main_desktop_environnement;
		_tmp48_ = lxsession_lxsession_config_key_file_new (_tmp46_, _tmp47_);
		config = _tmp48_;
		_tmp49_ = config;
		_tmp50_ = _g_object_ref0 (_tmp49_);
		_g_object_unref0 (lxsession_global_settings);
		lxsession_global_settings = _tmp50_;
		_g_object_unref0 (config);
	}
	_tmp51_ = lxsession_global_settings;
	lxsession_lxsession_config_key_file_sync_setting_files (_tmp51_);
	_tmp52_ = environment;
	lxsession_lxsession_env_export_env (_tmp52_);
	_tmp53_ = lxsession_get_config_path ("conffiles.conf");
	conffiles_conf = _tmp53_;
	_tmp54_ = conffiles_conf;
	_tmp55_ = g_file_test (_tmp54_, G_FILE_TEST_EXISTS);
	if (_tmp55_) {
		LxsessionConffilesObject* conffiles = NULL;
		const gchar* _tmp56_ = NULL;
		LxsessionConffilesObject* _tmp57_ = NULL;
		LxsessionConffilesObject* _tmp58_ = NULL;
		_tmp56_ = conffiles_conf;
		_tmp57_ = lxsession_conffiles_object_new (_tmp56_);
		conffiles = _tmp57_;
		_tmp58_ = conffiles;
		lxsession_conffiles_object_apply (_tmp58_);
		_g_object_unref0 (conffiles);
	}
	_tmp59_ = lxsession_main_noxsettings;
	if (_tmp59_ == FALSE) {
		LxsessionXSettingsOption* _tmp60_ = NULL;
		_tmp60_ = lxsession_global_xsettings_manager;
		if (_tmp60_ == NULL) {
			LxsessionXSettingsOption* xsettings = NULL;
			LxsessionXSettingsOption* _tmp61_ = NULL;
			LxsessionXSettingsOption* _tmp62_ = NULL;
			LxsessionXSettingsOption* _tmp63_ = NULL;
			LxsessionXSettingsOption* _tmp64_ = NULL;
			_tmp61_ = lxsession_xsettings_option_new ();
			xsettings = _tmp61_;
			_tmp62_ = xsettings;
			_tmp63_ = _g_object_ref0 (_tmp62_);
			_g_object_unref0 (lxsession_global_xsettings_manager);
			lxsession_global_xsettings_manager = _tmp63_;
			_tmp64_ = lxsession_global_xsettings_manager;
			lxsession_xsettings_option_activate (_tmp64_);
			_g_object_unref0 (xsettings);
		} else {
			LxsessionXSettingsOption* _tmp65_ = NULL;
			_tmp65_ = lxsession_global_xsettings_manager;
			lxsession_xsettings_option_reload (_tmp65_);
		}
	}
	_tmp66_ = lxsession_global_settings;
	_tmp67_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp66_, "Session", "window_manager", NULL);
	_tmp68_ = _tmp67_;
	_tmp69_ = _tmp68_ != NULL;
	_g_free0 (_tmp68_);
	if (_tmp69_) {
		LxsessionWindowsManagerApp* windowsmanager = NULL;
		LxsessionWindowsManagerApp* _tmp70_ = NULL;
		LxsessionWindowsManagerApp* _tmp71_ = NULL;
		LxsessionWindowsManagerApp* _tmp72_ = NULL;
		LxsessionWindowsManagerApp* _tmp73_ = NULL;
		_tmp70_ = lxsession_windows_manager_app_new ();
		windowsmanager = _tmp70_;
		_tmp71_ = windowsmanager;
		_tmp72_ = _g_object_ref0 (_tmp71_);
		_g_object_unref0 (lxsession_global_windows_manager);
		lxsession_global_windows_manager = _tmp72_;
		_tmp73_ = lxsession_global_windows_manager;
		lxsession_windows_manager_app_launch (_tmp73_);
		_g_object_unref0 (windowsmanager);
	} else {
		LxsessionLxsessionConfigKeyFile* _tmp74_ = NULL;
		gchar* _tmp75_ = NULL;
		gchar* _tmp76_ = NULL;
		gboolean _tmp77_ = FALSE;
		_tmp74_ = lxsession_global_settings;
		_tmp75_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp74_, "Session", "windows_manager", "command");
		_tmp76_ = _tmp75_;
		_tmp77_ = _tmp76_ != NULL;
		_g_free0 (_tmp76_);
		if (_tmp77_) {
			LxsessionWindowsManagerApp* windowsmanager = NULL;
			LxsessionWindowsManagerApp* _tmp78_ = NULL;
			LxsessionWindowsManagerApp* _tmp79_ = NULL;
			LxsessionWindowsManagerApp* _tmp80_ = NULL;
			LxsessionWindowsManagerApp* _tmp81_ = NULL;
			_tmp78_ = lxsession_windows_manager_app_new ();
			windowsmanager = _tmp78_;
			_tmp79_ = windowsmanager;
			_tmp80_ = _g_object_ref0 (_tmp79_);
			_g_object_unref0 (lxsession_global_windows_manager);
			lxsession_global_windows_manager = _tmp80_;
			_tmp81_ = lxsession_global_windows_manager;
			lxsession_windows_manager_app_launch (_tmp81_);
			_g_object_unref0 (windowsmanager);
		}
	}
	_tmp82_ = lxsession_global_settings;
	_tmp83_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp82_, "Session", "disable_autostart", NULL);
	_tmp84_ = _tmp83_;
	_tmp85_ = g_strcmp0 (_tmp84_, "all") == 0;
	_g_free0 (_tmp84_);
	if (_tmp85_) {
		lxsession_main_autostart = TRUE;
	}
	_tmp86_ = lxsession_main_autostart;
	if (_tmp86_ == FALSE) {
		LxsessionLxsessionConfigKeyFile* _tmp87_ = NULL;
		gchar* _tmp88_ = NULL;
		gchar* _tmp89_ = NULL;
		gboolean _tmp90_ = FALSE;
		LxsessionLxsessionConfigKeyFile* _tmp95_ = NULL;
		gchar* _tmp96_ = NULL;
		gchar* _tmp97_ = NULL;
		gboolean _tmp98_ = FALSE;
		LxsessionLxsessionConfigKeyFile* _tmp103_ = NULL;
		gchar* _tmp104_ = NULL;
		gchar* _tmp105_ = NULL;
		gboolean _tmp106_ = FALSE;
		LxsessionLxsessionConfigKeyFile* _tmp111_ = NULL;
		gchar* _tmp112_ = NULL;
		gchar* _tmp113_ = NULL;
		gboolean _tmp114_ = FALSE;
		LxsessionLxsessionConfigKeyFile* _tmp133_ = NULL;
		gchar* _tmp134_ = NULL;
		gchar* _tmp135_ = NULL;
		gboolean _tmp136_ = FALSE;
		LxsessionLxsessionConfigKeyFile* _tmp155_ = NULL;
		gchar* _tmp156_ = NULL;
		gchar* _tmp157_ = NULL;
		gboolean _tmp158_ = FALSE;
		LxsessionLxsessionConfigKeyFile* _tmp163_ = NULL;
		gchar* _tmp164_ = NULL;
		gchar* _tmp165_ = NULL;
		gboolean _tmp166_ = FALSE;
		LxsessionLxsessionConfigKeyFile* _tmp179_ = NULL;
		gchar* _tmp180_ = NULL;
		gchar* _tmp181_ = NULL;
		gboolean _tmp182_ = FALSE;
		LxsessionLxsessionConfigKeyFile* _tmp187_ = NULL;
		gchar* _tmp188_ = NULL;
		gchar* _tmp189_ = NULL;
		gboolean _tmp190_ = FALSE;
		LxsessionLxsessionConfigKeyFile* _tmp199_ = NULL;
		gchar* _tmp200_ = NULL;
		gchar* _tmp201_ = NULL;
		gboolean _tmp202_ = FALSE;
		LxsessionLxsessionConfigKeyFile* _tmp215_ = NULL;
		gchar* _tmp216_ = NULL;
		gchar* _tmp217_ = NULL;
		gboolean _tmp218_ = FALSE;
		LxsessionLxsessionConfigKeyFile* _tmp231_ = NULL;
		gchar* _tmp232_ = NULL;
		gchar* _tmp233_ = NULL;
		gboolean _tmp234_ = FALSE;
		LxsessionLxsessionConfigKeyFile* _tmp247_ = NULL;
		gchar* _tmp248_ = NULL;
		gchar* _tmp249_ = NULL;
		gboolean _tmp250_ = FALSE;
		LxsessionLxsessionConfigKeyFile* _tmp263_ = NULL;
		gchar* _tmp264_ = NULL;
		gchar* _tmp265_ = NULL;
		gboolean _tmp266_ = FALSE;
		LxsessionLxsessionAutostartConfig* _auto_ = NULL;
		LxsessionLxsessionAutostartConfig* _tmp279_ = NULL;
		LxsessionLxsessionAutostartConfig* _tmp280_ = NULL;
		LxsessionLxsessionConfigKeyFile* _tmp281_ = NULL;
		gchar* _tmp282_ = NULL;
		gchar* _tmp283_ = NULL;
		gboolean _tmp284_ = FALSE;
		_tmp87_ = lxsession_global_settings;
		_tmp88_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp87_, "Session", "panel", "command");
		_tmp89_ = _tmp88_;
		_tmp90_ = _tmp89_ != NULL;
		_g_free0 (_tmp89_);
		if (_tmp90_) {
			LxsessionPanelApp* panel = NULL;
			LxsessionPanelApp* _tmp91_ = NULL;
			LxsessionPanelApp* _tmp92_ = NULL;
			LxsessionPanelApp* _tmp93_ = NULL;
			LxsessionPanelApp* _tmp94_ = NULL;
			_tmp91_ = lxsession_panel_app_new ();
			panel = _tmp91_;
			_tmp92_ = panel;
			_tmp93_ = _g_object_ref0 (_tmp92_);
			_g_object_unref0 (lxsession_global_panel);
			lxsession_global_panel = _tmp93_;
			_tmp94_ = lxsession_global_panel;
			lxsession_app_object_launch ((LxsessionAppObject*) _tmp94_);
			_g_object_unref0 (panel);
		}
		_tmp95_ = lxsession_global_settings;
		_tmp96_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp95_, "Session", "dock", "command");
		_tmp97_ = _tmp96_;
		_tmp98_ = _tmp97_ != NULL;
		_g_free0 (_tmp97_);
		if (_tmp98_) {
			LxsessionDockApp* dock = NULL;
			LxsessionDockApp* _tmp99_ = NULL;
			LxsessionDockApp* _tmp100_ = NULL;
			LxsessionDockApp* _tmp101_ = NULL;
			LxsessionDockApp* _tmp102_ = NULL;
			_tmp99_ = lxsession_dock_app_new ();
			dock = _tmp99_;
			_tmp100_ = dock;
			_tmp101_ = _g_object_ref0 (_tmp100_);
			_g_object_unref0 (lxsession_global_dock);
			lxsession_global_dock = _tmp101_;
			_tmp102_ = lxsession_global_dock;
			lxsession_app_object_launch ((LxsessionAppObject*) _tmp102_);
			_g_object_unref0 (dock);
		}
		_tmp103_ = lxsession_global_settings;
		_tmp104_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp103_, "Session", "screensaver", "command");
		_tmp105_ = _tmp104_;
		_tmp106_ = _tmp105_ != NULL;
		_g_free0 (_tmp105_);
		if (_tmp106_) {
			LxsessionScreensaverApp* screensaver = NULL;
			LxsessionScreensaverApp* _tmp107_ = NULL;
			LxsessionScreensaverApp* _tmp108_ = NULL;
			LxsessionScreensaverApp* _tmp109_ = NULL;
			LxsessionScreensaverApp* _tmp110_ = NULL;
			_tmp107_ = lxsession_screensaver_app_new ();
			screensaver = _tmp107_;
			_tmp108_ = screensaver;
			_tmp109_ = _g_object_ref0 (_tmp108_);
			_g_object_unref0 (lxsession_global_screensaver);
			lxsession_global_screensaver = _tmp109_;
			_tmp110_ = lxsession_global_screensaver;
			lxsession_app_object_launch ((LxsessionAppObject*) _tmp110_);
			_g_object_unref0 (screensaver);
		}
		_tmp111_ = lxsession_global_settings;
		_tmp112_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp111_, "Session", "power_manager", "command");
		_tmp113_ = _tmp112_;
		_tmp114_ = _tmp113_ != NULL;
		_g_free0 (_tmp113_);
		if (_tmp114_) {
			LxsessionLxsessionConfigKeyFile* _tmp115_ = NULL;
			gchar* _tmp116_ = NULL;
			gchar* _tmp117_ = NULL;
			gboolean _tmp118_ = FALSE;
			_tmp115_ = lxsession_global_settings;
			_tmp116_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp115_, "State", "laptop_mode", NULL);
			_tmp117_ = _tmp116_;
			_tmp118_ = g_strcmp0 (_tmp117_, "unknown") == 0;
			_g_free0 (_tmp117_);
			if (_tmp118_) {
				gboolean state = FALSE;
				gboolean _tmp119_ = FALSE;
				gchar* state_text = NULL;
				gchar* _tmp120_ = NULL;
				gboolean _tmp121_ = FALSE;
				LxsessionLxSignals* _tmp123_ = NULL;
				const gchar* _tmp124_ = NULL;
				LxsessionPowerManagerApp* powermanager = NULL;
				LxsessionPowerManagerApp* _tmp125_ = NULL;
				LxsessionPowerManagerApp* _tmp126_ = NULL;
				LxsessionPowerManagerApp* _tmp127_ = NULL;
				LxsessionPowerManagerApp* _tmp128_ = NULL;
				_tmp119_ = lxsession_detect_laptop ();
				state = _tmp119_;
				_tmp120_ = g_strdup ("no");
				state_text = _tmp120_;
				_tmp121_ = state;
				if (_tmp121_ == TRUE) {
					gchar* _tmp122_ = NULL;
					_tmp122_ = g_strdup ("yes");
					_g_free0 (state_text);
					state_text = _tmp122_;
				}
				_tmp123_ = lxsession_global_sig;
				_tmp124_ = state_text;
				g_signal_emit_by_name (_tmp123_, "generic-set-signal", "State", "laptop_mode", NULL, "string", _tmp124_);
				_tmp125_ = lxsession_power_manager_app_new ();
				powermanager = _tmp125_;
				_tmp126_ = powermanager;
				_tmp127_ = _g_object_ref0 (_tmp126_);
				_g_object_unref0 (lxsession_global_power_manager);
				lxsession_global_power_manager = _tmp127_;
				_tmp128_ = lxsession_global_power_manager;
				lxsession_app_object_launch ((LxsessionAppObject*) _tmp128_);
				_g_object_unref0 (powermanager);
				_g_free0 (state_text);
			} else {
				LxsessionPowerManagerApp* powermanager = NULL;
				LxsessionPowerManagerApp* _tmp129_ = NULL;
				LxsessionPowerManagerApp* _tmp130_ = NULL;
				LxsessionPowerManagerApp* _tmp131_ = NULL;
				LxsessionPowerManagerApp* _tmp132_ = NULL;
				_tmp129_ = lxsession_power_manager_app_new ();
				powermanager = _tmp129_;
				_tmp130_ = powermanager;
				_tmp131_ = _g_object_ref0 (_tmp130_);
				_g_object_unref0 (lxsession_global_power_manager);
				lxsession_global_power_manager = _tmp131_;
				_tmp132_ = lxsession_global_power_manager;
				lxsession_app_object_launch ((LxsessionAppObject*) _tmp132_);
				_g_object_unref0 (powermanager);
			}
		}
		_tmp133_ = lxsession_global_settings;
		_tmp134_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp133_, "Session", "network_gui", "command");
		_tmp135_ = _tmp134_;
		_tmp136_ = _tmp135_ != NULL;
		_g_free0 (_tmp135_);
		if (_tmp136_) {
			LxsessionLxsessionConfigKeyFile* _tmp137_ = NULL;
			gchar* _tmp138_ = NULL;
			gchar* _tmp139_ = NULL;
			gboolean _tmp140_ = FALSE;
			_tmp137_ = lxsession_global_settings;
			_tmp138_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp137_, "State", "laptop_mode", NULL);
			_tmp139_ = _tmp138_;
			_tmp140_ = g_strcmp0 (_tmp139_, "unknown") == 0;
			_g_free0 (_tmp139_);
			if (_tmp140_) {
				gboolean state = FALSE;
				gboolean _tmp141_ = FALSE;
				gchar* state_text = NULL;
				gchar* _tmp142_ = NULL;
				gboolean _tmp143_ = FALSE;
				LxsessionLxSignals* _tmp145_ = NULL;
				const gchar* _tmp146_ = NULL;
				LxsessionNetworkGuiApp* networkgui = NULL;
				LxsessionNetworkGuiApp* _tmp147_ = NULL;
				LxsessionNetworkGuiApp* _tmp148_ = NULL;
				LxsessionNetworkGuiApp* _tmp149_ = NULL;
				LxsessionNetworkGuiApp* _tmp150_ = NULL;
				_tmp141_ = lxsession_detect_laptop ();
				state = _tmp141_;
				_tmp142_ = g_strdup ("no");
				state_text = _tmp142_;
				_tmp143_ = state;
				if (_tmp143_ == TRUE) {
					gchar* _tmp144_ = NULL;
					_tmp144_ = g_strdup ("yes");
					_g_free0 (state_text);
					state_text = _tmp144_;
				}
				_tmp145_ = lxsession_global_sig;
				_tmp146_ = state_text;
				g_signal_emit_by_name (_tmp145_, "generic-set-signal", "State", "laptop_mode", NULL, "string", _tmp146_);
				_tmp147_ = lxsession_network_gui_app_new ();
				networkgui = _tmp147_;
				_tmp148_ = networkgui;
				_tmp149_ = _g_object_ref0 (_tmp148_);
				_g_object_unref0 (lxsession_global_network_gui);
				lxsession_global_network_gui = _tmp149_;
				_tmp150_ = lxsession_global_network_gui;
				lxsession_app_object_launch ((LxsessionAppObject*) _tmp150_);
				_g_object_unref0 (networkgui);
				_g_free0 (state_text);
			} else {
				LxsessionNetworkGuiApp* networkgui = NULL;
				LxsessionNetworkGuiApp* _tmp151_ = NULL;
				LxsessionNetworkGuiApp* _tmp152_ = NULL;
				LxsessionNetworkGuiApp* _tmp153_ = NULL;
				LxsessionNetworkGuiApp* _tmp154_ = NULL;
				_tmp151_ = lxsession_network_gui_app_new ();
				networkgui = _tmp151_;
				_tmp152_ = networkgui;
				_tmp153_ = _g_object_ref0 (_tmp152_);
				_g_object_unref0 (lxsession_global_network_gui);
				lxsession_global_network_gui = _tmp153_;
				_tmp154_ = lxsession_global_network_gui;
				lxsession_app_object_launch ((LxsessionAppObject*) _tmp154_);
				_g_object_unref0 (networkgui);
			}
		}
		_tmp155_ = lxsession_global_settings;
		_tmp156_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp155_, "Session", "desktop_manager", "command");
		_tmp157_ = _tmp156_;
		_tmp158_ = _tmp157_ != NULL;
		_g_free0 (_tmp157_);
		if (_tmp158_) {
			LxsessionDesktopApp* desktopmanager = NULL;
			LxsessionDesktopApp* _tmp159_ = NULL;
			LxsessionDesktopApp* _tmp160_ = NULL;
			LxsessionDesktopApp* _tmp161_ = NULL;
			LxsessionDesktopApp* _tmp162_ = NULL;
			_tmp159_ = lxsession_desktop_app_new ();
			desktopmanager = _tmp159_;
			_tmp160_ = desktopmanager;
			_tmp161_ = _g_object_ref0 (_tmp160_);
			_g_object_unref0 (lxsession_global_desktop);
			lxsession_global_desktop = _tmp161_;
			_tmp162_ = lxsession_global_desktop;
			lxsession_app_object_launch ((LxsessionAppObject*) _tmp162_);
			_g_object_unref0 (desktopmanager);
		}
		_tmp163_ = lxsession_global_settings;
		_tmp164_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp163_, "Session", "composite_manager", "autostart");
		_tmp165_ = _tmp164_;
		_tmp166_ = g_strcmp0 (_tmp165_, "true") == 0;
		_g_free0 (_tmp165_);
		if (_tmp166_) {
			LxsessionLxsessionConfigKeyFile* _tmp167_ = NULL;
			gchar* _tmp168_ = NULL;
			gchar* _tmp169_ = NULL;
			gboolean _tmp170_ = FALSE;
			_tmp167_ = lxsession_global_settings;
			_tmp168_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp167_, "Session", "composite_manager", "command");
			_tmp169_ = _tmp168_;
			_tmp170_ = _tmp169_ != NULL;
			_g_free0 (_tmp169_);
			if (_tmp170_) {
				LxsessionGenericSimpleApp* compositemanager = NULL;
				LxsessionLxsessionConfigKeyFile* _tmp171_ = NULL;
				gchar* _tmp172_ = NULL;
				gchar* _tmp173_ = NULL;
				LxsessionGenericSimpleApp* _tmp174_ = NULL;
				LxsessionGenericSimpleApp* _tmp175_ = NULL;
				LxsessionGenericSimpleApp* _tmp176_ = NULL;
				LxsessionGenericSimpleApp* _tmp177_ = NULL;
				LxsessionGenericSimpleApp* _tmp178_ = NULL;
				_tmp171_ = lxsession_global_settings;
				_tmp172_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp171_, "Session", "composite_manager", "command");
				_tmp173_ = _tmp172_;
				_tmp174_ = lxsession_generic_simple_app_new (_tmp173_);
				_tmp175_ = _tmp174_;
				_g_free0 (_tmp173_);
				compositemanager = _tmp175_;
				_tmp176_ = compositemanager;
				_tmp177_ = _g_object_ref0 (_tmp176_);
				_g_object_unref0 (lxsession_global_composite_manager);
				lxsession_global_composite_manager = _tmp177_;
				_tmp178_ = lxsession_global_composite_manager;
				lxsession_app_object_launch ((LxsessionAppObject*) _tmp178_);
				_g_object_unref0 (compositemanager);
			}
		}
		_tmp179_ = lxsession_global_settings;
		_tmp180_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp179_, "Session", "polkit", "command");
		_tmp181_ = _tmp180_;
		_tmp182_ = _tmp181_ != NULL;
		_g_free0 (_tmp181_);
		if (_tmp182_) {
			LxsessionPolkitApp* securitypolkit = NULL;
			LxsessionPolkitApp* _tmp183_ = NULL;
			LxsessionPolkitApp* _tmp184_ = NULL;
			LxsessionPolkitApp* _tmp185_ = NULL;
			LxsessionPolkitApp* _tmp186_ = NULL;
			_tmp183_ = lxsession_polkit_app_new ();
			securitypolkit = _tmp183_;
			_tmp184_ = securitypolkit;
			_tmp185_ = _g_object_ref0 (_tmp184_);
			_g_object_unref0 (lxsession_global_polkit);
			lxsession_global_polkit = _tmp185_;
			_tmp186_ = lxsession_global_polkit;
			lxsession_app_object_launch ((LxsessionAppObject*) _tmp186_);
			_g_object_unref0 (securitypolkit);
		}
		_tmp187_ = lxsession_global_settings;
		_tmp188_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp187_, "Session", "launcher_manager", "autostart");
		_tmp189_ = _tmp188_;
		_tmp190_ = g_strcmp0 (_tmp189_, "true") == 0;
		_g_free0 (_tmp189_);
		if (_tmp190_) {
			LxsessionLxsessionConfigKeyFile* _tmp191_ = NULL;
			gchar* _tmp192_ = NULL;
			gchar* _tmp193_ = NULL;
			gboolean _tmp194_ = FALSE;
			_tmp191_ = lxsession_global_settings;
			_tmp192_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp191_, "Session", "launcher_manager", "command");
			_tmp193_ = _tmp192_;
			_tmp194_ = _tmp193_ != NULL;
			_g_free0 (_tmp193_);
			if (_tmp194_) {
				LxsessionLauncherManagerApp* launcher = NULL;
				LxsessionLauncherManagerApp* _tmp195_ = NULL;
				LxsessionLauncherManagerApp* _tmp196_ = NULL;
				LxsessionLauncherManagerApp* _tmp197_ = NULL;
				LxsessionLauncherManagerApp* _tmp198_ = NULL;
				_tmp195_ = lxsession_launcher_manager_app_new ();
				launcher = _tmp195_;
				_tmp196_ = launcher;
				_tmp197_ = _g_object_ref0 (_tmp196_);
				_g_object_unref0 (lxsession_global_launcher_manager);
				lxsession_global_launcher_manager = _tmp197_;
				_tmp198_ = lxsession_global_launcher_manager;
				lxsession_launcher_manager_app_autostart_launch (_tmp198_);
				_g_object_unref0 (launcher);
			}
		}
		_tmp199_ = lxsession_global_settings;
		_tmp200_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp199_, "Session", "im1", "autostart");
		_tmp201_ = _tmp200_;
		_tmp202_ = g_strcmp0 (_tmp201_, "true") == 0;
		_g_free0 (_tmp201_);
		if (_tmp202_) {
			LxsessionLxsessionConfigKeyFile* _tmp203_ = NULL;
			gchar* _tmp204_ = NULL;
			gchar* _tmp205_ = NULL;
			gboolean _tmp206_ = FALSE;
			_tmp203_ = lxsession_global_settings;
			_tmp204_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp203_, "Session", "im1", "command");
			_tmp205_ = _tmp204_;
			_tmp206_ = _tmp205_ != NULL;
			_g_free0 (_tmp205_);
			if (_tmp206_) {
				LxsessionGenericSimpleApp* im1 = NULL;
				LxsessionLxsessionConfigKeyFile* _tmp207_ = NULL;
				gchar* _tmp208_ = NULL;
				gchar* _tmp209_ = NULL;
				LxsessionGenericSimpleApp* _tmp210_ = NULL;
				LxsessionGenericSimpleApp* _tmp211_ = NULL;
				LxsessionGenericSimpleApp* _tmp212_ = NULL;
				LxsessionGenericSimpleApp* _tmp213_ = NULL;
				LxsessionGenericSimpleApp* _tmp214_ = NULL;
				_tmp207_ = lxsession_global_settings;
				_tmp208_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp207_, "Session", "im1", "command");
				_tmp209_ = _tmp208_;
				_tmp210_ = lxsession_generic_simple_app_new (_tmp209_);
				_tmp211_ = _tmp210_;
				_g_free0 (_tmp209_);
				im1 = _tmp211_;
				_tmp212_ = im1;
				_tmp213_ = _g_object_ref0 (_tmp212_);
				_g_object_unref0 (lxsession_global_im1);
				lxsession_global_im1 = _tmp213_;
				_tmp214_ = lxsession_global_im1;
				lxsession_app_object_launch ((LxsessionAppObject*) _tmp214_);
				_g_object_unref0 (im1);
			}
		}
		_tmp215_ = lxsession_global_settings;
		_tmp216_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp215_, "Session", "im2", "autostart");
		_tmp217_ = _tmp216_;
		_tmp218_ = g_strcmp0 (_tmp217_, "true") == 0;
		_g_free0 (_tmp217_);
		if (_tmp218_) {
			LxsessionLxsessionConfigKeyFile* _tmp219_ = NULL;
			gchar* _tmp220_ = NULL;
			gchar* _tmp221_ = NULL;
			gboolean _tmp222_ = FALSE;
			_tmp219_ = lxsession_global_settings;
			_tmp220_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp219_, "Session", "im2", "command");
			_tmp221_ = _tmp220_;
			_tmp222_ = _tmp221_ != NULL;
			_g_free0 (_tmp221_);
			if (_tmp222_) {
				LxsessionGenericSimpleApp* im2 = NULL;
				LxsessionLxsessionConfigKeyFile* _tmp223_ = NULL;
				gchar* _tmp224_ = NULL;
				gchar* _tmp225_ = NULL;
				LxsessionGenericSimpleApp* _tmp226_ = NULL;
				LxsessionGenericSimpleApp* _tmp227_ = NULL;
				LxsessionGenericSimpleApp* _tmp228_ = NULL;
				LxsessionGenericSimpleApp* _tmp229_ = NULL;
				LxsessionGenericSimpleApp* _tmp230_ = NULL;
				_tmp223_ = lxsession_global_settings;
				_tmp224_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp223_, "Session", "im2", "command");
				_tmp225_ = _tmp224_;
				_tmp226_ = lxsession_generic_simple_app_new (_tmp225_);
				_tmp227_ = _tmp226_;
				_g_free0 (_tmp225_);
				im2 = _tmp227_;
				_tmp228_ = im2;
				_tmp229_ = _g_object_ref0 (_tmp228_);
				_g_object_unref0 (lxsession_global_im2);
				lxsession_global_im2 = _tmp229_;
				_tmp230_ = lxsession_global_im2;
				lxsession_app_object_launch ((LxsessionAppObject*) _tmp230_);
				_g_object_unref0 (im2);
			}
		}
		_tmp231_ = lxsession_global_settings;
		_tmp232_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp231_, "Session", "widget1", "autostart");
		_tmp233_ = _tmp232_;
		_tmp234_ = g_strcmp0 (_tmp233_, "true") == 0;
		_g_free0 (_tmp233_);
		if (_tmp234_) {
			LxsessionLxsessionConfigKeyFile* _tmp235_ = NULL;
			gchar* _tmp236_ = NULL;
			gchar* _tmp237_ = NULL;
			gboolean _tmp238_ = FALSE;
			_tmp235_ = lxsession_global_settings;
			_tmp236_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp235_, "Session", "widget1", "command");
			_tmp237_ = _tmp236_;
			_tmp238_ = _tmp237_ != NULL;
			_g_free0 (_tmp237_);
			if (_tmp238_) {
				LxsessionGenericSimpleApp* widget1 = NULL;
				LxsessionLxsessionConfigKeyFile* _tmp239_ = NULL;
				gchar* _tmp240_ = NULL;
				gchar* _tmp241_ = NULL;
				LxsessionGenericSimpleApp* _tmp242_ = NULL;
				LxsessionGenericSimpleApp* _tmp243_ = NULL;
				LxsessionGenericSimpleApp* _tmp244_ = NULL;
				LxsessionGenericSimpleApp* _tmp245_ = NULL;
				LxsessionGenericSimpleApp* _tmp246_ = NULL;
				_tmp239_ = lxsession_global_settings;
				_tmp240_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp239_, "Session", "widget1", "command");
				_tmp241_ = _tmp240_;
				_tmp242_ = lxsession_generic_simple_app_new (_tmp241_);
				_tmp243_ = _tmp242_;
				_g_free0 (_tmp241_);
				widget1 = _tmp243_;
				_tmp244_ = widget1;
				_tmp245_ = _g_object_ref0 (_tmp244_);
				_g_object_unref0 (lxsession_global_widget1);
				lxsession_global_widget1 = _tmp245_;
				_tmp246_ = lxsession_global_widget1;
				lxsession_app_object_launch ((LxsessionAppObject*) _tmp246_);
				_g_object_unref0 (widget1);
			}
		}
		_tmp247_ = lxsession_global_settings;
		_tmp248_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp247_, "Session", "notification", "autostart");
		_tmp249_ = _tmp248_;
		_tmp250_ = g_strcmp0 (_tmp249_, "true") == 0;
		_g_free0 (_tmp249_);
		if (_tmp250_) {
			LxsessionLxsessionConfigKeyFile* _tmp251_ = NULL;
			gchar* _tmp252_ = NULL;
			gchar* _tmp253_ = NULL;
			gboolean _tmp254_ = FALSE;
			_tmp251_ = lxsession_global_settings;
			_tmp252_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp251_, "Session", "notification", "command");
			_tmp253_ = _tmp252_;
			_tmp254_ = _tmp253_ != NULL;
			_g_free0 (_tmp253_);
			if (_tmp254_) {
				LxsessionGenericSimpleApp* notification = NULL;
				LxsessionLxsessionConfigKeyFile* _tmp255_ = NULL;
				gchar* _tmp256_ = NULL;
				gchar* _tmp257_ = NULL;
				LxsessionGenericSimpleApp* _tmp258_ = NULL;
				LxsessionGenericSimpleApp* _tmp259_ = NULL;
				LxsessionGenericSimpleApp* _tmp260_ = NULL;
				LxsessionGenericSimpleApp* _tmp261_ = NULL;
				LxsessionGenericSimpleApp* _tmp262_ = NULL;
				_tmp255_ = lxsession_global_settings;
				_tmp256_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp255_, "Session", "notification", "command");
				_tmp257_ = _tmp256_;
				_tmp258_ = lxsession_generic_simple_app_new (_tmp257_);
				_tmp259_ = _tmp258_;
				_g_free0 (_tmp257_);
				notification = _tmp259_;
				_tmp260_ = notification;
				_tmp261_ = _g_object_ref0 (_tmp260_);
				_g_object_unref0 (lxsession_global_notification);
				lxsession_global_notification = _tmp261_;
				_tmp262_ = lxsession_global_notification;
				lxsession_app_object_launch ((LxsessionAppObject*) _tmp262_);
				_g_object_unref0 (notification);
			}
		}
		_tmp263_ = lxsession_global_settings;
		_tmp264_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp263_, "Session", "keybindings", "autostart");
		_tmp265_ = _tmp264_;
		_tmp266_ = g_strcmp0 (_tmp265_, "true") == 0;
		_g_free0 (_tmp265_);
		if (_tmp266_) {
			LxsessionLxsessionConfigKeyFile* _tmp267_ = NULL;
			gchar* _tmp268_ = NULL;
			gchar* _tmp269_ = NULL;
			gboolean _tmp270_ = FALSE;
			_tmp267_ = lxsession_global_settings;
			_tmp268_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp267_, "Session", "keybindings", "command");
			_tmp269_ = _tmp268_;
			_tmp270_ = _tmp269_ != NULL;
			_g_free0 (_tmp269_);
			if (_tmp270_) {
				LxsessionGenericSimpleApp* keybindings = NULL;
				LxsessionLxsessionConfigKeyFile* _tmp271_ = NULL;
				gchar* _tmp272_ = NULL;
				gchar* _tmp273_ = NULL;
				LxsessionGenericSimpleApp* _tmp274_ = NULL;
				LxsessionGenericSimpleApp* _tmp275_ = NULL;
				LxsessionGenericSimpleApp* _tmp276_ = NULL;
				LxsessionGenericSimpleApp* _tmp277_ = NULL;
				LxsessionGenericSimpleApp* _tmp278_ = NULL;
				_tmp271_ = lxsession_global_settings;
				_tmp272_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp271_, "Session", "keybindings", "command");
				_tmp273_ = _tmp272_;
				_tmp274_ = lxsession_generic_simple_app_new (_tmp273_);
				_tmp275_ = _tmp274_;
				_g_free0 (_tmp273_);
				keybindings = _tmp275_;
				_tmp276_ = keybindings;
				_tmp277_ = _g_object_ref0 (_tmp276_);
				_g_object_unref0 (lxsession_global_keybindings);
				lxsession_global_keybindings = _tmp277_;
				_tmp278_ = lxsession_global_keybindings;
				lxsession_app_object_launch ((LxsessionAppObject*) _tmp278_);
				_g_object_unref0 (keybindings);
			}
		}
		_tmp279_ = lxsession_lxsession_autostart_config_new ();
		_auto_ = _tmp279_;
		_tmp280_ = _auto_;
		lxsession_lxsession_autostart_config_start_applications (_tmp280_);
		_tmp281_ = lxsession_global_settings;
		_tmp282_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp281_, "Session", "disable_autostart", NULL);
		_tmp283_ = _tmp282_;
		_tmp284_ = g_strcmp0 (_tmp283_, "config-only") == 0;
		_g_free0 (_tmp283_);
		if (_tmp284_) {
		} else {
			lxsession_lxsession_spawn_command_line_async ("lxsession-xdg-autostart");
		}
		_g_object_unref0 (_auto_);
	}
	_tmp285_ = lxsession_global_settings;
	_tmp286_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp285_, "Session", "clipboard", "command");
	_tmp287_ = _tmp286_;
	_tmp288_ = _tmp287_ != NULL;
	_g_free0 (_tmp287_);
	if (_tmp288_) {
		LxsessionClipboardOption* clipboard = NULL;
		LxsessionLxsessionConfigKeyFile* _tmp289_ = NULL;
		LxsessionClipboardOption* _tmp290_ = NULL;
		LxsessionClipboardOption* _tmp291_ = NULL;
		LxsessionClipboardOption* _tmp292_ = NULL;
		LxsessionClipboardOption* _tmp293_ = NULL;
		_tmp289_ = lxsession_global_settings;
		_tmp290_ = lxsession_clipboard_option_new ((LxsessionLxsessionConfig*) _tmp289_);
		clipboard = _tmp290_;
		_tmp291_ = clipboard;
		_tmp292_ = _g_object_ref0 (_tmp291_);
		_g_object_unref0 (lxsession_global_clipboard);
		lxsession_global_clipboard = _tmp292_;
		_tmp293_ = lxsession_global_clipboard;
		lxsession_option_activate ((LxsessionOption*) _tmp293_);
		_g_object_unref0 (clipboard);
	}
	_tmp294_ = lxsession_global_settings;
	_tmp295_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp294_, "Keymap", "mode", NULL);
	_tmp296_ = _tmp295_;
	g_message ("main.vala:429: Check keymap_mode %s", _tmp296_);
	_g_free0 (_tmp296_);
	_tmp297_ = lxsession_global_settings;
	_tmp298_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp297_, "Keymap", "mode", NULL);
	_tmp299_ = _tmp298_;
	_tmp300_ = _tmp299_ != NULL;
	_g_free0 (_tmp299_);
	if (_tmp300_) {
		LxsessionKeymapOption* keymap = NULL;
		LxsessionLxsessionConfigKeyFile* _tmp301_ = NULL;
		LxsessionKeymapOption* _tmp302_ = NULL;
		LxsessionKeymapOption* _tmp303_ = NULL;
		LxsessionKeymapOption* _tmp304_ = NULL;
		LxsessionKeymapOption* _tmp305_ = NULL;
		g_message ("main.vala:432: Create Option Keymap");
		_tmp301_ = lxsession_global_settings;
		_tmp302_ = lxsession_keymap_option_new ((LxsessionLxsessionConfig*) _tmp301_);
		keymap = _tmp302_;
		_tmp303_ = keymap;
		_tmp304_ = _g_object_ref0 (_tmp303_);
		_g_object_unref0 (lxsession_global_keymap);
		lxsession_global_keymap = _tmp304_;
		_tmp305_ = lxsession_global_keymap;
		lxsession_option_activate ((LxsessionOption*) _tmp305_);
		_g_object_unref0 (keymap);
	}
	_tmp306_ = lxsession_global_settings;
	_tmp307_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp306_, "Session", "xrandr", "command");
	_tmp308_ = _tmp307_;
	_tmp309_ = _tmp308_ != NULL;
	_g_free0 (_tmp308_);
	if (_tmp309_) {
		LxsessionXrandrApp* xrandr = NULL;
		LxsessionXrandrApp* _tmp310_ = NULL;
		LxsessionXrandrApp* _tmp311_ = NULL;
		LxsessionXrandrApp* _tmp312_ = NULL;
		LxsessionXrandrApp* _tmp313_ = NULL;
		_tmp310_ = lxsession_xrandr_app_new ();
		xrandr = _tmp310_;
		_tmp311_ = xrandr;
		_tmp312_ = _g_object_ref0 (_tmp311_);
		_g_object_unref0 (lxsession_global_xrandr);
		lxsession_global_xrandr = _tmp312_;
		_tmp313_ = xrandr;
		lxsession_app_object_launch ((LxsessionAppObject*) _tmp313_);
		_g_object_unref0 (xrandr);
	}
	_tmp314_ = lxsession_global_settings;
	_tmp315_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp314_, "Session", "keyring", "command");
	_tmp316_ = _tmp315_;
	_tmp317_ = _tmp316_ != NULL;
	_g_free0 (_tmp316_);
	if (_tmp317_) {
		LxsessionKeyringApp* keyring = NULL;
		LxsessionKeyringApp* _tmp318_ = NULL;
		LxsessionKeyringApp* _tmp319_ = NULL;
		LxsessionKeyringApp* _tmp320_ = NULL;
		LxsessionKeyringApp* _tmp321_ = NULL;
		_tmp318_ = lxsession_keyring_app_new ();
		keyring = _tmp318_;
		_tmp319_ = keyring;
		_tmp320_ = _g_object_ref0 (_tmp319_);
		_g_object_unref0 (lxsession_global_keyring);
		lxsession_global_keyring = _tmp320_;
		_tmp321_ = lxsession_global_keyring;
		lxsession_app_object_launch ((LxsessionAppObject*) _tmp321_);
		_g_object_unref0 (keyring);
	}
	_tmp322_ = lxsession_global_settings;
	_tmp323_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp322_, "Session", "a11y", "command");
	_tmp324_ = _tmp323_;
	_tmp325_ = _tmp324_ != NULL;
	_g_free0 (_tmp324_);
	if (_tmp325_) {
		LxsessionA11yApp* a11y = NULL;
		LxsessionA11yApp* _tmp326_ = NULL;
		LxsessionA11yApp* _tmp327_ = NULL;
		LxsessionA11yApp* _tmp328_ = NULL;
		LxsessionA11yApp* _tmp329_ = NULL;
		_tmp326_ = lxsession_a11y_app_new ();
		a11y = _tmp326_;
		_tmp327_ = a11y;
		_tmp328_ = _g_object_ref0 (_tmp327_);
		_g_object_unref0 (lxsession_global_a11y);
		lxsession_global_a11y = _tmp328_;
		_tmp329_ = lxsession_global_a11y;
		lxsession_app_object_launch ((LxsessionAppObject*) _tmp329_);
		_g_object_unref0 (a11y);
	}
	_tmp330_ = lxsession_global_settings;
	_tmp331_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp330_, "Session", "proxy_manager", "command");
	_tmp332_ = _tmp331_;
	_tmp333_ = _tmp332_ != NULL;
	_g_free0 (_tmp332_);
	if (_tmp333_) {
		LxsessionProxyManagerApp* proxy = NULL;
		LxsessionProxyManagerApp* _tmp334_ = NULL;
		LxsessionProxyManagerApp* _tmp335_ = NULL;
		LxsessionProxyManagerApp* _tmp336_ = NULL;
		LxsessionProxyManagerApp* _tmp337_ = NULL;
		_tmp334_ = lxsession_proxy_manager_app_new ();
		proxy = _tmp334_;
		_tmp335_ = proxy;
		_tmp336_ = _g_object_ref0 (_tmp335_);
		_g_object_unref0 (lxsession_global_proxy);
		lxsession_global_proxy = _tmp336_;
		_tmp337_ = lxsession_global_proxy;
		lxsession_app_object_launch ((LxsessionAppObject*) _tmp337_);
		_g_object_unref0 (proxy);
	}
	_tmp338_ = lxsession_global_settings;
	_tmp339_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp338_, "Session", "udpates_manager", "command");
	_tmp340_ = _tmp339_;
	_tmp341_ = _tmp340_ != NULL;
	_g_free0 (_tmp340_);
	if (_tmp341_) {
		LxsessionUpdatesManagerApp* updates = NULL;
		LxsessionUpdatesManagerApp* _tmp342_ = NULL;
		LxsessionUpdatesManagerApp* _tmp343_ = NULL;
		LxsessionUpdatesManagerApp* _tmp344_ = NULL;
		LxsessionUpdatesManagerApp* _tmp345_ = NULL;
		_tmp342_ = lxsession_updates_manager_app_new ();
		updates = _tmp342_;
		_tmp343_ = updates;
		_tmp344_ = _g_object_ref0 (_tmp343_);
		_g_object_unref0 (lxsession_global_updates);
		lxsession_global_updates = _tmp344_;
		_tmp345_ = lxsession_global_updates;
		lxsession_app_object_launch ((LxsessionAppObject*) _tmp345_);
		_g_object_unref0 (updates);
	}
	_tmp346_ = lxsession_global_settings;
	_tmp347_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp346_, "Session", "upstart_user_session", NULL);
	_tmp348_ = _tmp347_;
	_tmp349_ = g_strcmp0 (_tmp348_, "true") == 0;
	_g_free0 (_tmp348_);
	if (_tmp349_) {
		LxsessionUpstartUserSessionOption* upstart_session = NULL;
		LxsessionLxsessionConfigKeyFile* _tmp350_ = NULL;
		LxsessionUpstartUserSessionOption* _tmp351_ = NULL;
		LxsessionUpstartUserSessionOption* _tmp352_ = NULL;
		LxsessionUpstartUserSessionOption* _tmp353_ = NULL;
		LxsessionUpstartUserSessionOption* _tmp354_ = NULL;
		_tmp350_ = lxsession_global_settings;
		_tmp351_ = lxsession_upstart_user_session_option_new ((LxsessionLxsessionConfig*) _tmp350_);
		upstart_session = _tmp351_;
		_tmp352_ = upstart_session;
		_tmp353_ = _g_object_ref0 (_tmp352_);
		_g_object_unref0 (lxsession_global_upstart_session);
		lxsession_global_upstart_session = _tmp353_;
		_tmp354_ = lxsession_global_upstart_session;
		lxsession_upstart_user_session_option_activate (_tmp354_);
		_g_object_unref0 (upstart_session);
	}
	_tmp355_ = lxsession_global_settings;
	_tmp356_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp355_, "Dbus", "lxde", NULL);
	_tmp357_ = _tmp356_;
	_tmp358_ = g_strcmp0 (_tmp357_, "true") == 0;
	_g_free0 (_tmp357_);
	if (_tmp358_) {
		g_bus_own_name_with_closures (G_BUS_TYPE_SESSION, "org.lxde.SessionManager", G_BUS_NAME_OWNER_FLAGS_NONE, (GClosure*) ((_lxsession_on_bus_aquired_gbus_acquired_callback == NULL) ? NULL : g_cclosure_new ((GCallback) _lxsession_on_bus_aquired_gbus_acquired_callback, NULL, NULL)), (GClosure*) ((____lambda5__gbus_name_acquired_callback == NULL) ? NULL : g_cclosure_new ((GCallback) ____lambda5__gbus_name_acquired_callback, NULL, NULL)), (GClosure*) ((____lambda6__gbus_name_lost_callback == NULL) ? NULL : g_cclosure_new ((GCallback) ____lambda6__gbus_name_lost_callback, NULL, NULL)));
	}
	_tmp359_ = lxsession_global_settings;
	_tmp360_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp359_, "Dbus", "gnome", NULL);
	_tmp361_ = _tmp360_;
	_tmp362_ = g_strcmp0 (_tmp361_, "true") == 0;
	_g_free0 (_tmp361_);
	if (_tmp362_) {
		g_bus_own_name_with_closures (G_BUS_TYPE_SESSION, "org.gnome.SessionManager", G_BUS_NAME_OWNER_FLAGS_NONE, (GClosure*) ((_lxsession_on_gnome_bus_aquired_gbus_acquired_callback == NULL) ? NULL : g_cclosure_new ((GCallback) _lxsession_on_gnome_bus_aquired_gbus_acquired_callback, NULL, NULL)), (GClosure*) ((____lambda7__gbus_name_acquired_callback == NULL) ? NULL : g_cclosure_new ((GCallback) ____lambda7__gbus_name_acquired_callback, NULL, NULL)), (GClosure*) ((____lambda8__gbus_name_lost_callback == NULL) ? NULL : g_cclosure_new ((GCallback) ____lambda8__gbus_name_lost_callback, NULL, NULL)));
	}
	_tmp363_ = g_main_loop_new (NULL, FALSE);
	_tmp364_ = _tmp363_;
	g_main_loop_run (_tmp364_);
	_g_main_loop_unref0 (_tmp364_);
	_tmp365_ = lxsession_global_clipboard;
	if (_tmp365_ != NULL) {
		LxsessionClipboardOption* _tmp366_ = NULL;
		_tmp366_ = lxsession_global_clipboard;
		lxsession_clipboard_option_desactivate (_tmp366_);
	}
	_tmp367_ = lxsession_global_settings;
	_tmp368_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp367_, "Session", "polkit", "command");
	_tmp369_ = _tmp368_;
	_tmp370_ = _tmp369_ != NULL;
	_g_free0 (_tmp369_);
	if (_tmp370_) {
		LxsessionPolkitApp* _tmp371_ = NULL;
		LxsessionPolkitApp* _tmp372_ = NULL;
		_tmp371_ = lxsession_global_polkit;
		lxsession_polkit_app_deactivate (_tmp371_);
		_tmp372_ = lxsession_global_polkit;
		lxsession_app_object_stop ((LxsessionAppObject*) _tmp372_);
	}
	_tmp373_ = lxsession_global_panel;
	if (_tmp373_ != NULL) {
		LxsessionPanelApp* _tmp374_ = NULL;
		_tmp374_ = lxsession_global_panel;
		lxsession_app_object_stop ((LxsessionAppObject*) _tmp374_);
	}
	_tmp375_ = lxsession_global_dock;
	if (_tmp375_ != NULL) {
		LxsessionDockApp* _tmp376_ = NULL;
		_tmp376_ = lxsession_global_dock;
		lxsession_app_object_stop ((LxsessionAppObject*) _tmp376_);
	}
	_tmp377_ = lxsession_global_windows_manager;
	if (_tmp377_ != NULL) {
		LxsessionWindowsManagerApp* _tmp378_ = NULL;
		_tmp378_ = lxsession_global_windows_manager;
		lxsession_app_object_stop ((LxsessionAppObject*) _tmp378_);
	}
	_tmp379_ = lxsession_global_desktop;
	if (_tmp379_ != NULL) {
		LxsessionDesktopApp* _tmp380_ = NULL;
		_tmp380_ = lxsession_global_desktop;
		lxsession_app_object_stop ((LxsessionAppObject*) _tmp380_);
	}
	_tmp381_ = lxsession_global_polkit;
	if (_tmp381_ != NULL) {
		LxsessionPolkitApp* _tmp382_ = NULL;
		_tmp382_ = lxsession_global_polkit;
		lxsession_app_object_stop ((LxsessionAppObject*) _tmp382_);
	}
	_tmp383_ = lxsession_global_screensaver;
	if (_tmp383_ != NULL) {
		LxsessionScreensaverApp* _tmp384_ = NULL;
		_tmp384_ = lxsession_global_screensaver;
		lxsession_app_object_stop ((LxsessionAppObject*) _tmp384_);
	}
	_tmp385_ = lxsession_global_power_manager;
	if (_tmp385_ != NULL) {
		LxsessionPowerManagerApp* _tmp386_ = NULL;
		_tmp386_ = lxsession_global_power_manager;
		lxsession_app_object_stop ((LxsessionAppObject*) _tmp386_);
	}
	_tmp387_ = lxsession_global_network_gui;
	if (_tmp387_ != NULL) {
		LxsessionNetworkGuiApp* _tmp388_ = NULL;
		_tmp388_ = lxsession_global_network_gui;
		lxsession_app_object_stop ((LxsessionAppObject*) _tmp388_);
	}
	_tmp389_ = lxsession_global_composite_manager;
	if (_tmp389_ != NULL) {
		LxsessionGenericSimpleApp* _tmp390_ = NULL;
		_tmp390_ = lxsession_global_composite_manager;
		lxsession_app_object_stop ((LxsessionAppObject*) _tmp390_);
	}
	result = 0;
	_g_free0 (conffiles_conf);
	_g_object_unref0 (environment);
	_g_object_unref0 (sig);
	_g_free0 (log_path);
	_g_object_unref0 (dir_log);
	_g_free0 (log_directory);
	return result;
}


int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
	g_type_init ();
#endif
	return lxsession_main_main (argv, argc);
}


LxsessionMain* lxsession_main_construct (GType object_type) {
	LxsessionMain * self = NULL;
	self = (LxsessionMain*) g_object_new (object_type, NULL);
	return self;
}


LxsessionMain* lxsession_main_new (void) {
	return lxsession_main_construct (LXSESSION_TYPE_MAIN);
}


static void lxsession_main_class_init (LxsessionMainClass * klass) {
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	lxsession_main_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->finalize = lxsession_main_finalize;
	_tmp0_ = g_strdup ("LXDE");
	lxsession_main_session = _tmp0_;
	_tmp1_ = g_strdup ("LXDE");
	lxsession_main_desktop_environnement = _tmp1_;
	_tmp2_ = g_strdup ("");
	lxsession_main_compatibility = _tmp2_;
}


static void lxsession_main_instance_init (LxsessionMain * self) {
}


static void lxsession_main_finalize (GObject* obj) {
	LxsessionMain * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, LXSESSION_TYPE_MAIN, LxsessionMain);
	G_OBJECT_CLASS (lxsession_main_parent_class)->finalize (obj);
}


GType lxsession_main_get_type (void) {
	static volatile gsize lxsession_main_type_id__volatile = 0;
	if (g_once_init_enter (&lxsession_main_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (LxsessionMainClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) lxsession_main_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LxsessionMain), 0, (GInstanceInitFunc) lxsession_main_instance_init, NULL };
		GType lxsession_main_type_id;
		lxsession_main_type_id = g_type_register_static (G_TYPE_OBJECT, "LxsessionMain", &g_define_type_info, 0);
		g_once_init_leave (&lxsession_main_type_id__volatile, lxsession_main_type_id);
	}
	return lxsession_main_type_id__volatile;
}



