1 |
commit: 0281ba71b34942191930a86d3fb2faad8b91686d |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 24 17:06:58 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 24 18:01:23 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0281ba71 |
7 |
|
8 |
kde-misc/latte-dock: Fix first-run experience |
9 |
|
10 |
See also: https://bugs.kde.org/show_bug.cgi?id=404762 |
11 |
|
12 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
.../latte-dock-0.8.6-create-dir-if-missing.patch | 34 ++++++++++++++ |
16 |
kde-misc/latte-dock/latte-dock-0.8.6-r1.ebuild | 53 ++++++++++++++++++++++ |
17 |
2 files changed, 87 insertions(+) |
18 |
|
19 |
diff --git a/kde-misc/latte-dock/files/latte-dock-0.8.6-create-dir-if-missing.patch b/kde-misc/latte-dock/files/latte-dock-0.8.6-create-dir-if-missing.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..97cc7c1d76d |
22 |
--- /dev/null |
23 |
+++ b/kde-misc/latte-dock/files/latte-dock-0.8.6-create-dir-if-missing.patch |
24 |
@@ -0,0 +1,34 @@ |
25 |
+From 7283e2698d1fcd9aba2e4e1de1b24ed13425e2f5 Mon Sep 17 00:00:00 2001 |
26 |
+From: Michail Vourlakos <mvourlakos@×××××.com> |
27 |
+Date: Sun, 24 Feb 2019 13:10:04 +0200 |
28 |
+Subject: create latte dir if missing when loading presets |
29 |
+ |
30 |
+--this is critical because it does not open Latte at |
31 |
+first run. The fix is just to make sure that "latte" |
32 |
+directory will be created in case there isnt already |
33 |
+ |
34 |
+BUG: 404762 |
35 |
+--- |
36 |
+ app/layoutmanager.cpp | 6 ++++++ |
37 |
+ 1 file changed, 6 insertions(+) |
38 |
+ |
39 |
+diff --git a/app/layoutmanager.cpp b/app/layoutmanager.cpp |
40 |
+index 73cb740..97abed1 100644 |
41 |
+--- a/app/layoutmanager.cpp |
42 |
++++ b/app/layoutmanager.cpp |
43 |
+@@ -1075,6 +1075,12 @@ void LayoutManager::importPresets(bool includeDefault) |
44 |
+ |
45 |
+ void LayoutManager::importPreset(int presetNo, bool newInstanceIfPresent) |
46 |
+ { |
47 |
++ QDir configDir(QDir::homePath() + "/.config"); |
48 |
++ |
49 |
++ if (!QDir(configDir.absolutePath() + "/latte").exists()) { |
50 |
++ configDir.mkdir("latte"); |
51 |
++ } |
52 |
++ |
53 |
+ QByteArray presetNameOrig = QString("preset" + QString::number(presetNo)).toUtf8(); |
54 |
+ QString presetPath = m_corona->kPackage().filePath(presetNameOrig); |
55 |
+ QString presetName = Layout::layoutName(presetPath); |
56 |
+-- |
57 |
+cgit v1.1 |
58 |
+ |
59 |
|
60 |
diff --git a/kde-misc/latte-dock/latte-dock-0.8.6-r1.ebuild b/kde-misc/latte-dock/latte-dock-0.8.6-r1.ebuild |
61 |
new file mode 100644 |
62 |
index 00000000000..332a87ea14f |
63 |
--- /dev/null |
64 |
+++ b/kde-misc/latte-dock/latte-dock-0.8.6-r1.ebuild |
65 |
@@ -0,0 +1,53 @@ |
66 |
+# Copyright 1999-2019 Gentoo Authors |
67 |
+# Distributed under the terms of the GNU General Public License v2 |
68 |
+ |
69 |
+EAPI=7 |
70 |
+ |
71 |
+inherit kde5 |
72 |
+ |
73 |
+if [[ ${KDE_BUILD_TYPE} = release ]]; then |
74 |
+ SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz" |
75 |
+ KEYWORDS="~amd64 ~x86" |
76 |
+fi |
77 |
+ |
78 |
+DESCRIPTION="Elegant dock, based on KDE Frameworks" |
79 |
+HOMEPAGE="https://store.kde.org/p/1169519/ |
80 |
+ https://github.com/psifidotos/Latte-Dock" |
81 |
+ |
82 |
+LICENSE="GPL-2+" |
83 |
+SLOT="0" |
84 |
+IUSE="" |
85 |
+ |
86 |
+DEPEND=" |
87 |
+ $(add_frameworks_dep kactivities) |
88 |
+ $(add_frameworks_dep karchive) |
89 |
+ $(add_frameworks_dep kconfig) |
90 |
+ $(add_frameworks_dep kcoreaddons) |
91 |
+ $(add_frameworks_dep kcrash) |
92 |
+ $(add_frameworks_dep kdbusaddons) |
93 |
+ $(add_frameworks_dep kdeclarative) |
94 |
+ $(add_frameworks_dep kglobalaccel) |
95 |
+ $(add_frameworks_dep ki18n) |
96 |
+ $(add_frameworks_dep kiconthemes) |
97 |
+ $(add_frameworks_dep knewstuff) |
98 |
+ $(add_frameworks_dep knotifications) |
99 |
+ $(add_frameworks_dep kpackage) |
100 |
+ $(add_frameworks_dep kwayland) |
101 |
+ $(add_frameworks_dep kwindowsystem) |
102 |
+ $(add_frameworks_dep kxmlgui) |
103 |
+ $(add_frameworks_dep plasma X) |
104 |
+ $(add_qt_dep qtdbus) |
105 |
+ $(add_qt_dep qtdeclarative) |
106 |
+ $(add_qt_dep qtgraphicaleffects) |
107 |
+ $(add_qt_dep qtgui 'xcb') |
108 |
+ $(add_qt_dep qtwidgets) |
109 |
+ $(add_qt_dep qtx11extras) |
110 |
+ x11-libs/libSM |
111 |
+ x11-libs/libX11 |
112 |
+ x11-libs/libxcb |
113 |
+" |
114 |
+RDEPEND="${DEPEND}" |
115 |
+ |
116 |
+DOCS=( CHANGELOG.md README.md ) |
117 |
+ |
118 |
+PATCHES=( "${FILESDIR}/${P}-create-dir-if-missing.patch" ) |