File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import os
44import sys
55
6- APP_VERSION = '1.0.0 '
6+ APP_VERSION = '1.0.1 '
77
88if os .geteuid () != 0 :
99 print ("Root Access required, run as `root` user or use `sudo`." )
1010 sys .exit ()
1111
1212
1313print ('Start downloading tuxedo keyboard.' )
14- filename = wget .download ("https://github.com/tuxedocomputers/tuxedo-keyboard/archive/refs/heads/master.zip" )
14+ try :
15+ filename = wget .download ("https://github.com/tuxedocomputers/tuxedo-keyboard/archive/refs/heads/master.zip" )
16+ except Exception :
17+ print ("Error in download! check your internet connection." )
18+ sys .exit ()
1519
1620print ('\n Start unpack tuxedo keyboard.' )
1721shutil .unpack_archive (filename )
2024
2125print ('Start Compile and install tuxedo keyboard.' )
2226os .chdir ("tuxedo-keyboard-master" )
23- os .system ("make clean" )
24- os .system ("make" )
25- os .system ("make clean" )
26- os .system ("make dkmsinstall" )
27+ os .system ("make clean > /dev/null " )
28+ os .system ("make > /dev/null " )
29+ os .system ("make clean > /dev/null " )
30+ os .system ("make dkmsinstall > /dev/null " )
2731os .system ("echo tuxedo_keyboard >> /etc/modules" )
28- os .system ('echo "options tuxedo_keyboard mode=0 color_left=0xFF0000 color_center=0x00FF00 color_right=0x0000FF " > /etc/modprobe.d/tuxedo_keyboard.conf' )
32+ os .system ('echo "options tuxedo_keyboard mode=0 color_left=0xFFFFFF color_center=0xFFFFFF color_right=0xFFFFFF " > /etc/modprobe.d/tuxedo_keyboard.conf' )
2933
3034os .chdir (".." )
3135shutil .rmtree ("tuxedo-keyboard-master" )
Original file line number Diff line number Diff line change 1+ from math import fabs
12from PyQt5 import QtCore , QtGui , QtWidgets
23import qdarktheme
34import sys
1213import webbrowser
1314
1415
15- APP_VERSION = '1.0.0 '
16+ APP_VERSION = '1.0.1 '
1617
1718
1819def get_file (name ):
@@ -456,7 +457,8 @@ def uninstall(self):
456457 quiz = quiz .exec ()
457458
458459 if quiz == QtWidgets .QMessageBox .Yes :
459- src = os .popen ("ls /usr/src/ | grep tuxedo" ).read ()
460+ lbm .state (False )
461+ src = os .popen ("ls /usr/src/ | grep tuxedo" ).read ().strip ()
460462 version = src .replace ("tuxedo-keyboard-" , "" )
461463 src = src .replace ("-" + version , "" )
462464 cmd = f"sleep 2;dkms remove -m { src } -v { version } --all;rm -rf /usr/src/{ src } -{ version } ;rm /etc/modprobe.d/tuxedo_keyboard.conf;" \
You can’t perform that action at this time.
0 commit comments