diff options
| author | Andreas Sturmlechner <asturm@gentoo.org> | 2023-06-17 12:07:51 +0200 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2023-06-17 12:08:26 +0200 |
| commit | 27c563e1bb67d0e98ccf07439152b92a79175b94 (patch) | |
| tree | db6676f8db3f2a81594a8f3a549375a90723e6f7 | |
| parent | 31433838eaf10631f74a41f8785c3dbaa6d2fd03 (diff) | |
| download | kde-27c563e1bb67d0e98ccf07439152b92a79175b94.tar.gz kde-27c563e1bb67d0e98ccf07439152b92a79175b94.tar.bz2 kde-27c563e1bb67d0e98ccf07439152b92a79175b94.zip | |
kde-apps/kmix: Disable autostart by default, amend postinst msg
Bug: https://bugs.gentoo.org/791889
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
| -rw-r--r-- | kde-apps/kmix/files/kmix-23.04.2-autostart_disable.patch | 24 | ||||
| -rw-r--r-- | kde-apps/kmix/kmix-23.04.49.9999.ebuild | 12 | ||||
| -rw-r--r-- | kde-apps/kmix/kmix-9999.ebuild | 12 |
3 files changed, 42 insertions, 6 deletions
diff --git a/kde-apps/kmix/files/kmix-23.04.2-autostart_disable.patch b/kde-apps/kmix/files/kmix-23.04.2-autostart_disable.patch new file mode 100644 index 00000000000..8d587f2317c --- /dev/null +++ b/kde-apps/kmix/files/kmix-23.04.2-autostart_disable.patch @@ -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]=Звуков смесител diff --git a/kde-apps/kmix/kmix-23.04.49.9999.ebuild b/kde-apps/kmix/kmix-23.04.49.9999.ebuild index 7adfd7fcfa0..533aa0cb012 100644 --- a/kde-apps/kmix/kmix-23.04.49.9999.ebuild +++ b/kde-apps/kmix/kmix-23.04.49.9999.ebuild @@ -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 } diff --git a/kde-apps/kmix/kmix-9999.ebuild b/kde-apps/kmix/kmix-9999.ebuild index 7adfd7fcfa0..533aa0cb012 100644 --- a/kde-apps/kmix/kmix-9999.ebuild +++ b/kde-apps/kmix/kmix-9999.ebuild @@ -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 } |
