kde-apps/kmix: Disable autostart by default, amend postinst msg

Bug: https://bugs.gentoo.org/791889
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2023-06-17 12:07:51 +02:00
parent bf527a4a53
commit 6b3dfd1287
2 changed files with 33 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
diff -up kmix-21.04.0/core/settings.kcfg.autostart_disable kmix-21.04.0/core/settings.kcfg
--- kmix-21.04.0/core/settings.kcfg.autostart_disable 2021-04-28 16:34:04.623152452 -0500
+++ kmix-21.04.0/core/settings.kcfg 2021-04-28 16:31:03.076698930 -0500
@@ -57,7 +57,7 @@
<!-- Set by KMixPrefDlg, read by kmix_autostart.desktop -->
<entry name="AutoStart" type="Bool">
- <default>true</default>
+ <default>false</default>
</entry>
<!-- Saved by KMixWindow::saveBaseConfig() and loaded -->
diff -up kmix-21.04.0/desktop/kmix_autostart.desktop.autostart_disable kmix-21.04.0/desktop/kmix_autostart.desktop
--- kmix-21.04.0/desktop/kmix_autostart.desktop.autostart_disable 2021-04-28 16:34:18.456263203 -0500
+++ kmix-21.04.0/desktop/kmix_autostart.desktop 2021-04-28 16:32:58.722624829 -0500
@@ -8,7 +8,7 @@ X-KDE-autostart-after=panel
X-KDE-autostart-after=pulseaudio
X-KDE-StartupNotify=false
X-DBUS-StartupType=Unique
-X-KDE-autostart-condition=kmixrc:Global:AutoStart:true
+X-KDE-autostart-condition=kmixrc:Global:AutoStart:false
Icon=kmix
GenericName=Sound Mixer
GenericName[bg]=Звуков смесител

View File

@@ -44,6 +44,8 @@ RDEPEND="${DEPEND}
kde-plasma/kde-cli-tools:5
"
PATCHES=( "${FILESDIR}/${PN}-23.04.2-autostart_disable.patch" ) # TODO: upstream
src_configure() {
local mycmakeargs=(
$(cmake_use_find_package alsa ALSA)
@@ -57,12 +59,16 @@ src_configure() {
pkg_postinst() {
if use pulseaudio && has_version kde-plasma/plasma-pa; then
elog "In KDE Plasma, kde-plasma/plasma-pa is the default audio volume handler."
elog "Should you prefer this to be kde-apps/kmix instead, do the following:"
elog "In KDE Plasma, kde-plasma/plasma-pa is the default audio volume handler,"
elog "therefore, autostart by default was disabled for KMix."
elog
elog "Should you prefer to still use kde-apps/kmix instead, do the following:"
elog " - In system tray, right click on [Show hidden items]"
elog " - Select [Configure System Tray]"
elog " - In [Entries], search for [Audio Volume] and set it to [Disabled]"
elog "KMix will be shown as [Volume Control]."
elog
fi
elog "KMix will be shown as [Volume Control] after manually starting it once"
elog "and will be autostarted after configuring such in KMix startup settings."
ecm_pkg_postinst
}