changed launch setup

This commit is contained in:
Maxim Stewart 2020-07-05 19:28:47 -05:00
parent 80ff15b4d3
commit 3f7bab4568
6 changed files with 20 additions and 22 deletions

Binary file not shown.

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Encoding=UTF-8
Name=GWinWrap
Comment=Glade gui with python controls for XWinWrap
Exec=gwinwrap
Icon=/opt/GWinWrap/resources/icons/GWinWrap.png
Terminal=false
Type=Application
Categories=Accessories;System;Settings;

View File

@ -1,12 +0,0 @@
#!/bin/bash
# set -o xtrace ## To debug scripts
# set -o errexit ## To exit on error
# set -o errunset ## To exit if a variable is referenced but not set
function main() {
# GTK_DEBUG=interactive python3 ./GWinWrap.py
python3 ./GWinWrap.py
}
main $@;

View File

@ -30,7 +30,7 @@ class Main:
# Gets the methods from the classes and sets to handler.
# Then, builder connects to any signals it needs.
classes = [CrossClassSignals(settings)]
handlers = {}
for c in classes:
methods = inspect.getmembers(c, predicate=inspect.ismethod)
@ -39,11 +39,3 @@ class Main:
builder.connect_signals(handlers)
window = settings.createWindow()
window.show()
if __name__ == "__main__":
try:
main = Main()
gtk.main()
except Exception as e:
print(e)

9
src/GWinWrap/__main__.py Normal file
View File

@ -0,0 +1,9 @@
from __init__ import Main, gtk
if __name__ == "__main__":
try:
main = Main()
gtk.main()
except Exception as e:
print(e)

View File

@ -5,6 +5,6 @@ using namespace std;
int main() {
chdir("/opt/GWinWrap/");
system("python3 GWinWrap.py");
system("python3 .");
return 0;
}