]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
log: Drop konsole hack
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 24 Oct 2025 10:29:44 +0000 (12:29 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Fri, 24 Oct 2025 11:40:08 +0000 (13:40 +0200)
You have to configure
"Menu->Settings->Configure Konsole... ->General->"Show window title on the titlebar"
and then konsole will show the window title as expected, so drop the
hack.

mkosi/log.py

index f5f71ed53c940baa6d053bf63fb56fff922d4c92..8ed912c18dc58b153373e7a9c459822c16027c2e 100644 (file)
@@ -46,8 +46,7 @@ class ConsoleCodes:
 
     @classmethod
     def set_window_title(cls, title: str) -> str:
-        # The title is set twice, once for all terminal emulators that are not konsole and once for konsole
-        return f"{cls.OSC}0;mkosi: {title}{cls.ST}{cls.OSC}30;mkosi: {title}{cls.ST}"
+        return f"{cls.OSC}0;mkosi: {title}{cls.ST}"
 
     @classmethod
     def push_window_title(cls) -> str: