From 92981df1e8e7d8ac9564b6b0d86994eed376dda7 Mon Sep 17 00:00:00 2001 From: liweiganga Date: Fri, 18 Mar 2022 15:31:37 +0800 Subject: [PATCH] fix open fail --- dde-introduction.spec | 6 +++++- fix-not-open.patch | 17 +++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 fix-not-open.patch diff --git a/dde-introduction.spec b/dde-introduction.spec index 250d0fe..8b4c1d9 100644 --- a/dde-introduction.spec +++ b/dde-introduction.spec @@ -1,11 +1,12 @@ Name: dde-introduction Version: 5.6.0.7 -Release: 2 +Release: 3 Summary: Introduction for UOS License: GPLv3+ URL: https://github.com/linuxdeepin/%{name} Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Patch0: modify-QPainterPath-error.patch +Patch1: fix-not-open.patch BuildRequires: gcc-c++ BuildRequires: qt5-devel @@ -56,6 +57,9 @@ popd %{_datadir}/%{name}/ %changelog +* Wed Mar 16 2022 liweigang - 5.6.0.7-3 +- fix open fail + * Tue Feb 08 2022 liweigang - 5.6.0.7-2 - fix build error diff --git a/fix-not-open.patch b/fix-not-open.patch new file mode 100644 index 0000000..e543d5a --- /dev/null +++ b/fix-not-open.patch @@ -0,0 +1,17 @@ +diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp +index 739060c..f8a4472 100644 +--- a/src/mainwindow.cpp ++++ b/src/mainwindow.cpp +@@ -33,8 +33,10 @@ MainWindow::MainWindow(DWidget *parent) + QDBusConnection::sessionBus(), this)) + { + bool isx86 = QSysInfo::currentCpuArchitecture().startsWith("x86"); +- isx86 && (DSysInfo::uosEditionType() != DSysInfo::UosEdition::UosEnterpriseC) ? +- m_useVideo = true : m_useVideo = false; ++ //isx86 && (DSysInfo::uosEditionType() != DSysInfo::UosEdition::UosEnterpriseC) ? ++ // m_useVideo = true : m_useVideo = false; ++ ++ m_useVideo = false; + + connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, + &MainWindow::slotTheme); -- Gitee