Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
45c02b11bc
!24 update dtkgui to 5.6.8.4
From: @lliuzhi 
Reviewed-by: @ut-layne-yang 
Signed-off-by: @ut-layne-yang
2024-04-09 08:26:42 +00:00
liuzhilin
87cc5965f9 update dtkgui to 5.6.8.4 2024-04-09 13:47:59 +08:00
openeuler-ci-bot
d9505d9144
!16 [sync] PR-15: upgrade to version 5.5.27
From: @openeuler-sync-bot 
Reviewed-by: @leeffo 
Signed-off-by: @leeffo
2023-08-23 03:05:28 +00:00
leeffo
085041051f upgrade to version 5.5.27
(cherry picked from commit e5254515aa91fb0822db1f39b9a946993ef09292)
2023-08-15 11:21:30 +08:00
openeuler-ci-bot
91212a7965
!12 update to 5.5.18
From: @leeffo 
Reviewed-by: @HelloWorld_lvcongqing 
Signed-off-by: @HelloWorld_lvcongqing
2023-04-07 05:45:13 +00:00
liweiganga
bbe6a9ca76 update: update to 5.5.18 2023-04-06 17:07:07 +08:00
openeuler-ci-bot
d2ce62da12
!10 feat: for sync 22.09 to master
From: @loong-C 
Reviewed-by: @yeqinglong01 
Signed-off-by: @yeqinglong01
2022-07-29 02:37:42 +00:00
loong_C
ae30ba2d8b feat: for sync 22.09 to master 2022-07-28 16:02:49 +08:00
openeuler-ci-bot
7041167fe6
!6 fix build error
Merge pull request !6 from liweiganga/master
2022-01-29 05:56:34 +00:00
liweiganga
c271339cbb fix build error 2022-01-29 13:45:19 +08:00
7 changed files with 115 additions and 111 deletions

View File

@ -0,0 +1,61 @@
From 6389063edae59a2eab7c80996b412cfca1639911 Mon Sep 17 00:00:00 2001
From: Paul Thomas <paulthomas100199@gmail.com>
Date: Tue, 30 Jan 2024 14:19:15 +0800
Subject: [PATCH] The ID of the current Session is used to register the
singleton process
---
include/kernel/dguiapplicationhelper.h | 1 +
src/kernel/dguiapplicationhelper.cpp | 17 ++++++++++++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/include/kernel/dguiapplicationhelper.h b/include/kernel/dguiapplicationhelper.h
index 72e3577..d777a36 100644
--- a/include/kernel/dguiapplicationhelper.h
+++ b/include/kernel/dguiapplicationhelper.h
@@ -137,6 +137,7 @@ Q_SIGNALS:
protected:
explicit DGuiApplicationHelper();
virtual void initialize();
+ static QString getSessionID();
private:
D_PRIVATE_SLOT(void _q_initApplicationTheme(bool))
diff --git a/src/kernel/dguiapplicationhelper.cpp b/src/kernel/dguiapplicationhelper.cpp
index f9b3fd1..913c410 100644
--- a/src/kernel/dguiapplicationhelper.cpp
+++ b/src/kernel/dguiapplicationhelper.cpp
@@ -491,6 +491,21 @@ void DGuiApplicationHelper::initialize()
d->init();
}
+QString DGuiApplicationHelper::getSessionID()
+{
+ QString sessionID = "0";
+
+ QDBusInterface *inter = new QDBusInterface("org.freedesktop.DBus",
+ "/org/freedesktop/DBus",
+ "org.freedesktop.DBus",
+ QDBusConnection::sessionBus());
+
+ sessionID = inter->call("GetId").arguments().value(0).toString();
+ inter->deleteLater();
+
+ return sessionID;
+}
+
/*!
\brief 创建 DGuiApplicationHelper 对象.
@@ -1369,7 +1384,7 @@ bool DGuiApplicationHelper::setSingleInstance(const QString &key, DGuiApplicatio
_d_singleServer->close();
}
- QString socket_key = "_d_dtk_single_instance_";
+ QString socket_key = QString("_d_dtk_single_instance_%1_").arg(getSessionID());
switch (singleScope) {
case GroupScope:
--
2.20.1

View File

@ -1,36 +0,0 @@
# dtkgui
#### Description
dtkgui
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -1,37 +0,0 @@
# dtkgui
#### 介绍
dtkgui
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

Binary file not shown.

BIN
dtkgui-5.6.8.4.tar.gz Normal file

Binary file not shown.

View File

@ -1,71 +1,91 @@
Name: dtkgui
Version: 5.2.2.1
Release: 2
Version: 5.6.8.4
Release: 5%{?dist}
Summary: Deepin dtkgui
License: GPLv3
URL: https://shuttle.deepin.com/cache/repos/apricot/release-candidate/RERFLWR0a2NvcmXmm7TmlrA1Njg/pool/main/d/dtkgui/
Source0: %{name}-%{version}.orig.tar.xz
License: LGPLv3+
URL: https://github.com/linuxdeepin/dtkgui
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch0: 0001-The-ID-of-the-current-Session-is-used-to-register-th.patch
BuildRequires: qt5-qtx11extras-devel
BuildRequires: dtkcommon-devel dtkcore
BuildRequires: dtkcore-devel
BuildRequires: librsvg2-devel
BuildRequires: gcc-c++
BuildRequires: annobin
BuildRequires: gtest-devel
BuildRequires: gcc-c++ gtest-devel
BuildRequires: annobin qt5-qttools-devel
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(gsettings-qt)
BuildRequires: gmock-devel
BuildRequires: qt5-qtbase-private-devel
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
BuildRequires: make
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: LibRaw-devel
BuildRequires: qt5-qtimageformats
BuildRequires: libqtxdg-devel
BuildRequires: freeimage-devel
Requires: qt5-qtimageformats
%description
Deepin tool kit core modules.libdtkcore5/experimentallibdtkcore5/experimentallibdtkcore5/experimentallibdtkcore5/experimental
Dtkgui is the GUI module for DDE look and feel.
%package devel
Summary: Development package for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: qt5-qtbase-devel
Requires: dtkcore-devel%{?_isa}
%description devel
Header files and libraries for %{name}.
%prep
%setup -q
%autosetup -p1
%build
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
export PATH=%{_qt5_bindir}:$PATH
%qmake_qt5 PREFIX=%{_prefix} \
DTK_VERSION=%{version} \
LIB_INSTALL_DIR=%{_libdir} \
BIN_INSTALL_DIR=%{_libexecdir}/dtk5 \
TOOL_INSTALL_DIR=%{_libexecdir}/dtk5
%cmake
%make_build
%install
%make_install INSTALL_ROOT=%{buildroot}
%ldconfig_scriptlets
%files
%doc README.md
%license LICENSE
%{_libdir}/libdtkgui.so*
%{_libexecdir}/dtk5/deepin-gui-settings
%{_libexecdir}/dtk5/taskbar
/etc/dbus-1/system.d/com.deepin.dtk.FileDrag.conf
%{_libdir}/lib%{name}.so.5*
%{_libdir}/dtk5/DGui/
%{_datadir}/*
%files devel
%{_includedir}/libdtk-*/
%{_includedir}/dtk5/
%{_libdir}/pkgconfig/dtkgui.pc
%{_libdir}/qt5/mkspecs/modules/qt_lib_dtkgui.pri
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_dtkgui.pri
%{_libdir}/cmake/DtkGui/
%{_libdir}/lib%{name}.so
%changelog
* Thu Jul 15 2021 weidong <weidong@uniontech.com> - 5.2.2.1-2
- Format spec
* Tue Jan 30 2024 liweiganga <liweiganga@uniontech.com> - 5.6.8.4-5
- fix: The ID of the current Session is used to register the singleton process(bugid:223507)
* Mon Jul 12 2021 weidong <weidong@uniontech.com> - 5.2.2.1-1
- Update 5.2.2.1
* Thu Dec 21 2023 mahailiang <mahailiang@uniontech.com> - 5.6.8.4-4
- fix: move org.deepin.dtk.gui.preference.json (bugid:234863)
* Thu Sep 3 2020 weidong <weidong@uniontech.com> - 5.2.0-2
- fix source url in spec
* Thu Dec 21 2023 mahailiang <mahailiang@uniontech.com> - 5.6.8.4-3
- fix: add requires qt5-qtimageformats(bugid:226895)
* Thu Jul 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.2.0-1
- Package init
* Wed Oct 11 2023 liweigang <liweiganga@uniontech.com> - 5.6.8.4-2
- spec: change DGui path
* Mon Oct 09 2023 liweigang <liweiganga@uniontech.com> - 5.6.8.4-1
- update: update to version 5.6.8.4
* Wed Aug 16 2023 liuzhilin <liuzhilin@uniontech.com> - 5.6.8.3-1
- update: update to 5.6.8.3
* Fri Dec 23 2022 liweiganga <liweiganga@uniontech.com> - 5.5.27-1
- update: update to 5.5.27
* Mon Jun 13 2022 uoser <uoser@uniontech.com> - 5.5.18-1.01
- update: update to 5.5.18-1.01

View File

@ -1,4 +0,0 @@
version_control: github
src_repo: linuxdeepin/dtkgui
tag_prefix: ^v
seperator: .