From e47a9111feb25026cc53373dda67a5e184db19d4 Mon Sep 17 00:00:00 2001
From: tanyulong2021 <tanyulong@kylinos.cn>
Date: Mon, 6 Feb 2023 09:44:55 +0800
Subject: [PATCH] fix version upgraded the default background is blank

---
 ukui-greeter/common/configuration.cpp  | 2 +-
 ukui-greeter/greeter/greeterwindow.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ukui-greeter/common/configuration.cpp b/ukui-greeter/common/configuration.cpp
index 822b2d9..48e2e4c 100644
--- a/ukui-greeter/common/configuration.cpp
+++ b/ukui-greeter/common/configuration.cpp
@@ -219,5 +219,5 @@ QPixmap Configuration::getLogo()
 
 QString Configuration::getDefaultBackgroundName()
 {
-    return "/usr/share/backgrounds/1-warty-final-ubuntukylin.jpg";
+    return "/usr/share/backgrounds/warty-final-ubuntukylin.jpg";
 }
diff --git a/ukui-greeter/greeter/greeterwindow.cpp b/ukui-greeter/greeter/greeterwindow.cpp
index 2fefa9f..0fe4080 100644
--- a/ukui-greeter/greeter/greeterwindow.cpp
+++ b/ukui-greeter/greeter/greeterwindow.cpp
@@ -742,7 +742,7 @@ void GreeterWindow::setBackground(const QModelIndex &index)
 	    //如果配置文件不存在，就创建一个
     	QSettings settingsbak(userConfigurePath,QSettings::IniFormat);
         settingsbak.beginGroup("greeter");
-        settingsbak.setValue("backgroundPath","/usr/share/backgrounds/1-warty-final-ubuntukylin.jpg");
+        settingsbak.setValue("backgroundPath","/usr/share/backgrounds/warty-final-ubuntukylin.jpg");
         settingsbak.endGroup();
         settingsbak.sync();
         QFile file(userConfigurePath);
-- 
2.33.0

