Merge pull request #176895 from greydot/latte-dock

latte-dock: 0.10.4 -> unstable-2022-09-06

authored by

Jonas Heinrich and committed by
GitHub
56ce837a 5fbcf257

+47 -35
+34
pkgs/applications/misc/latte-dock/0001-Disable-autostart.patch
··· 1 + From ad3f083de2dca2b2c5189430d33a78acfbd9d694 Mon Sep 17 00:00:00 2001 2 + From: Lana Black <lanablack@amok.cc> 3 + Date: Wed, 8 Jun 2022 12:42:31 +0000 4 + Subject: [PATCH] Disable autostart. 5 + 6 + --- 7 + app/settings/universalsettings.cpp | 11 ----------- 8 + 1 file changed, 11 deletions(-) 9 + 10 + diff --git a/app/settings/universalsettings.cpp b/app/settings/universalsettings.cpp 11 + index c95371db..4efd3ffe 100644 12 + --- a/app/settings/universalsettings.cpp 13 + +++ b/app/settings/universalsettings.cpp 14 + @@ -74,17 +74,6 @@ UniversalSettings::~UniversalSettings() 15 + 16 + void UniversalSettings::load() 17 + { 18 + - //! check if user has set the autostart option 19 + - bool autostartUserSet = m_universalGroup.readEntry("userConfiguredAutostart", false); 20 + - 21 + - if (!autostartUserSet && !autostart()) { 22 + - //! the first time the application is running and autostart is not set, autostart is enabled 23 + - //! and from now own it will not be recreated in the beginning 24 + - 25 + - setAutostart(true); 26 + - m_universalGroup.writeEntry("userConfiguredAutostart", true); 27 + - } 28 + - 29 + //! init screen scales 30 + m_screenScalesGroup = m_universalGroup.group("ScreenScales"); 31 + 32 + -- 33 + 2.36.1 34 +
-25
pkgs/applications/misc/latte-dock/0001-close-user-autostart.patch
··· 1 - From a162c54ed1fcc39434edf8666c72c305d05e79e6 Mon Sep 17 00:00:00 2001 2 - From: diffumist <git@diffumist.me> 3 - Date: Mon, 4 Oct 2021 16:58:37 +0800 4 - Subject: [PATCH] close user config autostart 5 - 6 - --- 7 - app/settings/universalsettings.cpp | 3 --- 8 - 1 file changed, 3 deletions(-) 9 - 10 - diff --git a/app/settings/universalsettings.cpp b/app/settings/universalsettings.cpp 11 - index e0010542..82b9e785 100644 12 - --- a/app/settings/universalsettings.cpp 13 - +++ b/app/settings/universalsettings.cpp 14 - @@ -77,9 +77,6 @@ void UniversalSettings::load() 15 - //! check if user has set the autostart option 16 - bool autostartUserSet = m_universalGroup.readEntry("userConfiguredAutostart", false); 17 - 18 - - if (!autostartUserSet && !autostart()) { 19 - - setAutostart(true); 20 - - } 21 - 22 - //! init screen scales 23 - m_screenScalesGroup = m_universalGroup.group("ScreenScales"); 24 - -- 25 - 2.33.0
+13 -10
pkgs/applications/misc/latte-dock/default.nix
··· 1 - { mkDerivation, lib, cmake, xorg, plasma-framework, fetchurl 2 - , extra-cmake-modules, karchive, kwindowsystem, qtx11extras, kcrash, knewstuff }: 1 + { mkDerivation, lib, cmake, xorg, plasma-framework, plasma-wayland-protocols, fetchFromGitLab 2 + , extra-cmake-modules, karchive, kwindowsystem, qtx11extras, qtwayland, kcrash, knewstuff, wayland }: 3 3 4 4 mkDerivation rec { 5 5 pname = "latte-dock"; 6 - version = "0.10.4"; 6 + version = "unstable-2022-09-06"; 7 7 8 - src = fetchurl { 9 - url = "https://download.kde.org/stable/${pname}/${pname}-${version}.tar.xz"; 10 - sha256 = "XRop+MNcbeCcbnL2LM1i67QvMudW3CjWYEPLkT/qbGM="; 11 - name = "${pname}-${version}.tar.xz"; 8 + src = fetchFromGitLab { 9 + domain = "invent.kde.org"; 10 + owner = "plasma"; 11 + repo = "latte-dock"; 12 + rev = "cd36798a61a37652eb549d7dfcdf06d2028eddc4"; 13 + sha256 = "sha256-X2PzI2XJje4DpPh7gTtYnMIwerR1IDY53HImvEtFmF4="; 12 14 }; 13 15 14 - buildInputs = [ plasma-framework xorg.libpthreadstubs xorg.libXdmcp xorg.libSM ]; 16 + buildInputs = [ plasma-framework plasma-wayland-protocols qtwayland xorg.libpthreadstubs xorg.libXdmcp xorg.libSM wayland ]; 15 17 16 18 nativeBuildInputs = [ extra-cmake-modules cmake karchive kwindowsystem 17 19 qtx11extras kcrash knewstuff ]; 18 20 19 21 patches = [ 20 - ./0001-close-user-autostart.patch 22 + ./0001-Disable-autostart.patch 21 23 ]; 24 + 22 25 fixupPhase = '' 23 26 mkdir -p $out/etc/xdg/autostart 24 27 cp $out/share/applications/org.kde.latte-dock.desktop $out/etc/xdg/autostart ··· 26 29 27 30 meta = with lib; { 28 31 description = "Dock-style app launcher based on Plasma frameworks"; 29 - homepage = "https://github.com/psifidotos/Latte-Dock"; 32 + homepage = "https://invent.kde.org/plasma/latte-dock"; 30 33 license = licenses.gpl2; 31 34 platforms = platforms.unix; 32 35 maintainers = [ maintainers.ysndr ];