2
This file is part of LoggerOuter.
4
LoggerOuter is free software: you can redistribute it and/or modify it under the
5
terms of the GNU Lesser General Public License as published by the Free Software
6
Foundation, either version 3 of the License, or (at your option) any later
9
LoggerOuter is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12
License for more details.
14
You should have received a copy of the GNU Lessel General Public License
15
along with LoggerOuter. If not, see <https://www.gnu.org/licenses/>.
18
public const string APP_NAME = "eu.bato24.gegoxaren.loggeroutr";
19
public const int APP_VERSION_MAJOR = 0;
20
public const int APP_VERSION_MINOR = 0;
21
public static string get_app_version () {
22
return @"$APP_VERSION_MAJOR.$APP_VERSION_MINOR";
25
public static string? LO_XDG_ACTIONS_PATH;
26
public static string? LO_XDG_CONFIG_DIR;
27
public static string? LO_XDG_CONFIG_PATH;
30
public static LO.App app;
36
int main (string[] args) {
37
LO_XDG_CONFIG_DIR = GLib.Environment.get_user_config_dir () + "/loggerouter";
38
LO_XDG_ACTIONS_PATH = LO_XDG_CONFIG_DIR + "/actions.ini";
39
LO_XDG_CONFIG_PATH = LO_XDG_CONFIG_DIR + "/config.ini";
41
opts = LO.Options.get_instance (); // Prevents segfault
42
settings = LO.Settings.get_instance ();
43
opts.exec_name = args[0];
46
return app.run (args);