/* midori-paths.c generated by valac 0.26.2, the Vala compiler
 * generated from midori-paths.vala, do not modify */

/*
 Copyright (C) 2012 Christian Dywan <christian@twotoasts.de>

 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 2.1 of the License, or (at your option) any later version.

 See the file COPYING for the full license text.
*/

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <gmodule.h>
#include <gtk/gtk.h>
#include "webkit/webkit.h"
#include <stdio.h>
#include <unistd.h>
#include <glib/gstdio.h>
#include <gio/gio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>


#define MIDORI_TYPE_RUNTIME_MODE (midori_runtime_mode_get_type ())
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_dir_close0(var) ((var == NULL) ? NULL : (var = (g_dir_close (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

typedef enum  {
	MIDORI_RUNTIME_MODE_UNDEFINED,
	MIDORI_RUNTIME_MODE_NORMAL,
	MIDORI_RUNTIME_MODE_APP,
	MIDORI_RUNTIME_MODE_PRIVATE,
	MIDORI_RUNTIME_MODE_PORTABLE
} MidoriRuntimeMode;


extern gchar* midori_paths_exec_path;
gchar* midori_paths_exec_path = NULL;
extern gchar** midori_paths_command_line;
extern gint midori_paths_command_line_length1;
gchar** midori_paths_command_line = NULL;
gint midori_paths_command_line_length1 = 0;
static gint _midori_paths_command_line_size_ = 0;
extern gchar* midori_paths_runtime_dir;
gchar* midori_paths_runtime_dir = NULL;
extern MidoriRuntimeMode midori_paths_mode;
MidoriRuntimeMode midori_paths_mode = MIDORI_RUNTIME_MODE_UNDEFINED;
extern gchar* midori_paths_config_dir;
gchar* midori_paths_config_dir = NULL;
extern gchar* midori_paths_readonly_dir;
gchar* midori_paths_readonly_dir = NULL;
extern gchar* midori_paths_cache_dir;
gchar* midori_paths_cache_dir = NULL;
extern gchar* midori_paths_cache_dir_for_reading;
gchar* midori_paths_cache_dir_for_reading = NULL;
extern gchar* midori_paths_user_data_dir;
gchar* midori_paths_user_data_dir = NULL;
extern gchar* midori_paths_user_data_dir_for_reading;
gchar* midori_paths_user_data_dir_for_reading = NULL;
extern gchar* midori_paths_tmp_dir;
gchar* midori_paths_tmp_dir = NULL;

#define MODULE_PREFIX "lib"
#define MODULE_SUFFIX "." G_MODULE_SUFFIX
GType midori_runtime_mode_get_type (void) G_GNUC_CONST;
void midori_paths_test_reset_runtime_mode (void);
gchar* midori_paths_get_config_dir_for_reading (void);
gchar* midori_paths_get_config_filename_for_reading (const gchar* filename);
gboolean midori_paths_is_readonly (void);
MidoriRuntimeMode midori_paths_get_runtime_mode (void);
const gchar* midori_paths_get_runtime_dir (void);
void midori_paths_mkdir_with_parents (const gchar* path, gint mode);
void midori_paths_init (MidoriRuntimeMode new_mode, const gchar* config);
void midori_paths_remove_path (const gchar* path);
const gchar* midori_paths_get_config_dir_for_writing (void);
gchar* midori_paths_get_extension_config_dir (const gchar* extension);
gchar* midori_paths_get_extension_preset_filename (const gchar* extension, const gchar* filename);
gchar* midori_paths_get_preset_filename (const gchar* folder, const gchar* filename);
gchar* midori_paths_get_config_filename_for_writing (const gchar* filename);
const gchar* midori_paths_get_cache_dir (void);
const gchar* midori_paths_get_user_data_dir (void);
const gchar* midori_paths_get_user_data_dir_for_reading (void);
const gchar* midori_paths_get_cache_dir_for_reading (void);
const gchar* midori_paths_get_tmp_dir (void);
gchar* midori_paths_make_tmp_dir (const gchar* tmpl);
void midori_paths_init_exec_path (gchar** new_command_line, int new_command_line_length1);
static gchar** _vala_array_dup1 (gchar** self, int length);
gchar* midori_paths_get_command_line_str (gboolean for_display);
gchar* midori_paths_get_res_filename (const gchar* filename);
gchar* midori_paths_get_lib_path (const gchar* package);
gchar** midori_paths_get_command_line (int* result_length1);
gchar* midori_paths_build_folder (const gchar* folder, const gchar* middle, const gchar* filename);
gchar* midori_paths_get_data_filename (const gchar* filename, gboolean res);
void midori_paths_clear_icons (void);
GdkPixbuf* midori_paths_get_icon (const gchar* uri, GtkWidget* widget);
gboolean midori_uri_is_resource (const gchar* uri);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);


GType midori_runtime_mode_get_type (void) {
	static volatile gsize midori_runtime_mode_type_id__volatile = 0;
	if (g_once_init_enter (&midori_runtime_mode_type_id__volatile)) {
		static const GEnumValue values[] = {{MIDORI_RUNTIME_MODE_UNDEFINED, "MIDORI_RUNTIME_MODE_UNDEFINED", "undefined"}, {MIDORI_RUNTIME_MODE_NORMAL, "MIDORI_RUNTIME_MODE_NORMAL", "normal"}, {MIDORI_RUNTIME_MODE_APP, "MIDORI_RUNTIME_MODE_APP", "app"}, {MIDORI_RUNTIME_MODE_PRIVATE, "MIDORI_RUNTIME_MODE_PRIVATE", "private"}, {MIDORI_RUNTIME_MODE_PORTABLE, "MIDORI_RUNTIME_MODE_PORTABLE", "portable"}, {0, NULL, NULL}};
		GType midori_runtime_mode_type_id;
		midori_runtime_mode_type_id = g_enum_register_static ("MidoriRuntimeMode", values);
		g_once_init_leave (&midori_runtime_mode_type_id__volatile, midori_runtime_mode_type_id);
	}
	return midori_runtime_mode_type_id__volatile;
}


void midori_paths_test_reset_runtime_mode (void) {
#line 51 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	midori_paths_mode = MIDORI_RUNTIME_MODE_UNDEFINED;
#line 127 "midori-paths.c"
}


gchar* midori_paths_get_config_dir_for_reading (void) {
	gchar* result = NULL;
	MidoriRuntimeMode _tmp0_ = 0;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp4_ = NULL;
#line 56 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_mode;
#line 56 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != MIDORI_RUNTIME_MODE_UNDEFINED, "mode != RuntimeMode.UNDEFINED");
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = midori_paths_readonly_dir;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = _tmp2_;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp1_ == NULL) {
#line 147 "midori-paths.c"
		const gchar* _tmp3_ = NULL;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp3_ = midori_paths_config_dir;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp1_ = _tmp3_;
#line 153 "midori-paths.c"
	}
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp4_ = g_strdup (_tmp1_);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp4_;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 161 "midori-paths.c"
}


gchar* midori_paths_get_config_filename_for_reading (const gchar* filename) {
	gchar* result = NULL;
	MidoriRuntimeMode _tmp0_ = 0;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
#line 62 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	g_return_val_if_fail (filename != NULL, NULL);
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_mode;
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != MIDORI_RUNTIME_MODE_UNDEFINED, "mode != RuntimeMode.UNDEFINED");
#line 65 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = midori_paths_readonly_dir;
#line 65 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = _tmp2_;
#line 65 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp1_ == NULL) {
#line 184 "midori-paths.c"
		const gchar* _tmp3_ = NULL;
#line 65 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp3_ = midori_paths_config_dir;
#line 65 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp1_ = _tmp3_;
#line 190 "midori-paths.c"
	}
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp4_ = filename;
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp5_ = g_build_path (G_DIR_SEPARATOR_S, _tmp1_, _tmp4_, NULL);
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp5_;
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 200 "midori-paths.c"
}


gboolean midori_paths_is_readonly (void) {
	gboolean result = FALSE;
	MidoriRuntimeMode _tmp0_ = 0;
	const gchar* _tmp1_ = NULL;
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_mode;
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != MIDORI_RUNTIME_MODE_UNDEFINED, "mode != RuntimeMode.UNDEFINED");
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = midori_paths_readonly_dir;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp1_ != NULL;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 218 "midori-paths.c"
}


MidoriRuntimeMode midori_paths_get_runtime_mode (void) {
	MidoriRuntimeMode result = 0;
	MidoriRuntimeMode _tmp0_ = 0;
	MidoriRuntimeMode _tmp1_ = 0;
#line 74 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_mode;
#line 74 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != MIDORI_RUNTIME_MODE_UNDEFINED, "mode != RuntimeMode.UNDEFINED");
#line 75 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = midori_paths_mode;
#line 75 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp1_;
#line 75 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 236 "midori-paths.c"
}


const gchar* midori_paths_get_runtime_dir (void) {
	const gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp14_ = NULL;
	gchar* _tmp15_ = NULL;
	const gchar* _tmp16_ = NULL;
	const gchar* _tmp17_ = NULL;
#line 79 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_runtime_dir;
#line 79 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp0_ != NULL) {
#line 255 "midori-paths.c"
		const gchar* _tmp1_ = NULL;
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp1_ = midori_paths_runtime_dir;
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		result = _tmp1_;
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		return result;
#line 263 "midori-paths.c"
	}
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = g_getenv ("XDG_RUNTIME_DIR");
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (midori_paths_runtime_dir);
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	midori_paths_runtime_dir = _tmp3_;
#line 88 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp5_ = midori_paths_runtime_dir;
#line 88 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp5_ == NULL) {
#line 88 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp4_ = TRUE;
#line 279 "midori-paths.c"
	} else {
		const gchar* _tmp6_ = NULL;
#line 88 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp6_ = midori_paths_runtime_dir;
#line 88 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp4_ = g_strcmp0 (_tmp6_, "") == 0;
#line 286 "midori-paths.c"
	}
#line 88 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp4_) {
#line 290 "midori-paths.c"
		const gchar* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		const gchar* _tmp12_ = NULL;
		const gchar* _tmp13_ = NULL;
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp7_ = g_get_tmp_dir ();
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp8_ = g_get_user_name ();
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp9_ = g_strconcat (PACKAGE_NAME "-", _tmp8_, NULL);
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp10_ = _tmp9_;
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp11_ = g_build_path (G_DIR_SEPARATOR_S, _tmp7_, _tmp10_, NULL);
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (midori_paths_runtime_dir);
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		midori_paths_runtime_dir = _tmp11_;
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (_tmp10_);
#line 91 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp12_ = midori_paths_runtime_dir;
#line 91 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		midori_paths_mkdir_with_parents (_tmp12_, 0700);
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp13_ = midori_paths_runtime_dir;
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		result = _tmp13_;
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		return result;
#line 324 "midori-paths.c"
	}
#line 95 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp14_ = midori_paths_runtime_dir;
#line 95 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp15_ = g_build_path (G_DIR_SEPARATOR_S, _tmp14_, PACKAGE_NAME, NULL);
#line 95 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (midori_paths_runtime_dir);
#line 95 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	midori_paths_runtime_dir = _tmp15_;
#line 96 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp16_ = midori_paths_runtime_dir;
#line 96 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	midori_paths_mkdir_with_parents (_tmp16_, 0700);
#line 97 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp17_ = midori_paths_runtime_dir;
#line 97 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp17_;
#line 97 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 344 "midori-paths.c"
}


void midori_paths_init (MidoriRuntimeMode new_mode, const gchar* config) {
	MidoriRuntimeMode _tmp0_ = 0;
	MidoriRuntimeMode _tmp1_ = 0;
	MidoriRuntimeMode _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	MidoriRuntimeMode _tmp4_ = 0;
	MidoriRuntimeMode _tmp7_ = 0;
	const gchar* _tmp77_ = NULL;
	GCompareFunc _tmp83_ = NULL;
	const gchar* _tmp84_ = NULL;
	gint _tmp85_ = 0;
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_mode;
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ == MIDORI_RUNTIME_MODE_UNDEFINED, "mode == RuntimeMode.UNDEFINED");
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = new_mode;
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp1_ != MIDORI_RUNTIME_MODE_UNDEFINED, "new_mode != RuntimeMode.UNDEFINED");
#line 103 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = new_mode;
#line 103 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	midori_paths_mode = _tmp2_;
#line 104 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp4_ = midori_paths_mode;
#line 104 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp4_ == MIDORI_RUNTIME_MODE_PORTABLE) {
#line 104 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp3_ = TRUE;
#line 377 "midori-paths.c"
	} else {
		MidoriRuntimeMode _tmp5_ = 0;
#line 104 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp5_ = midori_paths_mode;
#line 104 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp3_ = _tmp5_ == MIDORI_RUNTIME_MODE_PRIVATE;
#line 384 "midori-paths.c"
	}
#line 104 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp3_) {
#line 388 "midori-paths.c"
		GtkSettings* _tmp6_ = NULL;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp6_ = gtk_settings_get_default ();
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		g_object_set (_tmp6_, "gtk-recent-files-max-age", 0, NULL);
#line 394 "midori-paths.c"
	}
#line 106 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp7_ = midori_paths_mode;
#line 106 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp7_ == MIDORI_RUNTIME_MODE_PORTABLE) {
#line 400 "midori-paths.c"
		const gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		const gchar* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
		gchar* _tmp15_ = NULL;
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp8_ = midori_paths_exec_path;
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp9_ = g_build_path (G_DIR_SEPARATOR_S, _tmp8_, "profile", "config", NULL);
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (midori_paths_config_dir);
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		midori_paths_config_dir = _tmp9_;
#line 109 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp10_ = midori_paths_exec_path;
#line 109 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp11_ = g_build_path (G_DIR_SEPARATOR_S, _tmp10_, "profile", "cache", NULL);
#line 109 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (midori_paths_cache_dir);
#line 109 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		midori_paths_cache_dir = _tmp11_;
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp12_ = midori_paths_exec_path;
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp13_ = g_build_path (G_DIR_SEPARATOR_S, _tmp12_, "profile", "misc", NULL);
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (midori_paths_user_data_dir);
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		midori_paths_user_data_dir = _tmp13_;
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp14_ = midori_paths_exec_path;
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp15_ = g_build_path (G_DIR_SEPARATOR_S, _tmp14_, "profile", "tmp", NULL);
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (midori_paths_tmp_dir);
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		midori_paths_tmp_dir = _tmp15_;
#line 441 "midori-paths.c"
	} else {
		MidoriRuntimeMode _tmp16_ = 0;
#line 116 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp16_ = midori_paths_mode;
#line 116 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		if (_tmp16_ == MIDORI_RUNTIME_MODE_APP) {
#line 448 "midori-paths.c"
			const gchar* _tmp17_ = NULL;
			const gchar* _tmp18_ = NULL;
			gchar* _tmp19_ = NULL;
			gchar* _tmp20_ = NULL;
			gchar* _tmp21_ = NULL;
			const gchar* _tmp22_ = NULL;
			gchar* _tmp23_ = NULL;
			const gchar* _tmp24_ = NULL;
			gchar* _tmp25_ = NULL;
			const gchar* _tmp26_ = NULL;
			gchar* _tmp27_ = NULL;
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp17_ = g_get_user_data_dir ();
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp18_ = config;
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp19_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _tmp18_, (gsize) (-1));
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp20_ = _tmp19_;
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp21_ = g_build_path (G_DIR_SEPARATOR_S, _tmp17_, PACKAGE_NAME, "apps", _tmp20_, NULL);
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_g_free0 (midori_paths_config_dir);
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			midori_paths_config_dir = _tmp21_;
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_g_free0 (_tmp20_);
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp22_ = g_get_user_cache_dir ();
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp23_ = g_build_path (G_DIR_SEPARATOR_S, _tmp22_, PACKAGE_NAME, NULL);
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_g_free0 (midori_paths_cache_dir);
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			midori_paths_cache_dir = _tmp23_;
#line 122 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp24_ = g_get_user_data_dir ();
#line 122 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp25_ = g_strdup (_tmp24_);
#line 122 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_g_free0 (midori_paths_user_data_dir_for_reading);
#line 122 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			midori_paths_user_data_dir_for_reading = _tmp25_;
#line 123 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp26_ = midori_paths_get_runtime_dir ();
#line 123 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp27_ = g_strdup (_tmp26_);
#line 123 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_g_free0 (midori_paths_tmp_dir);
#line 123 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			midori_paths_tmp_dir = _tmp27_;
#line 500 "midori-paths.c"
		} else {
			MidoriRuntimeMode _tmp28_ = 0;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp28_ = midori_paths_mode;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			if (_tmp28_ == MIDORI_RUNTIME_MODE_PRIVATE) {
#line 507 "midori-paths.c"
				gchar* _tmp29_ = NULL;
				gboolean _tmp30_ = FALSE;
				const gchar* _tmp31_ = NULL;
				gchar* real_config = NULL;
				gchar* _tmp40_ = NULL;
				gchar* _tmp41_ = NULL;
				const gchar* _tmp42_ = NULL;
				gchar* _tmp43_ = NULL;
				gchar* _tmp46_ = NULL;
				const gchar* _tmp47_ = NULL;
				gchar* _tmp48_ = NULL;
				const gchar* _tmp49_ = NULL;
				gchar* _tmp50_ = NULL;
				const gchar* _tmp51_ = NULL;
				gchar* _tmp52_ = NULL;
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp31_ = config;
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				if (_tmp31_ != NULL) {
#line 527 "midori-paths.c"
					const gchar* _tmp32_ = NULL;
					gboolean _tmp33_ = FALSE;
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp32_ = config;
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp33_ = g_path_is_absolute (_tmp32_);
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp30_ = !_tmp33_;
#line 536 "midori-paths.c"
				} else {
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp30_ = FALSE;
#line 540 "midori-paths.c"
				}
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				if (_tmp30_) {
#line 544 "midori-paths.c"
					gchar* _tmp34_ = NULL;
					gchar* _tmp35_ = NULL;
					const gchar* _tmp36_ = NULL;
					gchar* _tmp37_ = NULL;
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp34_ = g_get_current_dir ();
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp35_ = _tmp34_;
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp36_ = config;
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp37_ = g_build_filename (_tmp35_, _tmp36_, NULL);
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_g_free0 (_tmp29_);
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp29_ = _tmp37_;
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_g_free0 (_tmp35_);
#line 563 "midori-paths.c"
				} else {
					const gchar* _tmp38_ = NULL;
					gchar* _tmp39_ = NULL;
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp38_ = config;
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp39_ = g_strdup (_tmp38_);
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_g_free0 (_tmp29_);
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp29_ = _tmp39_;
#line 575 "midori-paths.c"
				}
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp40_ = g_strdup (_tmp29_);
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				real_config = _tmp40_;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp42_ = real_config;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp43_ = g_strdup (_tmp42_);
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp41_ = _tmp43_;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				if (_tmp41_ == NULL) {
#line 589 "midori-paths.c"
					const gchar* _tmp44_ = NULL;
					gchar* _tmp45_ = NULL;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp44_ = g_get_user_config_dir ();
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp45_ = g_build_path (G_DIR_SEPARATOR_S, _tmp44_, PACKAGE_NAME, NULL);
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_g_free0 (_tmp41_);
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp41_ = _tmp45_;
#line 600 "midori-paths.c"
				}
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp46_ = _tmp41_;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp41_ = NULL;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (midori_paths_readonly_dir);
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				midori_paths_readonly_dir = _tmp46_;
#line 130 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp47_ = g_get_user_cache_dir ();
#line 130 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp48_ = g_build_path (G_DIR_SEPARATOR_S, _tmp47_, PACKAGE_NAME, NULL);
#line 130 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (midori_paths_cache_dir_for_reading);
#line 130 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				midori_paths_cache_dir_for_reading = _tmp48_;
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp49_ = g_get_user_data_dir ();
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp50_ = g_strdup (_tmp49_);
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (midori_paths_user_data_dir_for_reading);
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				midori_paths_user_data_dir_for_reading = _tmp50_;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp51_ = midori_paths_get_runtime_dir ();
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp52_ = g_strdup (_tmp51_);
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (midori_paths_tmp_dir);
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				midori_paths_tmp_dir = _tmp52_;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (_tmp41_);
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (real_config);
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (_tmp29_);
#line 640 "midori-paths.c"
			} else {
				gchar* _tmp53_ = NULL;
				gboolean _tmp54_ = FALSE;
				const gchar* _tmp55_ = NULL;
				gchar* real_config = NULL;
				gchar* _tmp64_ = NULL;
				gchar* _tmp65_ = NULL;
				const gchar* _tmp66_ = NULL;
				gchar* _tmp67_ = NULL;
				gchar* _tmp70_ = NULL;
				const gchar* _tmp71_ = NULL;
				gchar* _tmp72_ = NULL;
				const gchar* _tmp73_ = NULL;
				gchar* _tmp74_ = NULL;
				const gchar* _tmp75_ = NULL;
				gchar* _tmp76_ = NULL;
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp55_ = config;
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				if (_tmp55_ != NULL) {
#line 661 "midori-paths.c"
					const gchar* _tmp56_ = NULL;
					gboolean _tmp57_ = FALSE;
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp56_ = config;
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp57_ = g_path_is_absolute (_tmp56_);
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp54_ = !_tmp57_;
#line 670 "midori-paths.c"
				} else {
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp54_ = FALSE;
#line 674 "midori-paths.c"
				}
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				if (_tmp54_) {
#line 678 "midori-paths.c"
					gchar* _tmp58_ = NULL;
					gchar* _tmp59_ = NULL;
					const gchar* _tmp60_ = NULL;
					gchar* _tmp61_ = NULL;
#line 142 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp58_ = g_get_current_dir ();
#line 142 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp59_ = _tmp58_;
#line 142 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp60_ = config;
#line 142 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp61_ = g_build_filename (_tmp59_, _tmp60_, NULL);
#line 142 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_g_free0 (_tmp53_);
#line 142 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp53_ = _tmp61_;
#line 142 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_g_free0 (_tmp59_);
#line 697 "midori-paths.c"
				} else {
					const gchar* _tmp62_ = NULL;
					gchar* _tmp63_ = NULL;
#line 142 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp62_ = config;
#line 142 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp63_ = g_strdup (_tmp62_);
#line 142 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_g_free0 (_tmp53_);
#line 142 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp53_ = _tmp63_;
#line 709 "midori-paths.c"
				}
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp64_ = g_strdup (_tmp53_);
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				real_config = _tmp64_;
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp66_ = real_config;
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp67_ = g_strdup (_tmp66_);
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp65_ = _tmp67_;
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				if (_tmp65_ == NULL) {
#line 723 "midori-paths.c"
					const gchar* _tmp68_ = NULL;
					gchar* _tmp69_ = NULL;
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp68_ = g_get_user_config_dir ();
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp69_ = g_build_path (G_DIR_SEPARATOR_S, _tmp68_, PACKAGE_NAME, NULL);
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_g_free0 (_tmp65_);
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp65_ = _tmp69_;
#line 734 "midori-paths.c"
				}
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp70_ = _tmp65_;
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp65_ = NULL;
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (midori_paths_config_dir);
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				midori_paths_config_dir = _tmp70_;
#line 145 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp71_ = g_get_user_cache_dir ();
#line 145 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp72_ = g_build_path (G_DIR_SEPARATOR_S, _tmp71_, PACKAGE_NAME, NULL);
#line 145 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (midori_paths_cache_dir);
#line 145 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				midori_paths_cache_dir = _tmp72_;
#line 147 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp73_ = g_get_user_data_dir ();
#line 147 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp74_ = g_strdup (_tmp73_);
#line 147 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (midori_paths_user_data_dir);
#line 147 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				midori_paths_user_data_dir = _tmp74_;
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp75_ = midori_paths_get_runtime_dir ();
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp76_ = g_strdup (_tmp75_);
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (midori_paths_tmp_dir);
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				midori_paths_tmp_dir = _tmp76_;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (_tmp65_);
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (real_config);
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (_tmp53_);
#line 774 "midori-paths.c"
			}
		}
	}
#line 165 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp77_ = midori_paths_user_data_dir;
#line 165 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp77_ != NULL) {
#line 782 "midori-paths.c"
		gchar* folder = NULL;
		const gchar* _tmp78_ = NULL;
		gchar* _tmp79_ = NULL;
		WebKitFaviconDatabase* _tmp80_ = NULL;
		const gchar* _tmp81_ = NULL;
#line 166 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp78_ = midori_paths_user_data_dir;
#line 166 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp79_ = g_build_filename (_tmp78_, "webkit", "icondatabase", NULL);
#line 166 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		folder = _tmp79_;
#line 170 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp80_ = webkit_get_favicon_database ();
#line 170 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp81_ = folder;
#line 170 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		webkit_favicon_database_set_path (_tmp80_, _tmp81_);
#line 165 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (folder);
#line 802 "midori-paths.c"
	} else {
		WebKitFaviconDatabase* _tmp82_ = NULL;
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp82_ = webkit_get_favicon_database ();
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		webkit_favicon_database_set_path (_tmp82_, NULL);
#line 809 "midori-paths.c"
	}
#line 186 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp83_ = g_strcmp0;
#line 186 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp84_ = g_getenv ("MIDORI_DEBUG");
#line 186 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp85_ = _tmp83_ (_tmp84_, "paths");
#line 186 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp85_ == 0) {
#line 819 "midori-paths.c"
		FILE* _tmp86_ = NULL;
		const gchar* _tmp87_ = NULL;
		const gchar* _tmp88_ = NULL;
		const gchar* _tmp89_ = NULL;
		const gchar* _tmp90_ = NULL;
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp86_ = stdout;
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp87_ = midori_paths_config_dir;
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp88_ = midori_paths_cache_dir;
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp89_ = midori_paths_user_data_dir;
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp90_ = midori_paths_tmp_dir;
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		fprintf (_tmp86_, "config: %s\ncache: %s\nuser_data: %s\ntmp: %s\n", _tmp87_, _tmp88_, _tmp89_, _tmp90_);
#line 837 "midori-paths.c"
	}
}


static gint string_index_of_char (const gchar* self, gunichar c, gint start_index) {
	gint result = 0;
	gchar* _result_ = NULL;
	gint _tmp0_ = 0;
	gunichar _tmp1_ = 0U;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 920 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, 0);
#line 921 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = start_index;
#line 921 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = c;
#line 921 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp2_ = g_utf8_strchr (((gchar*) self) + _tmp0_, (gssize) (-1), _tmp1_);
#line 921 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_result_ = _tmp2_;
#line 923 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp3_ = _result_;
#line 923 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 863 "midori-paths.c"
		gchar* _tmp4_ = NULL;
#line 924 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4_ = _result_;
#line 924 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		result = (gint) (_tmp4_ - ((gchar*) self));
#line 924 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 871 "midori-paths.c"
	} else {
#line 926 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		result = -1;
#line 926 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 877 "midori-paths.c"
	}
}


static glong string_strnlen (gchar* str, glong maxlen) {
	glong result = 0L;
	gchar* end = NULL;
	gchar* _tmp0_ = NULL;
	glong _tmp1_ = 0L;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 1197 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = str;
#line 1197 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = maxlen;
#line 1197 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
#line 1197 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	end = _tmp2_;
#line 1198 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp3_ = end;
#line 1198 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp3_ == NULL) {
#line 901 "midori-paths.c"
		glong _tmp4_ = 0L;
#line 1199 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4_ = maxlen;
#line 1199 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		result = _tmp4_;
#line 1199 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 909 "midori-paths.c"
	} else {
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 1201 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = end;
#line 1201 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6_ = str;
#line 1201 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		result = (glong) (_tmp5_ - _tmp6_);
#line 1201 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 921 "midori-paths.c"
	}
}


static gchar* string_substring (const gchar* self, glong offset, glong len) {
	gchar* result = NULL;
	glong string_length = 0L;
	gboolean _tmp0_ = FALSE;
	glong _tmp1_ = 0L;
	glong _tmp8_ = 0L;
	glong _tmp14_ = 0L;
	glong _tmp17_ = 0L;
	glong _tmp18_ = 0L;
	glong _tmp19_ = 0L;
	glong _tmp20_ = 0L;
	glong _tmp21_ = 0L;
	gchar* _tmp22_ = NULL;
#line 1208 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = offset;
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp1_ >= ((glong) 0)) {
#line 945 "midori-paths.c"
		glong _tmp2_ = 0L;
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp2_ = len;
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp0_ = _tmp2_ >= ((glong) 0);
#line 951 "midori-paths.c"
	} else {
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp0_ = FALSE;
#line 955 "midori-paths.c"
	}
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp0_) {
#line 959 "midori-paths.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
		glong _tmp5_ = 0L;
#line 1212 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp3_ = offset;
#line 1212 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4_ = len;
#line 1212 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
#line 1212 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		string_length = _tmp5_;
#line 971 "midori-paths.c"
	} else {
		gint _tmp6_ = 0;
		gint _tmp7_ = 0;
#line 1214 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6_ = strlen (self);
#line 1214 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp7_ = _tmp6_;
#line 1214 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		string_length = (glong) _tmp7_;
#line 981 "midori-paths.c"
	}
#line 1217 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp8_ = offset;
#line 1217 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp8_ < ((glong) 0)) {
#line 987 "midori-paths.c"
		glong _tmp9_ = 0L;
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1218 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp9_ = string_length;
#line 1218 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp10_ = offset;
#line 1218 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		offset = _tmp9_ + _tmp10_;
#line 1219 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp11_ = offset;
#line 1219 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
#line 1001 "midori-paths.c"
	} else {
		glong _tmp12_ = 0L;
		glong _tmp13_ = 0L;
#line 1221 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp12_ = offset;
#line 1221 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp13_ = string_length;
#line 1221 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
#line 1011 "midori-paths.c"
	}
#line 1223 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp14_ = len;
#line 1223 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp14_ < ((glong) 0)) {
#line 1017 "midori-paths.c"
		glong _tmp15_ = 0L;
		glong _tmp16_ = 0L;
#line 1224 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1224 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp16_ = offset;
#line 1224 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		len = _tmp15_ - _tmp16_;
#line 1026 "midori-paths.c"
	}
#line 1226 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp17_ = offset;
#line 1226 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp18_ = len;
#line 1226 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp19_ = string_length;
#line 1226 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
#line 1227 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp20_ = offset;
#line 1227 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp21_ = len;
#line 1227 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
#line 1227 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	result = _tmp22_;
#line 1227 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	return result;
#line 1046 "midori-paths.c"
}


void midori_paths_mkdir_with_parents (const gchar* path, gint mode) {
	const gchar* _tmp0_ = NULL;
	gint _tmp1_ = 0;
	gint i = 0;
	const gchar* _tmp2_ = NULL;
	gint _tmp3_ = 0;
#line 192 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	g_return_if_fail (path != NULL);
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = path;
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = access (_tmp0_, F_OK);
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp1_ == 0) {
#line 195 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		return;
#line 1066 "midori-paths.c"
	}
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = path;
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp3_ = string_index_of_char (_tmp2_, (gunichar) G_DIR_SEPARATOR, 0);
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	i = _tmp3_;
#line 1074 "midori-paths.c"
	{
		gboolean _tmp4_ = FALSE;
#line 197 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp4_ = TRUE;
#line 197 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		while (TRUE) {
#line 1081 "midori-paths.c"
			gchar* fn = NULL;
			const gchar* _tmp6_ = NULL;
			gint _tmp7_ = 0;
			gchar* _tmp8_ = NULL;
			const gchar* _tmp9_ = NULL;
			gint _tmp10_ = 0;
			const gchar* _tmp18_ = NULL;
			gint _tmp19_ = 0;
			gint _tmp20_ = 0;
#line 197 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			if (!_tmp4_) {
#line 1093 "midori-paths.c"
				gint _tmp5_ = 0;
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp5_ = i;
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				if (!(_tmp5_ != (-1))) {
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					break;
#line 1101 "midori-paths.c"
				}
			}
#line 197 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp4_ = FALSE;
#line 198 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp6_ = path;
#line 198 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp7_ = i;
#line 198 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp8_ = string_substring (_tmp6_, (glong) _tmp7_, (glong) (-1));
#line 198 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			fn = _tmp8_;
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp9_ = fn;
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp10_ = access (_tmp9_, F_OK);
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			if (_tmp10_ != 0) {
#line 1120 "midori-paths.c"
				const gchar* _tmp11_ = NULL;
				gint _tmp12_ = 0;
				gint _tmp13_ = 0;
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp11_ = fn;
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp12_ = mode;
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp13_ = g_mkdir (_tmp11_, _tmp12_);
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				if (_tmp13_ == (-1)) {
#line 1132 "midori-paths.c"
					const gchar* _tmp14_ = NULL;
					gint _tmp15_ = 0;
#line 202 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp14_ = path;
#line 202 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp15_ = mode;
#line 202 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					g_mkdir_with_parents (_tmp14_, _tmp15_);
#line 203 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_g_free0 (fn);
#line 203 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					return;
#line 1145 "midori-paths.c"
				}
			} else {
				const gchar* _tmp16_ = NULL;
				gboolean _tmp17_ = FALSE;
#line 206 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp16_ = fn;
#line 206 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp17_ = g_file_test (_tmp16_, G_FILE_TEST_IS_SYMLINK);
#line 206 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				if (!_tmp17_) {
#line 207 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_g_free0 (fn);
#line 207 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					return;
#line 1160 "midori-paths.c"
				}
			}
#line 209 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp18_ = path;
#line 209 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp19_ = i;
#line 209 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp20_ = string_index_of_char (_tmp18_, (gunichar) G_DIR_SEPARATOR, _tmp19_);
#line 209 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			i = _tmp20_;
#line 197 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_g_free0 (fn);
#line 1173 "midori-paths.c"
		}
	}
}


void midori_paths_remove_path (const gchar* path) {
	GError * _inner_error_ = NULL;
#line 214 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	g_return_if_fail (path != NULL);
#line 1183 "midori-paths.c"
	{
		GDir* dir = NULL;
		const gchar* _tmp0_ = NULL;
		GDir* _tmp1_ = NULL;
		gchar* name = NULL;
#line 216 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp0_ = path;
#line 216 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp1_ = g_dir_open (_tmp0_, (guint) 0, &_inner_error_);
#line 216 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		dir = _tmp1_;
#line 216 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1197 "midori-paths.c"
			goto __catch2_g_error;
		}
#line 218 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		while (TRUE) {
#line 1202 "midori-paths.c"
			GDir* _tmp2_ = NULL;
			const gchar* _tmp3_ = NULL;
			gchar* _tmp4_ = NULL;
			const gchar* _tmp5_ = NULL;
			const gchar* _tmp6_ = NULL;
			const gchar* _tmp7_ = NULL;
			gchar* _tmp8_ = NULL;
			gchar* _tmp9_ = NULL;
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp2_ = dir;
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp3_ = g_dir_read_name (_tmp2_);
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp4_ = g_strdup (_tmp3_);
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_g_free0 (name);
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			name = _tmp4_;
#line 220 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp5_ = name;
#line 220 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			if (_tmp5_ == NULL) {
#line 221 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				break;
#line 1227 "midori-paths.c"
			}
#line 222 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp6_ = path;
#line 222 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp7_ = name;
#line 222 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp8_ = g_build_filename (_tmp6_, _tmp7_, NULL);
#line 222 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp9_ = _tmp8_;
#line 222 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			midori_paths_remove_path (_tmp9_);
#line 222 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_g_free0 (_tmp9_);
#line 1241 "midori-paths.c"
		}
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (name);
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_dir_close0 (dir);
#line 1247 "midori-paths.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp10_ = NULL;
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_error_ = _inner_error_;
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_inner_error_ = NULL;
#line 226 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp10_ = path;
#line 226 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		g_remove (_tmp10_);
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_error_free0 (_error_);
#line 1264 "midori-paths.c"
	}
	__finally2:
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		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);
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		g_clear_error (&_inner_error_);
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		return;
#line 1275 "midori-paths.c"
	}
}


const gchar* midori_paths_get_config_dir_for_writing (void) {
	const gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_config_dir;
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != NULL, "config_dir != null");
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = midori_paths_config_dir;
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	midori_paths_mkdir_with_parents (_tmp1_, 0700);
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = midori_paths_config_dir;
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp2_;
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 1299 "midori-paths.c"
}


static gboolean string_contains (const gchar* self, const gchar* needle) {
	gboolean result = FALSE;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 1278 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1278 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (needle != NULL, FALSE);
#line 1279 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = needle;
#line 1279 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
#line 1279 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	result = _tmp1_ != NULL;
#line 1279 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	return result;
#line 1319 "midori-paths.c"
}


gchar* midori_paths_get_extension_config_dir (const gchar* extension) {
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* folder = NULL;
	const gchar* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	const gchar* _tmp15_ = NULL;
#line 236 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	g_return_val_if_fail (extension != NULL, NULL);
#line 237 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_config_dir;
#line 237 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != NULL, "config_dir != null");
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = extension;
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = string_contains (_tmp1_, ".");
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp2_) {
#line 1342 "midori-paths.c"
		const gchar* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
#line 240 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp3_ = midori_paths_config_dir;
#line 240 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp4_ = extension;
#line 240 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp5_ = g_build_filename (_tmp3_, "extensions", _tmp4_, NULL);
#line 240 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (folder);
#line 240 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		folder = _tmp5_;
#line 1356 "midori-paths.c"
	} else {
		const gchar* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
		gchar* _tmp14_ = NULL;
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp6_ = midori_paths_config_dir;
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp7_ = extension;
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp8_ = g_strconcat (MODULE_PREFIX, _tmp7_, NULL);
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp9_ = _tmp8_;
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp10_ = g_strconcat (_tmp9_, ".", NULL);
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp11_ = _tmp10_;
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp12_ = g_strconcat (_tmp11_, G_MODULE_SUFFIX, NULL);
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp13_ = _tmp12_;
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp14_ = g_build_filename (_tmp6_, "extensions", _tmp13_, NULL);
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (folder);
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		folder = _tmp14_;
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (_tmp13_);
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (_tmp11_);
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (_tmp9_);
#line 1395 "midori-paths.c"
	}
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp15_ = folder;
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	midori_paths_mkdir_with_parents (_tmp15_, 0700);
#line 245 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = folder;
#line 245 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 1405 "midori-paths.c"
}


gchar* midori_paths_get_extension_preset_filename (const gchar* extension, const gchar* filename) {
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* preset_filename = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	const gchar* _tmp11_ = NULL;
	gboolean _tmp12_ = FALSE;
	const gchar* _tmp19_ = NULL;
	gchar* _tmp20_ = NULL;
	gchar* _tmp21_ = NULL;
	const gchar* _tmp22_ = NULL;
	gchar* _tmp23_ = NULL;
	gchar* _tmp24_ = NULL;
#line 248 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	g_return_val_if_fail (extension != NULL, NULL);
#line 248 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	g_return_val_if_fail (filename != NULL, NULL);
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_exec_path;
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != NULL, "exec_path != null");
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = extension;
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	preset_filename = _tmp2_;
#line 251 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp3_ = extension;
#line 251 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp4_ = g_str_has_prefix (_tmp3_, MODULE_PREFIX);
#line 251 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp4_) {
#line 1445 "midori-paths.c"
		const gchar* _tmp5_ = NULL;
		gchar** _tmp6_ = NULL;
		gchar** _tmp7_ = NULL;
		gchar** _tmp8_ = NULL;
		gint _tmp8__length1 = 0;
		const gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
#line 252 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp5_ = extension;
#line 252 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp7_ = _tmp6_ = g_strsplit (_tmp5_, MODULE_PREFIX, 0);
#line 252 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp8_ = _tmp7_;
#line 252 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp8__length1 = _vala_array_length (_tmp6_);
#line 252 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp9_ = _tmp8_[1];
#line 252 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp10_ = g_strdup (_tmp9_);
#line 252 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (preset_filename);
#line 252 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		preset_filename = _tmp10_;
#line 252 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) g_free), NULL);
#line 1471 "midori-paths.c"
	}
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp11_ = extension;
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp12_ = g_str_has_suffix (_tmp11_, MODULE_SUFFIX);
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp12_) {
#line 1479 "midori-paths.c"
		const gchar* _tmp13_ = NULL;
		gchar** _tmp14_ = NULL;
		gchar** _tmp15_ = NULL;
		gchar** _tmp16_ = NULL;
		gint _tmp16__length1 = 0;
		const gchar* _tmp17_ = NULL;
		gchar* _tmp18_ = NULL;
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp13_ = preset_filename;
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp15_ = _tmp14_ = g_strsplit (_tmp13_, MODULE_SUFFIX, 0);
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp16_ = _tmp15_;
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp16__length1 = _vala_array_length (_tmp14_);
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp17_ = _tmp16_[0];
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp18_ = g_strdup (_tmp17_);
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (preset_filename);
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		preset_filename = _tmp18_;
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp16_ = (_vala_array_free (_tmp16_, _tmp16__length1, (GDestroyNotify) g_free), NULL);
#line 1505 "midori-paths.c"
	}
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp19_ = preset_filename;
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp20_ = g_build_filename ("extensions", _tmp19_, NULL);
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp21_ = _tmp20_;
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp22_ = filename;
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp23_ = midori_paths_get_preset_filename (_tmp21_, _tmp22_);
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp24_ = _tmp23_;
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (_tmp21_);
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp24_;
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (preset_filename);
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 1527 "midori-paths.c"
}


gchar* midori_paths_get_config_filename_for_writing (const gchar* filename) {
	gchar* result = NULL;
	MidoriRuntimeMode _tmp0_ = 0;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	g_return_val_if_fail (filename != NULL, NULL);
#line 262 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_mode;
#line 262 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != MIDORI_RUNTIME_MODE_UNDEFINED, "mode != RuntimeMode.UNDEFINED");
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = midori_paths_config_dir;
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp1_ != NULL, "config_dir != null");
#line 264 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = midori_paths_config_dir;
#line 264 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	midori_paths_mkdir_with_parents (_tmp2_, 0700);
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp3_ = midori_paths_config_dir;
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp4_ = filename;
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp5_ = g_build_path (G_DIR_SEPARATOR_S, _tmp3_, _tmp4_, NULL);
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp5_;
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 1563 "midori-paths.c"
}


const gchar* midori_paths_get_cache_dir (void) {
	const gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_cache_dir;
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != NULL, "cache_dir != null");
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = midori_paths_cache_dir;
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp1_;
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 1581 "midori-paths.c"
}


const gchar* midori_paths_get_user_data_dir (void) {
	const gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_user_data_dir;
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != NULL, "user_data_dir != null");
#line 275 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = midori_paths_user_data_dir;
#line 275 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp1_;
#line 275 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 1599 "midori-paths.c"
}


const gchar* midori_paths_get_user_data_dir_for_reading (void) {
	const gchar* result = NULL;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp5_ = NULL;
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = midori_paths_user_data_dir_for_reading;
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp1_ != NULL) {
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp0_ = TRUE;
#line 1615 "midori-paths.c"
	} else {
		const gchar* _tmp2_ = NULL;
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp2_ = midori_paths_user_data_dir;
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp0_ = _tmp2_ != NULL;
#line 1622 "midori-paths.c"
	}
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_, "user_data_dir_for_reading != null || user_data_dir != null");
#line 280 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp3_ = midori_paths_user_data_dir;
#line 280 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp3_ != NULL) {
#line 1630 "midori-paths.c"
		const gchar* _tmp4_ = NULL;
#line 281 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp4_ = midori_paths_user_data_dir;
#line 281 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		result = _tmp4_;
#line 281 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		return result;
#line 1638 "midori-paths.c"
	}
#line 282 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp5_ = midori_paths_user_data_dir_for_reading;
#line 282 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp5_;
#line 282 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 1646 "midori-paths.c"
}


const gchar* midori_paths_get_cache_dir_for_reading (void) {
	const gchar* result = NULL;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp5_ = NULL;
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = midori_paths_cache_dir_for_reading;
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp1_ != NULL) {
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp0_ = TRUE;
#line 1662 "midori-paths.c"
	} else {
		const gchar* _tmp2_ = NULL;
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp2_ = midori_paths_cache_dir;
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp0_ = _tmp2_ != NULL;
#line 1669 "midori-paths.c"
	}
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_, "cache_dir_for_reading != null || cache_dir != null");
#line 287 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp3_ = midori_paths_cache_dir;
#line 287 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp3_ != NULL) {
#line 1677 "midori-paths.c"
		const gchar* _tmp4_ = NULL;
#line 288 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp4_ = midori_paths_cache_dir;
#line 288 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		result = _tmp4_;
#line 288 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		return result;
#line 1685 "midori-paths.c"
	}
#line 289 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp5_ = midori_paths_cache_dir_for_reading;
#line 289 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp5_;
#line 289 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 1693 "midori-paths.c"
}


const gchar* midori_paths_get_tmp_dir (void) {
	const gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_tmp_dir;
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != NULL, "tmp_dir != null");
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = midori_paths_tmp_dir;
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp1_;
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 1711 "midori-paths.c"
}


gchar* midori_paths_make_tmp_dir (const gchar* tmpl) {
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	GError * _inner_error_ = NULL;
#line 297 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	g_return_val_if_fail (tmpl != NULL, NULL);
#line 298 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_tmp_dir;
#line 298 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != NULL, "tmp_dir != null");
#line 1725 "midori-paths.c"
	{
		const gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp1_ = g_get_tmp_dir ();
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		midori_paths_mkdir_with_parents (_tmp1_, 0700);
#line 301 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp3_ = tmpl;
#line 301 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp4_ = g_dir_make_tmp (_tmp3_, &_inner_error_);
#line 301 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp2_ = _tmp4_;
#line 301 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1744 "midori-paths.c"
			goto __catch3_g_error;
		}
#line 301 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp5_ = _tmp2_;
#line 301 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp2_ = NULL;
#line 301 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		result = _tmp5_;
#line 301 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (_tmp2_);
#line 301 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		return result;
#line 1757 "midori-paths.c"
	}
	goto __finally3;
	__catch3_g_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp6_ = NULL;
#line 299 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_error_ = _inner_error_;
#line 299 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_inner_error_ = NULL;
#line 304 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp6_ = _error_->message;
#line 304 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		g_error ("midori-paths.vala:304: %s", _tmp6_);
#line 299 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_error_free0 (_error_);
#line 1774 "midori-paths.c"
	}
	__finally3:
#line 299 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	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);
#line 299 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	g_clear_error (&_inner_error_);
#line 299 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return NULL;
#line 1783 "midori-paths.c"
}


static gchar** _vala_array_dup1 (gchar** self, int length) {
	gchar** result;
	int i;
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = g_new0 (gchar*, length + 1);
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	for (i = 0; i < length; i++) {
#line 1794 "midori-paths.c"
		gchar* _tmp0_ = NULL;
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp0_ = g_strdup (self[i]);
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		result[i] = _tmp0_;
#line 1800 "midori-paths.c"
	}
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 1804 "midori-paths.c"
}


void midori_paths_init_exec_path (gchar** new_command_line, int new_command_line_length1) {
	gchar** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	gchar** _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
	gchar** _tmp2_ = NULL;
	gint _tmp2__length1 = 0;
	gchar* executable = NULL;
	const gchar* _tmp25_ = NULL;
	GFile* _tmp26_ = NULL;
	GFile* _tmp27_ = NULL;
	GFile* _tmp28_ = NULL;
	GFile* _tmp29_ = NULL;
	GFile* _tmp30_ = NULL;
	GFile* _tmp31_ = NULL;
	gchar* _tmp32_ = NULL;
	GCompareFunc _tmp33_ = NULL;
	const gchar* _tmp34_ = NULL;
	gint _tmp35_ = 0;
	GError * _inner_error_ = NULL;
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_command_line;
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0__length1 = midori_paths_command_line_length1;
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ == NULL, "command_line == null");
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = new_command_line;
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1__length1 = new_command_line_length1;
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = (_tmp1_ != NULL) ? _vala_array_dup1 (_tmp1_, _tmp1__length1) : ((gpointer) _tmp1_);
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2__length1 = _tmp1__length1;
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	midori_paths_command_line = (_vala_array_free (midori_paths_command_line, midori_paths_command_line_length1, (GDestroyNotify) g_free), NULL);
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	midori_paths_command_line = _tmp2_;
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	midori_paths_command_line_length1 = _tmp2__length1;
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_midori_paths_command_line_size_ = midori_paths_command_line_length1;
#line 1850 "midori-paths.c"
	{
		gchar** _tmp3_ = NULL;
		gint _tmp3__length1 = 0;
		const gchar* _tmp4_ = NULL;
		gboolean _tmp5_ = FALSE;
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp3_ = midori_paths_command_line;
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp3__length1 = midori_paths_command_line_length1;
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp4_ = _tmp3_[0];
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp5_ = g_path_is_absolute (_tmp4_);
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		if (!_tmp5_) {
#line 1866 "midori-paths.c"
			gchar* program = NULL;
			gchar** _tmp6_ = NULL;
			gint _tmp6__length1 = 0;
			const gchar* _tmp7_ = NULL;
			gchar* _tmp8_ = NULL;
			const gchar* _tmp9_ = NULL;
			gboolean _tmp10_ = FALSE;
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp6_ = midori_paths_command_line;
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp6__length1 = midori_paths_command_line_length1;
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp7_ = _tmp6_[0];
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp8_ = g_find_program_in_path (_tmp7_);
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			program = _tmp8_;
#line 319 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp9_ = program;
#line 319 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp10_ = g_file_test (_tmp9_, G_FILE_TEST_IS_SYMLINK);
#line 319 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			if (_tmp10_) {
#line 1890 "midori-paths.c"
				gchar* _tmp11_ = NULL;
				const gchar* _tmp12_ = NULL;
				gchar* _tmp13_ = NULL;
				gchar* _tmp14_ = NULL;
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp12_ = program;
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp13_ = g_file_read_link (_tmp12_, &_inner_error_);
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp11_ = _tmp13_;
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_g_free0 (program);
#line 1905 "midori-paths.c"
					goto __catch4_g_error;
				}
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp14_ = _tmp11_;
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp11_ = NULL;
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (executable);
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				executable = _tmp14_;
#line 319 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (_tmp11_);
#line 1918 "midori-paths.c"
			} else {
				const gchar* _tmp15_ = NULL;
				gchar* _tmp16_ = NULL;
#line 322 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp15_ = program;
#line 322 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp16_ = g_strdup (_tmp15_);
#line 322 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (executable);
#line 322 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				executable = _tmp16_;
#line 1930 "midori-paths.c"
			}
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_g_free0 (program);
#line 1934 "midori-paths.c"
		} else {
			gchar* _tmp17_ = NULL;
			gchar** _tmp18_ = NULL;
			gint _tmp18__length1 = 0;
			const gchar* _tmp19_ = NULL;
			gchar* _tmp20_ = NULL;
			gchar* _tmp21_ = NULL;
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp18_ = midori_paths_command_line;
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp18__length1 = midori_paths_command_line_length1;
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp19_ = _tmp18_[0];
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp20_ = g_file_read_link (_tmp19_, &_inner_error_);
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp17_ = _tmp20_;
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1954 "midori-paths.c"
				goto __catch4_g_error;
			}
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp21_ = _tmp17_;
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp17_ = NULL;
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_g_free0 (executable);
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			executable = _tmp21_;
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_g_free0 (_tmp17_);
#line 1967 "midori-paths.c"
		}
	}
	goto __finally4;
	__catch4_g_error:
	{
		GError* _error_ = NULL;
		gchar** _tmp22_ = NULL;
		gint _tmp22__length1 = 0;
		const gchar* _tmp23_ = NULL;
		gchar* _tmp24_ = NULL;
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_error_ = _inner_error_;
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_inner_error_ = NULL;
#line 328 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp22_ = midori_paths_command_line;
#line 328 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp22__length1 = midori_paths_command_line_length1;
#line 328 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp23_ = _tmp22_[0];
#line 328 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp24_ = g_strdup (_tmp23_);
#line 328 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (executable);
#line 328 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		executable = _tmp24_;
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_error_free0 (_error_);
#line 1996 "midori-paths.c"
	}
	__finally4:
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (executable);
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		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);
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		g_clear_error (&_inner_error_);
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		return;
#line 2009 "midori-paths.c"
	}
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp25_ = executable;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp26_ = g_file_new_for_path (_tmp25_);
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp27_ = _tmp26_;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp28_ = g_file_get_parent (_tmp27_);
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp29_ = _tmp28_;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp30_ = g_file_get_parent (_tmp29_);
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp31_ = _tmp30_;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp32_ = g_file_get_path (_tmp31_);
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (midori_paths_exec_path);
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	midori_paths_exec_path = _tmp32_;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_object_unref0 (_tmp31_);
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_object_unref0 (_tmp29_);
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_object_unref0 (_tmp27_);
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp33_ = g_strcmp0;
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp34_ = g_getenv ("MIDORI_DEBUG");
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp35_ = _tmp33_ (_tmp34_, "paths");
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp35_ == 0) {
#line 2045 "midori-paths.c"
		FILE* _tmp36_ = NULL;
		gchar* _tmp37_ = NULL;
		gchar* _tmp38_ = NULL;
		const gchar* _tmp39_ = NULL;
		gchar* _tmp40_ = NULL;
		gchar* _tmp41_ = NULL;
		gchar* _tmp42_ = NULL;
		gchar* _tmp43_ = NULL;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp36_ = stdout;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp37_ = midori_paths_get_command_line_str (TRUE);
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp38_ = _tmp37_;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp39_ = midori_paths_exec_path;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp40_ = midori_paths_get_res_filename ("about.css");
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp41_ = _tmp40_;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp42_ = midori_paths_get_lib_path (PACKAGE_NAME);
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp43_ = _tmp42_;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		fprintf (_tmp36_, "command_line: %s\nexec_path: %s\nres: %s\nlib: %s\n", _tmp38_, _tmp39_, _tmp41_, _tmp43_);
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (_tmp43_);
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (_tmp41_);
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (_tmp38_);
#line 2078 "midori-paths.c"
	}
#line 308 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (executable);
#line 2082 "midori-paths.c"
}


gchar** midori_paths_get_command_line (int* result_length1) {
	gchar** result = NULL;
	gchar** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	gchar** _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
	gchar** _tmp2_ = NULL;
	gint _tmp2__length1 = 0;
#line 341 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_command_line;
#line 341 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0__length1 = midori_paths_command_line_length1;
#line 341 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != NULL, "command_line != null");
#line 342 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = midori_paths_command_line;
#line 342 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1__length1 = midori_paths_command_line_length1;
#line 342 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = _tmp1_;
#line 342 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2__length1 = _tmp1__length1;
#line 342 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (result_length1) {
#line 342 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		*result_length1 = _tmp2__length1;
#line 2112 "midori-paths.c"
	}
#line 342 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp2_;
#line 342 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 2118 "midori-paths.c"
}


static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int str_array_length1) {
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	gchar** _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
#line 964 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = separator;
#line 964 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp0_ == NULL) {
#line 965 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		separator = "";
#line 2135 "midori-paths.c"
	}
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp3_ = str_array;
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp3__length1 = str_array_length1;
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp2_ = TRUE;
#line 2145 "midori-paths.c"
	} else {
		gchar** _tmp4_ = NULL;
		gint _tmp4__length1 = 0;
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4_ = str_array;
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4__length1 = str_array_length1;
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp4__length1 > 0;
#line 2155 "midori-paths.c"
	}
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp2_) {
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp1_ = TRUE;
#line 2161 "midori-paths.c"
	} else {
		gboolean _tmp5_ = FALSE;
		gchar** _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6_ = str_array;
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6__length1 = str_array_length1;
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		if (_tmp6__length1 == (-1)) {
#line 2172 "midori-paths.c"
			gchar** _tmp7_ = NULL;
			gint _tmp7__length1 = 0;
			const gchar* _tmp8_ = NULL;
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp7_ = str_array;
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp7__length1 = str_array_length1;
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp8_ = _tmp7_[0];
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp5_ = _tmp8_ != NULL;
#line 2184 "midori-paths.c"
		} else {
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp5_ = FALSE;
#line 2188 "midori-paths.c"
		}
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp1_ = _tmp5_;
#line 2192 "midori-paths.c"
	}
#line 967 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp1_) {
#line 2196 "midori-paths.c"
		gint i = 0;
		gsize len = 0UL;
		gint _tmp31_ = 0;
		gint _tmp33_ = 0;
		gint _tmp34_ = 0;
		gsize _tmp35_ = 0UL;
		const gchar* _tmp36_ = NULL;
		gint _tmp37_ = 0;
		gint _tmp38_ = 0;
		gint _tmp39_ = 0;
		const gchar* res = NULL;
		gsize _tmp40_ = 0UL;
		void* _tmp41_ = NULL;
		void* ptr = NULL;
		const gchar* _tmp42_ = NULL;
		gchar** _tmp43_ = NULL;
		gint _tmp43__length1 = 0;
		const gchar* _tmp44_ = NULL;
		void* _tmp45_ = NULL;
		const gchar* _tmp62_ = NULL;
#line 969 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		len = (gsize) 1;
#line 2219 "midori-paths.c"
		{
			gboolean _tmp9_ = FALSE;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			i = 0;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp9_ = TRUE;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 2228 "midori-paths.c"
				gboolean _tmp11_ = FALSE;
				gboolean _tmp12_ = FALSE;
				gchar** _tmp13_ = NULL;
				gint _tmp13__length1 = 0;
				gint _tmp21_ = 0;
				gchar** _tmp22_ = NULL;
				gint _tmp22__length1 = 0;
				gint _tmp23_ = 0;
				const gchar* _tmp24_ = NULL;
				gsize _tmp30_ = 0UL;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				if (!_tmp9_) {
#line 2241 "midori-paths.c"
					gint _tmp10_ = 0;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp10_ = i;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					i = _tmp10_ + 1;
#line 2247 "midori-paths.c"
				}
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp9_ = FALSE;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp13_ = str_array;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp13__length1 = str_array_length1;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				if (_tmp13__length1 != (-1)) {
#line 2257 "midori-paths.c"
					gint _tmp14_ = 0;
					gchar** _tmp15_ = NULL;
					gint _tmp15__length1 = 0;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp14_ = i;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp15_ = str_array;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp15__length1 = str_array_length1;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp12_ = _tmp14_ < _tmp15__length1;
#line 2269 "midori-paths.c"
				} else {
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp12_ = FALSE;
#line 2273 "midori-paths.c"
				}
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				if (_tmp12_) {
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp11_ = TRUE;
#line 2279 "midori-paths.c"
				} else {
					gboolean _tmp16_ = FALSE;
					gchar** _tmp17_ = NULL;
					gint _tmp17__length1 = 0;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp17_ = str_array;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp17__length1 = str_array_length1;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					if (_tmp17__length1 == (-1)) {
#line 2290 "midori-paths.c"
						gchar** _tmp18_ = NULL;
						gint _tmp18__length1 = 0;
						gint _tmp19_ = 0;
						const gchar* _tmp20_ = NULL;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
						_tmp18_ = str_array;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
						_tmp18__length1 = str_array_length1;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
						_tmp19_ = i;
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
						_tmp20_ = _tmp18_[_tmp19_];
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
						_tmp16_ = _tmp20_ != NULL;
#line 2305 "midori-paths.c"
					} else {
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
						_tmp16_ = FALSE;
#line 2309 "midori-paths.c"
					}
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp11_ = _tmp16_;
#line 2313 "midori-paths.c"
				}
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				if (!_tmp11_) {
#line 970 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					break;
#line 2319 "midori-paths.c"
				}
#line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp22_ = str_array;
#line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp22__length1 = str_array_length1;
#line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp23_ = i;
#line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp24_ = _tmp22_[_tmp23_];
#line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				if (_tmp24_ != NULL) {
#line 2331 "midori-paths.c"
					gchar** _tmp25_ = NULL;
					gint _tmp25__length1 = 0;
					gint _tmp26_ = 0;
					const gchar* _tmp27_ = NULL;
					gint _tmp28_ = 0;
					gint _tmp29_ = 0;
#line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp25_ = str_array;
#line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp25__length1 = str_array_length1;
#line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp26_ = i;
#line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp27_ = _tmp25_[_tmp26_];
#line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp28_ = strlen ((const gchar*) _tmp27_);
#line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp29_ = _tmp28_;
#line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp21_ = _tmp29_;
#line 2352 "midori-paths.c"
				} else {
#line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp21_ = 0;
#line 2356 "midori-paths.c"
				}
#line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp30_ = len;
#line 971 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				len = _tmp30_ + _tmp21_;
#line 2362 "midori-paths.c"
			}
		}
#line 973 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp31_ = i;
#line 973 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		if (_tmp31_ == 0) {
#line 2369 "midori-paths.c"
			gchar* _tmp32_ = NULL;
#line 974 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp32_ = g_strdup ("");
#line 974 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			result = _tmp32_;
#line 974 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			return result;
#line 2377 "midori-paths.c"
		}
#line 976 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp33_ = i;
#line 976 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		str_array_length1 = _tmp33_;
#line 976 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp34_ = str_array_length1;
#line 977 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp35_ = len;
#line 977 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp36_ = separator;
#line 977 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp37_ = strlen ((const gchar*) _tmp36_);
#line 977 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp38_ = _tmp37_;
#line 977 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp39_ = i;
#line 977 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1));
#line 979 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp40_ = len;
#line 979 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp41_ = g_malloc (_tmp40_);
#line 979 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		res = _tmp41_;
#line 980 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp42_ = res;
#line 980 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp43_ = str_array;
#line 980 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp43__length1 = str_array_length1;
#line 980 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp44_ = _tmp43_[0];
#line 980 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_);
#line 980 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		ptr = _tmp45_;
#line 2415 "midori-paths.c"
		{
			gboolean _tmp46_ = FALSE;
#line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			i = 1;
#line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp46_ = TRUE;
#line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 2424 "midori-paths.c"
				gint _tmp48_ = 0;
				gchar** _tmp49_ = NULL;
				gint _tmp49__length1 = 0;
				void* _tmp50_ = NULL;
				const gchar* _tmp51_ = NULL;
				void* _tmp52_ = NULL;
				const gchar* _tmp53_ = NULL;
				gchar** _tmp54_ = NULL;
				gint _tmp54__length1 = 0;
				gint _tmp55_ = 0;
				const gchar* _tmp56_ = NULL;
				void* _tmp60_ = NULL;
				void* _tmp61_ = NULL;
#line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				if (!_tmp46_) {
#line 2440 "midori-paths.c"
					gint _tmp47_ = 0;
#line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp47_ = i;
#line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					i = _tmp47_ + 1;
#line 2446 "midori-paths.c"
				}
#line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp46_ = FALSE;
#line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp48_ = i;
#line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp49_ = str_array;
#line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp49__length1 = str_array_length1;
#line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				if (!(_tmp48_ < _tmp49__length1)) {
#line 981 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					break;
#line 2460 "midori-paths.c"
				}
#line 982 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp50_ = ptr;
#line 982 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp51_ = separator;
#line 982 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_);
#line 982 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				ptr = _tmp52_;
#line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp54_ = str_array;
#line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp54__length1 = str_array_length1;
#line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp55_ = i;
#line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp56_ = _tmp54_[_tmp55_];
#line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				if (_tmp56_ != NULL) {
#line 2480 "midori-paths.c"
					gchar** _tmp57_ = NULL;
					gint _tmp57__length1 = 0;
					gint _tmp58_ = 0;
					const gchar* _tmp59_ = NULL;
#line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp57_ = str_array;
#line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp57__length1 = str_array_length1;
#line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp58_ = i;
#line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp59_ = _tmp57_[_tmp58_];
#line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp53_ = (const gchar*) _tmp59_;
#line 2495 "midori-paths.c"
				} else {
#line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp53_ = "";
#line 2499 "midori-paths.c"
				}
#line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp60_ = ptr;
#line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp61_ = g_stpcpy (_tmp60_, _tmp53_);
#line 983 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
				ptr = _tmp61_;
#line 2507 "midori-paths.c"
			}
		}
#line 986 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp62_ = res;
#line 986 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		res = NULL;
#line 986 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		result = (gchar*) _tmp62_;
#line 986 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 2518 "midori-paths.c"
	} else {
		gchar* _tmp63_ = NULL;
#line 988 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp63_ = g_strdup ("");
#line 988 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		result = _tmp63_;
#line 988 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 2527 "midori-paths.c"
	}
}


static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
	gchar* result = NULL;
	GError * _inner_error_ = NULL;
#line 1282 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1282 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (old != NULL, NULL);
#line 1282 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (replacement != NULL, NULL);
#line 2541 "midori-paths.c"
	{
		GRegex* regex = NULL;
		const gchar* _tmp0_ = NULL;
		gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
		GRegex* _tmp3_ = NULL;
		GRegex* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		GRegex* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp0_ = old;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp1_ = g_regex_escape_string (_tmp0_, -1);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp1_;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4_ = _tmp3_;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_free0 (_tmp2_);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		regex = _tmp4_;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 2572 "midori-paths.c"
				goto __catch5_g_regex_error;
			}
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			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);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			return NULL;
#line 2581 "midori-paths.c"
		}
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6_ = regex;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp7_ = replacement;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) (-1), 0, _tmp7_, 0, &_inner_error_);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = _tmp8_;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 2597 "midori-paths.c"
				goto __catch5_g_regex_error;
			}
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			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);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			return NULL;
#line 2608 "midori-paths.c"
		}
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp9_ = _tmp5_;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = NULL;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		result = _tmp9_;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_free0 (_tmp5_);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_regex_unref0 (regex);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 2622 "midori-paths.c"
	}
	goto __finally5;
	__catch5_g_regex_error:
	{
		GError* e = NULL;
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		e = _inner_error_;
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_inner_error_ = NULL;
#line 1287 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_assert_not_reached ();
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_error_free0 (e);
#line 2636 "midori-paths.c"
	}
	__finally5:
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		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);
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_clear_error (&_inner_error_);
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return NULL;
#line 2647 "midori-paths.c"
	}
}


gchar* midori_paths_get_command_line_str (gboolean for_display) {
	gchar* result = NULL;
	gchar** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	gboolean _tmp1_ = FALSE;
	gchar** _tmp8_ = NULL;
	gint _tmp8__length1 = 0;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	gchar* _tmp14_ = NULL;
	gchar* _tmp15_ = NULL;
	gchar* _tmp16_ = NULL;
	gchar* _tmp17_ = NULL;
	gchar* _tmp18_ = NULL;
#line 346 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_command_line;
#line 346 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0__length1 = midori_paths_command_line_length1;
#line 346 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != NULL, "command_line != null");
#line 347 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = for_display;
#line 347 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp1_) {
#line 2679 "midori-paths.c"
		gchar** _tmp2_ = NULL;
		gint _tmp2__length1 = 0;
		gchar* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp2_ = midori_paths_command_line;
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp2__length1 = midori_paths_command_line_length1;
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp3_ = _vala_g_strjoinv (" ", _tmp2_, _tmp2__length1);
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp4_ = _tmp3_;
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp5_ = g_get_home_dir ();
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp6_ = string_replace (_tmp4_, _tmp5_, "~");
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp7_ = _tmp6_;
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (_tmp4_);
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		result = _tmp7_;
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		return result;
#line 2707 "midori-paths.c"
	}
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp8_ = midori_paths_command_line;
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp8__length1 = midori_paths_command_line_length1;
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp9_ = _vala_g_strjoinv (" ", _tmp8_, _tmp8__length1);
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp10_ = _tmp9_;
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp11_ = string_replace (_tmp10_, "--debug", "");
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp12_ = _tmp11_;
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp13_ = string_replace (_tmp12_, "-g", "");
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp14_ = _tmp13_;
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp15_ = string_replace (_tmp14_, "--diagnostic-dialog", "");
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp16_ = _tmp15_;
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp17_ = string_replace (_tmp16_, "-d", "");
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp18_ = _tmp17_;
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (_tmp16_);
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (_tmp14_);
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (_tmp12_);
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (_tmp10_);
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp18_;
#line 349 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 2745 "midori-paths.c"
}


gchar* midori_paths_get_lib_path (const gchar* package) {
	gchar* result = NULL;
	gchar** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	gchar* path = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gint _tmp5_ = 0;
	const gchar* _tmp6_ = NULL;
	gchar* _tmp15_ = NULL;
#line 353 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	g_return_val_if_fail (package != NULL, NULL);
#line 354 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_command_line;
#line 354 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0__length1 = midori_paths_command_line_length1;
#line 354 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != NULL, "command_line != null");
#line 358 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = midori_paths_exec_path;
#line 358 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = package;
#line 358 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp3_ = g_build_filename (_tmp1_, "lib", _tmp2_, NULL);
#line 358 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	path = _tmp3_;
#line 359 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp4_ = path;
#line 359 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp5_ = access (_tmp4_, F_OK);
#line 359 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp5_ == 0) {
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		result = path;
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		return result;
#line 2787 "midori-paths.c"
	}
#line 362 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp6_ = package;
#line 362 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (g_strcmp0 (_tmp6_, PACKAGE_NAME) == 0) {
#line 2793 "midori-paths.c"
		const gchar* _tmp7_ = NULL;
		GFile* _tmp8_ = NULL;
		GFile* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		const gchar* _tmp13_ = NULL;
		gint _tmp14_ = 0;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp7_ = midori_paths_exec_path;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp8_ = g_file_new_for_path (_tmp7_);
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp9_ = _tmp8_;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp10_ = g_file_get_path (_tmp9_);
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp11_ = _tmp10_;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp12_ = g_build_filename (_tmp11_, "extensions", NULL);
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (path);
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		path = _tmp12_;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (_tmp11_);
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_object_unref0 (_tmp9_);
#line 365 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp13_ = path;
#line 365 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp14_ = access (_tmp13_, F_OK);
#line 365 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		if (_tmp14_ == 0) {
#line 366 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			result = path;
#line 366 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			return result;
#line 2832 "midori-paths.c"
		}
	}
#line 369 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp15_ = g_build_filename (LIBDIR, PACKAGE_NAME, NULL);
#line 369 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp15_;
#line 369 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (path);
#line 369 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 2843 "midori-paths.c"
}


gchar* midori_paths_get_res_filename (const gchar* filename) {
	gchar* result = NULL;
	gchar** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	const gchar* _tmp1_ = NULL;
	gchar* path = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	gint _tmp6_ = 0;
	gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp12_ = NULL;
#line 373 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	g_return_val_if_fail (filename != NULL, NULL);
#line 374 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_command_line;
#line 374 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0__length1 = midori_paths_command_line_length1;
#line 374 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != NULL, "command_line != null");
#line 375 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = filename;
#line 375 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (g_strcmp0 (_tmp1_, "") != 0, "filename != \"\"");
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = midori_paths_exec_path;
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp3_ = filename;
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp4_ = g_build_filename (_tmp2_, "share", PACKAGE_NAME, "res", _tmp3_, NULL);
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	path = _tmp4_;
#line 380 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp5_ = path;
#line 380 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp6_ = access (_tmp5_, F_OK);
#line 380 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp6_ == 0) {
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		result = path;
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		return result;
#line 2892 "midori-paths.c"
	}
#line 383 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp8_ = filename;
#line 383 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp9_ = midori_paths_build_folder ("data", NULL, _tmp8_);
#line 383 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp7_ = _tmp9_;
#line 383 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp7_ == NULL) {
#line 2902 "midori-paths.c"
		const gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
#line 384 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp10_ = filename;
#line 384 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp11_ = g_build_filename (MDATADIR, PACKAGE_NAME, "res", _tmp10_, NULL);
#line 384 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (_tmp7_);
#line 384 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp7_ = _tmp11_;
#line 2913 "midori-paths.c"
	}
#line 383 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp12_ = _tmp7_;
#line 383 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp7_ = NULL;
#line 383 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp12_;
#line 383 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (_tmp7_);
#line 383 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (path);
#line 383 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 2927 "midori-paths.c"
}


gchar* midori_paths_build_folder (const gchar* folder, const gchar* middle, const gchar* filename) {
	gchar* result = NULL;
	GFile* parent = NULL;
	const gchar* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
#line 389 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	g_return_val_if_fail (folder != NULL, NULL);
#line 389 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	g_return_val_if_fail (filename != NULL, NULL);
#line 391 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_exec_path;
#line 391 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = g_file_new_for_path (_tmp0_);
#line 391 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	parent = _tmp1_;
#line 392 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	while (TRUE) {
#line 2948 "midori-paths.c"
		GFile* _tmp2_ = NULL;
		GFile* data = NULL;
		GFile* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
		GFile* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		GFile* child = NULL;
		GFile* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
		GFile* _tmp12_ = NULL;
		GFile* _tmp13_ = NULL;
		gboolean _tmp14_ = FALSE;
		GFile* _tmp17_ = NULL;
		GFile* _tmp18_ = NULL;
#line 392 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp2_ = parent;
#line 392 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		if (!(_tmp2_ != NULL)) {
#line 392 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			break;
#line 2969 "midori-paths.c"
		}
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp3_ = parent;
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp4_ = folder;
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp5_ = g_file_get_child (_tmp3_, _tmp4_);
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		data = _tmp5_;
#line 394 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp6_ = middle;
#line 394 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		if (_tmp6_ != NULL) {
#line 2983 "midori-paths.c"
			GFile* _tmp7_ = NULL;
			const gchar* _tmp8_ = NULL;
			GFile* _tmp9_ = NULL;
#line 395 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp7_ = data;
#line 395 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp8_ = middle;
#line 395 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp9_ = g_file_get_child (_tmp7_, _tmp8_);
#line 395 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_g_object_unref0 (data);
#line 395 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			data = _tmp9_;
#line 2997 "midori-paths.c"
		}
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp10_ = data;
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp11_ = filename;
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp12_ = g_file_get_child (_tmp10_, _tmp11_);
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		child = _tmp12_;
#line 397 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp13_ = child;
#line 397 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp14_ = g_file_query_exists (_tmp13_, NULL);
#line 397 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		if (_tmp14_) {
#line 3013 "midori-paths.c"
			GFile* _tmp15_ = NULL;
			gchar* _tmp16_ = NULL;
#line 398 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp15_ = child;
#line 398 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp16_ = g_file_get_path (_tmp15_);
#line 398 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			result = _tmp16_;
#line 398 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_g_object_unref0 (child);
#line 398 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_g_object_unref0 (data);
#line 398 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_g_object_unref0 (parent);
#line 398 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			return result;
#line 3030 "midori-paths.c"
		}
#line 399 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp17_ = parent;
#line 399 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp18_ = g_file_get_parent (_tmp17_);
#line 399 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_object_unref0 (parent);
#line 399 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		parent = _tmp18_;
#line 392 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_object_unref0 (child);
#line 392 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_object_unref0 (data);
#line 3044 "midori-paths.c"
	}
#line 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = NULL;
#line 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_object_unref0 (parent);
#line 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 3052 "midori-paths.c"
}


gchar* midori_paths_get_data_filename (const gchar* filename, gboolean res) {
	gchar* result = NULL;
	gchar** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	const gchar* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	gchar* res1 = NULL;
	gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
	gchar* res2 = NULL;
	gchar* _tmp6_ = NULL;
	gchar* path = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	const gchar* _tmp12_ = NULL;
	gint _tmp13_ = 0;
	gchar** _tmp14_ = NULL;
	gchar** _tmp15_ = NULL;
	const gchar* _tmp24_ = NULL;
	const gchar* _tmp25_ = NULL;
	const gchar* _tmp26_ = NULL;
	gchar* _tmp27_ = NULL;
#line 407 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	g_return_val_if_fail (filename != NULL, NULL);
#line 408 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_command_line;
#line 408 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0__length1 = midori_paths_command_line_length1;
#line 408 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != NULL, "command_line != null");
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = res;
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp2_) {
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp1_ = PACKAGE_NAME;
#line 3096 "midori-paths.c"
	} else {
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp1_ = "";
#line 3100 "midori-paths.c"
	}
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp3_ = g_strdup (_tmp1_);
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	res1 = _tmp3_;
#line 410 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp5_ = res;
#line 410 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp5_) {
#line 410 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp4_ = "res";
#line 3112 "midori-paths.c"
	} else {
#line 410 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp4_ = "";
#line 3116 "midori-paths.c"
	}
#line 410 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp6_ = g_strdup (_tmp4_);
#line 410 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	res2 = _tmp6_;
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp7_ = midori_paths_get_user_data_dir_for_reading ();
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp8_ = res1;
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp9_ = res2;
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp10_ = filename;
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp11_ = g_build_filename (_tmp7_, _tmp8_, _tmp9_, _tmp10_, NULL);
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	path = _tmp11_;
#line 416 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp12_ = path;
#line 416 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp13_ = access (_tmp12_, F_OK);
#line 416 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp13_ == 0) {
#line 417 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		result = path;
#line 417 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (res2);
#line 417 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (res1);
#line 417 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		return result;
#line 3148 "midori-paths.c"
	}
#line 419 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp15_ = _tmp14_ = g_get_system_data_dirs ();
#line 3152 "midori-paths.c"
	{
		gchar** data_dir_collection = NULL;
		gint data_dir_collection_length1 = 0;
		gint _data_dir_collection_size_ = 0;
		gint data_dir_it = 0;
#line 419 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		data_dir_collection = _tmp15_;
#line 419 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		data_dir_collection_length1 = _vala_array_length (_tmp14_);
#line 419 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		for (data_dir_it = 0; data_dir_it < _vala_array_length (_tmp14_); data_dir_it = data_dir_it + 1) {
#line 3164 "midori-paths.c"
			gchar* _tmp16_ = NULL;
			gchar* data_dir = NULL;
#line 419 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp16_ = g_strdup (data_dir_collection[data_dir_it]);
#line 419 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			data_dir = _tmp16_;
#line 3171 "midori-paths.c"
			{
				const gchar* _tmp17_ = NULL;
				const gchar* _tmp18_ = NULL;
				const gchar* _tmp19_ = NULL;
				const gchar* _tmp20_ = NULL;
				gchar* _tmp21_ = NULL;
				const gchar* _tmp22_ = NULL;
				gint _tmp23_ = 0;
#line 420 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp17_ = data_dir;
#line 420 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp18_ = res1;
#line 420 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp19_ = res2;
#line 420 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp20_ = filename;
#line 420 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp21_ = g_build_filename (_tmp17_, _tmp18_, _tmp19_, _tmp20_, NULL);
#line 420 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (path);
#line 420 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				path = _tmp21_;
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp22_ = path;
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp23_ = access (_tmp22_, F_OK);
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				if (_tmp23_ == 0) {
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					result = path;
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_g_free0 (data_dir);
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_g_free0 (res2);
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_g_free0 (res1);
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					return result;
#line 3210 "midori-paths.c"
				}
#line 419 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (data_dir);
#line 3214 "midori-paths.c"
			}
		}
	}
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp24_ = res1;
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp25_ = res2;
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp26_ = filename;
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp27_ = g_build_filename (MDATADIR, _tmp24_, _tmp25_, _tmp26_, NULL);
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp27_;
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (path);
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (res2);
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (res1);
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 3236 "midori-paths.c"
}


gchar* midori_paths_get_preset_filename (const gchar* folder, const gchar* filename) {
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	gchar** _tmp1_ = NULL;
	gchar** _tmp2_ = NULL;
	const gchar* _tmp11_ = NULL;
	const gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	const gchar* _tmp14_ = NULL;
	const gchar* _tmp15_ = NULL;
	gchar* _tmp16_ = NULL;
	gchar* _tmp19_ = NULL;
#line 430 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	g_return_val_if_fail (filename != NULL, NULL);
#line 431 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_exec_path;
#line 431 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != NULL, "exec_path != null");
#line 436 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = _tmp1_ = g_get_system_config_dirs ();
#line 3260 "midori-paths.c"
	{
		gchar** config_dir_collection = NULL;
		gint config_dir_collection_length1 = 0;
		gint _config_dir_collection_size_ = 0;
		gint config_dir_it = 0;
#line 436 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		config_dir_collection = _tmp2_;
#line 436 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		config_dir_collection_length1 = _vala_array_length (_tmp1_);
#line 436 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		for (config_dir_it = 0; config_dir_it < _vala_array_length (_tmp1_); config_dir_it = config_dir_it + 1) {
#line 3272 "midori-paths.c"
			gchar* _tmp3_ = NULL;
			gchar* config_dir = NULL;
#line 436 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			_tmp3_ = g_strdup (config_dir_collection[config_dir_it]);
#line 436 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
			config_dir = _tmp3_;
#line 3279 "midori-paths.c"
			{
				const gchar* _tmp4_ = NULL;
				const gchar* _tmp5_ = NULL;
				gchar* path = NULL;
				const gchar* _tmp6_ = NULL;
				const gchar* _tmp7_ = NULL;
				gchar* _tmp8_ = NULL;
				const gchar* _tmp9_ = NULL;
				gint _tmp10_ = 0;
#line 437 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp5_ = folder;
#line 437 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp4_ = _tmp5_;
#line 437 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				if (_tmp4_ == NULL) {
#line 437 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_tmp4_ = "";
#line 3297 "midori-paths.c"
				}
#line 437 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp6_ = config_dir;
#line 437 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp7_ = filename;
#line 437 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp8_ = g_build_filename (_tmp6_, PACKAGE_NAME, _tmp4_, _tmp7_, NULL);
#line 437 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				path = _tmp8_;
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp9_ = path;
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_tmp10_ = access (_tmp9_, F_OK);
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				if (_tmp10_ == 0) {
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					result = path;
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					_g_free0 (config_dir);
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
					return result;
#line 3319 "midori-paths.c"
				}
#line 436 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (path);
#line 436 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
				_g_free0 (config_dir);
#line 3325 "midori-paths.c"
			}
		}
	}
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp12_ = folder;
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp11_ = _tmp12_;
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp11_ == NULL) {
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp11_ = "";
#line 3337 "midori-paths.c"
	}
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp14_ = folder;
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp15_ = filename;
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp16_ = midori_paths_build_folder ("config", _tmp14_, _tmp15_);
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp13_ = _tmp16_;
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp13_ == NULL) {
#line 3349 "midori-paths.c"
		const gchar* _tmp17_ = NULL;
		gchar* _tmp18_ = NULL;
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp17_ = filename;
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp18_ = g_build_filename (SYSCONFDIR, "xdg", PACKAGE_NAME, _tmp11_, _tmp17_, NULL);
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_free0 (_tmp13_);
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp13_ = _tmp18_;
#line 3360 "midori-paths.c"
	}
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp19_ = _tmp13_;
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp13_ = NULL;
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = _tmp19_;
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (_tmp13_);
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 3372 "midori-paths.c"
}


void midori_paths_clear_icons (void) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	WebKitFaviconDatabase* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
#line 448 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = midori_paths_cache_dir;
#line 448 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp0_ != NULL, "cache_dir != null");
#line 449 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = midori_paths_user_data_dir;
#line 449 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_vala_assert (_tmp1_ != NULL, "user_data_dir != null");
#line 453 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = webkit_get_favicon_database ();
#line 453 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	webkit_favicon_database_clear (_tmp2_);
#line 456 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp3_ = midori_paths_user_data_dir;
#line 456 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp4_ = g_build_filename (_tmp3_, "webkit", "icondatabase", NULL);
#line 456 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp5_ = _tmp4_;
#line 456 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	midori_paths_remove_path (_tmp5_);
#line 456 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_free0 (_tmp5_);
#line 3405 "midori-paths.c"
}


/**
         * Looks up a pixbuf for the given @uri. If @widget is given a generic
         * file icon is used in case there's no icon.
         *
         * Deprecated: 0.5.8: Use Midori.URI.Icon or Midori.URI.get_icon instead.
         **/
GdkPixbuf* midori_paths_get_icon (const gchar* uri, GtkWidget* widget) {
	GdkPixbuf* result = NULL;
	const gchar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gint icon_width = 0;
	gint icon_height = 0;
	GtkWidget* _tmp2_ = NULL;
	GdkPixbuf* pixbuf = NULL;
	WebKitFaviconDatabase* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	gint _tmp10_ = 0;
	gint _tmp11_ = 0;
	GdkPixbuf* _tmp12_ = NULL;
	GdkPixbuf* _tmp13_ = NULL;
	GtkWidget* _tmp14_ = NULL;
#line 466 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp0_ = uri;
#line 466 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp1_ = midori_uri_is_resource (_tmp0_);
#line 466 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (!_tmp1_) {
#line 467 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		result = NULL;
#line 467 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		return result;
#line 3440 "midori-paths.c"
	}
#line 468 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	icon_width = 16;
#line 468 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	icon_height = 16;
#line 469 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp2_ = widget;
#line 469 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp2_ != NULL) {
#line 3450 "midori-paths.c"
		GtkWidget* _tmp3_ = NULL;
		GtkSettings* _tmp4_ = NULL;
		gint _tmp5_ = 0;
		gint _tmp6_ = 0;
#line 470 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp3_ = widget;
#line 470 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp4_ = gtk_widget_get_settings (_tmp3_);
#line 470 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		gtk_icon_size_lookup_for_settings (_tmp4_, GTK_ICON_SIZE_MENU, &_tmp5_, &_tmp6_);
#line 470 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		icon_width = _tmp5_;
#line 470 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		icon_height = _tmp6_;
#line 3465 "midori-paths.c"
	} else {
		gint _tmp7_ = 0;
#line 473 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		icon_height = 0;
#line 473 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp7_ = icon_height;
#line 473 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		icon_width = _tmp7_;
#line 3474 "midori-paths.c"
	}
#line 477 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp8_ = webkit_get_favicon_database ();
#line 477 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp9_ = uri;
#line 477 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp10_ = icon_width;
#line 477 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp11_ = icon_height;
#line 477 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp12_ = webkit_favicon_database_try_get_favicon_pixbuf (_tmp8_, _tmp9_, (guint) _tmp10_, (guint) _tmp11_);
#line 477 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	pixbuf = _tmp12_;
#line 479 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp13_ = pixbuf;
#line 479 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp13_ != NULL) {
#line 480 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		result = pixbuf;
#line 480 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		return result;
#line 3496 "midori-paths.c"
	}
#line 482 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_tmp14_ = widget;
#line 482 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	if (_tmp14_ != NULL) {
#line 3502 "midori-paths.c"
		GtkWidget* _tmp15_ = NULL;
		GdkPixbuf* _tmp16_ = NULL;
#line 483 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp15_ = widget;
#line 483 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_tmp16_ = gtk_widget_render_icon (_tmp15_, GTK_STOCK_FILE, GTK_ICON_SIZE_MENU, NULL);
#line 483 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		result = _tmp16_;
#line 483 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		_g_object_unref0 (pixbuf);
#line 483 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
		return result;
#line 3515 "midori-paths.c"
	}
#line 484 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	result = NULL;
#line 484 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	_g_object_unref0 (pixbuf);
#line 484 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-paths.vala"
	return result;
#line 3523 "midori-paths.c"
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}



