-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
McArcady
authored and
McArcady
committed
May 5, 2020
1 parent
08545d9
commit 15b2383
Showing
5 changed files
with
66 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ paths.* | |
config/configure.in | ||
x-tools | ||
.config.* | ||
*.bz2 | ||
|
57 changes: 57 additions & 0 deletions
57
patches/lnp/default/200-fix-python3-terminal-handling.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- a/core/terminal.py 2020-03-30 20:15:28.557439627 +0200 | ||
+++ b/core/terminal.py 2020-03-30 19:50:32.360184958 +0200 | ||
@@ -121,7 +121,7 @@ | ||
def get_command_line(): | ||
s = subprocess.check_output( | ||
['kreadconfig', '--file', 'kdeglobals', '--group', 'General', | ||
- '--key', 'TerminalApplication', '--default', 'konsole']).replace( | ||
+ '--key', 'TerminalApplication', '--default', 'konsole']).decode().replace( | ||
'\n', '') | ||
return ['nohup', s, '-e'] | ||
|
||
@@ -159,11 +159,11 @@ | ||
term = subprocess.check_output([ | ||
'gsettings', 'get', | ||
'org.gnome.desktop.default-applications.terminal', 'exec' | ||
- ]).replace('\n', '').replace("'", '') | ||
+ ]).decode().replace('\n', '').replace("'", '') | ||
term_arg = subprocess.check_output([ | ||
'gsettings', 'get', | ||
'org.gnome.desktop.default-applications.terminal', 'exec-arg' | ||
- ]).replace('\n', '').replace("'", '') | ||
+ ]).decode().replace('\n', '').replace("'", '') | ||
return ['nohup', term, term_arg] | ||
except: #fallback to older gconf | ||
pass | ||
@@ -171,11 +171,11 @@ | ||
term = subprocess.check_output([ | ||
'gconftool-2', '--get', | ||
'/desktop/gnome/applications/terminal/exec' | ||
- ]).replace('\n', '') | ||
+ ]).decode().replace('\n', '') | ||
term_arg = subprocess.check_output([ | ||
'gconftool-2', '--get', | ||
'/desktop/gnome/applications/terminal/exec_arg' | ||
- ]).replace('\n', '') | ||
+ ]).decode().replace('\n', '') | ||
return ['nohup', term, term_arg] | ||
except: | ||
raise Exception("Unable to determine terminal command.") | ||
@@ -188,7 +188,7 @@ | ||
def detect(): | ||
try: | ||
s = subprocess.check_output( | ||
- ['ps', '-eo', 'comm='], stderr=subprocess.STDOUT) | ||
+ ['ps', '-eo', 'comm='], stderr=subprocess.STDOUT).decode() | ||
return 'xfce' in s | ||
except: | ||
return False | ||
@@ -364,7 +364,7 @@ | ||
while True: | ||
try: | ||
with open(fn, 'w+b') as f: | ||
- f.write(str(value)) | ||
+ f.write(str(value).encode()) | ||
return | ||
except IOError: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters