changed launch setup
This commit is contained in:
parent
80ff15b4d3
commit
3f7bab4568
Binary file not shown.
9
src/GWinWrap/GWinWrap.desktop
Normal file
9
src/GWinWrap/GWinWrap.desktop
Normal 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;
|
@ -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 $@;
|
@ -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
9
src/GWinWrap/__main__.py
Normal file
@ -0,0 +1,9 @@
|
||||
from __init__ import Main, gtk
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
main = Main()
|
||||
gtk.main()
|
||||
except Exception as e:
|
||||
print(e)
|
@ -5,6 +5,6 @@ using namespace std;
|
||||
|
||||
int main() {
|
||||
chdir("/opt/GWinWrap/");
|
||||
system("python3 GWinWrap.py");
|
||||
system("python3 .");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user