latte-dock: fix autostart file (#140462)

authored by

Diffumist and committed by
GitHub
c50a069e b995290d

+32 -1
+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
+7 -1
pkgs/applications/misc/latte-dock/default.nix
··· 16 nativeBuildInputs = [ extra-cmake-modules cmake karchive kwindowsystem 17 qtx11extras kcrash knewstuff ]; 18 19 - 20 21 meta = with lib; { 22 description = "Dock-style app launcher based on Plasma frameworks";
··· 16 nativeBuildInputs = [ extra-cmake-modules cmake karchive kwindowsystem 17 qtx11extras kcrash knewstuff ]; 18 19 + patches = [ 20 + ./0001-close-user-autostart.patch 21 + ]; 22 + fixupPhase = '' 23 + mkdir -p $out/etc/xdg/autostart 24 + cp $out/share/applications/org.kde.latte-dock.desktop $out/etc/xdg/autostart 25 + ''; 26 27 meta = with lib; { 28 description = "Dock-style app launcher based on Plasma frameworks";