From 8e1d47033e3a77b164ba1897c99ace0056be314a Mon Sep 17 00:00:00 2001 From: Sergey Markov Date: Sat, 7 Jan 2023 14:35:10 +0300 Subject: [PATCH] Add lightdm-webkit2-greeter-3.5.1-dia.patch --- lightdm-webkit2-greeter-3.5.1-dia.patch | 21 +++++++++++++++++++++ lightdm-webkit2-greeter.spec | 7 ++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 lightdm-webkit2-greeter-3.5.1-dia.patch diff --git a/lightdm-webkit2-greeter-3.5.1-dia.patch b/lightdm-webkit2-greeter-3.5.1-dia.patch new file mode 100644 index 0000000..4e6656b --- /dev/null +++ b/lightdm-webkit2-greeter-3.5.1-dia.patch @@ -0,0 +1,21 @@ +diff -uNbBw lightdm-webkit2-greeter-3.5.1/src/bridge/Greeter.py lightdm-webkit2-greeter-3.5.1-new/src/bridge/Greeter.py +--- lightdm-webkit2-greeter-3.5.1/src/bridge/Greeter.py ++++ lightdm-webkit2-greeter-3.5.1-new/src/bridge/Greeter.py +@@ -96,16 +96,7 @@ class Greeter(BridgeObject): + LightDMGreeter.connect_to_daemon_sync() + except GError as err: + logger.error(err) +- dia = Dialog( +- title = "An error ocurred", +- message = "Detected a problem that could interfere" \ +- " with the system login process", +- detail = f"LightDM: {err}\n" \ +- "You can continue without major problems, " \ +- "but you won't be able to log in", +- buttons = ["Okay"] +- ) +- dia.exec() ++ logger.warn("Detected a problem that could interfere with the system login process. You can continue without major problems, but you won't be able to log in") + + self._connect_signals() + self._determine_shared_data_directory_path() diff --git a/lightdm-webkit2-greeter.spec b/lightdm-webkit2-greeter.spec index d9b1a7e..1aa8f83 100644 --- a/lightdm-webkit2-greeter.spec +++ b/lightdm-webkit2-greeter.spec @@ -1,6 +1,6 @@ Name: lightdm-webkit2-greeter Version: 3.5.1 -Release: alt1 +Release: alt2 Summary: A modern, visually appealing greeter for LightDM. License: GPL-3.0 @@ -23,6 +23,7 @@ Source1: %name.conf Patch: lightdm-webkit2-greeter-3.5.1-makefile.patch Patch1: lightdm-webkit2-greeter-3.5.1-basedir.patch Patch2: lightdm-webkit2-greeter-3.5.1-opt.patch +Patch3: lightdm-webkit2-greeter-3.5.1-dia.patch %add_python3_path %_libdir/web-greeter @@ -61,6 +62,7 @@ sed -i 's|\(#\!/usr/bin/env python\)$|\13|' src/bridge/*.py %patch -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 subst 's,\,%_lib,g' Makefile @@ -109,6 +111,9 @@ install -m 644 %SOURCE1 %buildroot%_sysconfdir/lightdm/ %doc *.md %changelog +* Sat Jan 7 2023 Sergey Markov 3.5.1-alt2 +- Add lightdm-webkit2-greeter-3.5.1-dia.patch + * Sun Dec 11 2022 Sergey Markov 3.5.1-alt1 - New version