mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-02 23:48:17 -07:00
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:
24
kde-apps/kmix/files/kmix-23.04.2-autostart_disable.patch
Normal file
24
kde-apps/kmix/files/kmix-23.04.2-autostart_disable.patch
Normal 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]=Звуков смесител
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user