[Pkg-sugar-commit] [sugar-terminal-activity] 02/09: Set font size default for Fedora 18
Jonas Smedegaard
dr at jones.dk
Wed Nov 15 02:42:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/45.2-1
in repository sugar-terminal-activity.
commit 90b5a0ed9b5a921f536c9e1e8157bc3149fe6566
Author: James Cameron <quozl at laptop.org>
Date: Mon Oct 9 17:00:16 2017 +1100
Set font size default for Fedora 18
In Terminal-44.1 on Fedora 18 the column width of the terminal is much
less than 80 columns, so the multi-lingual and Klingon greeting does not
render properly.
Regression caused by 9e5a4c4f045de8f1ab9e35580b57c1d3dd282201.
---
terminal.py | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/terminal.py b/terminal.py
index e57d030..8381bc4 100644
--- a/terminal.py
+++ b/terminal.py
@@ -64,7 +64,15 @@ log = logging.getLogger('Terminal')
log.setLevel(logging.DEBUG)
logging.basicConfig()
-FONT_SIZE = 10
+try:
+ olpc_build = file('/boot/olpc_build', 'r').readline()
+except:
+ olpc_build = ''
+
+if olpc_build.startswith('13'):
+ FONT_SIZE = 8
+else:
+ FONT_SIZE = 12
VTE_VERSION = 0
try:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-terminal-activity.git
More information about the pkg-sugar-commit
mailing list