/
main.vala
55 lines (45 loc) · 1.36 KB
/
main.vala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* This file is part of budgie-desktop
*
* Copyright (C) 2015-2016 Ikey Doherty <ikey@solus-project.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
public static int main(string[] args)
{
unowned OptionContext? ctx = null;
Budgie.BudgieWM.old_args = args;
ctx = Meta.get_option_context();
try {
if (!ctx.parse(ref args)) {
return Meta.ExitCode.ERROR;
}
} catch (OptionError e) {
message("Unknown option: %s", e.message);
return Meta.ExitCode.ERROR;
}
/* Set plugin type here */
Meta.Plugin.manager_set_plugin_type(typeof(Budgie.BudgieWM));
Meta.set_gnome_wm_keybindings("Mutter,GNOME Shell");
Meta.set_wm_name("Mutter(Budgie)");
Environment.set_variable("NO_GAIL", "1", true);
Environment.set_variable("NO_AT_BRIDGE", "1", true);
Meta.init();
Meta.register_with_session();
return Meta.run();
}
/*
* Editor modelines - https://www.wireshark.org/tools/modelines.html
*
* Local variables:
* c-basic-offset: 4
* tab-width: 4
* indent-tabs-mode: nil
* End:
*
* vi: set shiftwidth=4 tabstop=4 expandtab:
* :indentSize=4:tabSize=4:noTabs=true:
*/