-
Notifications
You must be signed in to change notification settings - Fork 1
/
MoonZaphire.lua
50 lines (43 loc) · 1.27 KB
/
MoonZaphire.lua
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
--[[--
@package MoonZaphire
@filename main.lua
@version 1.0
@author Díaz Urbaneja Víctor Eduardo Diex <[email protected]>
@date 05.02.2021 00:09:36 -04
]]
package.path = package.path .. ';lib/?.lua;src/?.lua'
-- I require the libraries I depend on
print("Loading libraries:")
lgi = require 'lgi'
print("| 'lgi' loaded successfully. (Thanks Pavouk!)")
GObject = lgi.GObject
print("|----- 'lgi.GObject' loaded successfully.")
Gtk = lgi.require('Gtk', '3.0')
print("|----- 'lgi.Gtk' loaded successfully.")
Gio = lgi.Gio
print("|----- 'lgi.Gio' loaded successfully.")
GLib = lgi.GLib
print("|----- 'lgi.GLib' loaded successfully.")
Gdk = lgi.Gdk
print("|----- 'lgi.Gdk' loaded successfully.")
GdkPixbuf = lgi.GdkPixbuf
print("|----- 'lgi.GdkPixbuf' loaded successfully.")
Pango = lgi.Pango
print("|----- 'lgi.Pango' loaded successfully.")
require 'init'
print("Libraries loaded!\n")
--- I create a namespace (master class)
MoonZaphire = lgi.package("MoonZaphire")
-- I require my modules
require('app')
require('start')
require('login.auth_user')
require('login.auth_host')
require('settings.contacts')
require('settings.general')
require('chat.roster')
require('window')
--- Start the application
local App = MoonZaphire.App()
App:register()
return App:run(arg)