psi icon indicating copy to clipboard operation
psi copied to clipboard

use sounds themes from /usr/share/sounds/

Open jleclanche opened this issue 13 years ago • 2 comments

This makes more sense and follows xdg guidelines.

jleclanche avatar Feb 01 '12 15:02 jleclanche

Let's see in Debian GNU/Linux unstable:

$ ls -p /usr/share/sounds
alsa/                               KDE-Sys-List-Match-No.ogg           Oxygen-Im-User-Auth.ogg
freedesktop/                        KDE-Sys-Log-In-Long.ogg             Oxygen-K3B-Finish-Error.ogg
GNUstep/                            KDE-Sys-Log-In.ogg                  Oxygen-K3B-Finish-Success.ogg
KDE-Im-Cant-Connect.ogg             KDE-Sys-Log-In-Short.ogg            Oxygen-K3B-Insert-Medium.ogg
KDE-Im-Connection-Lost.ogg          KDE-Sys-Log-Out.ogg                 Oxygen-Sys-App-Error-Critical.ogg
KDE-Im-Contact-In.ogg               KDE-Sys-Question.ogg                Oxygen-Sys-App-Error.ogg
KDE-Im-Contact-Out.ogg              KDE-Sys-Special.ogg                 Oxygen-Sys-App-Error-Serious.ogg
KDE-Im-Error-On-Connection.ogg      KDE-Sys-Trash-Emptied.ogg           Oxygen-Sys-App-Error-Serious-Very.ogg
KDE-Im-Highlight-Msg.ogg            KDE-Sys-Warning.ogg                 Oxygen-Sys-App-Message.ogg
KDE-Im-Internal-Error.ogg           KDE-Window-All-Desktops-Not.ogg     Oxygen-Sys-App-Negative.ogg
KDE-Im-Irc-Event.ogg                KDE-Window-All-Desktops.ogg         Oxygen-Sys-App-Positive.ogg
KDE-Im-Low-Priority-Message.ogg     KDE-Window-Close.ogg                Oxygen-Sys-Error-Printing.ogg
KDE-Im-Message-In.ogg               KDE-Window-Maximize.ogg             Oxygen-Sys-File-Open-Foes.ogg
KDE-Im-Message-Out.ogg              KDE-Window-Minimize.ogg             Oxygen-Sys-List-End.ogg
KDE-Im-Network-Problems.ogg         KDE-Window-Move.ogg                 Oxygen-Sys-List-Match-Multiple.ogg
KDE-Im-New-Mail.ogg                 KDE-Window-Move-Stop.ogg            Oxygen-Sys-List-Match-No.ogg
KDE-Im-Nudge.ogg                    KDE-Window-Shade-Down.ogg           Oxygen-Sys-Log-In-Long.ogg
KDE-Im-Phone-Ring.ogg               KDE-Window-Shade-Up.ogg             Oxygen-Sys-Log-In.ogg
KDE-Im-Sms.ogg                      Oxygen-Im-Cant-Connect.ogg          Oxygen-Sys-Log-In-Short.ogg
KDE-Im-User-Auth.ogg                Oxygen-Im-Connection-Lost.ogg       Oxygen-Sys-Log-Out.ogg
KDE-K3B-Finish-Error.ogg            Oxygen-Im-Contact-In.ogg            Oxygen-Sys-Question.ogg
KDE-K3B-Finish-Success.ogg          Oxygen-Im-Contact-Out.ogg           Oxygen-Sys-Special.ogg
KDE-K3B-Insert-Medium.ogg           Oxygen-Im-Error-On-Connection.ogg   Oxygen-Sys-Trash-Emptied.ogg
KDE-Sys-App-Error-Critical.ogg      Oxygen-Im-Highlight-Msg.ogg         Oxygen-Sys-Warning.ogg
KDE-Sys-App-Error.ogg               Oxygen-Im-Internal-Error.ogg        Oxygen-Window-All-Desktops-Not.ogg
KDE-Sys-App-Error-Serious.ogg       Oxygen-Im-Irc-Event.ogg             Oxygen-Window-All-Desktops.ogg
KDE-Sys-App-Error-Serious-Very.ogg  Oxygen-Im-Low-Priority-Message.ogg  Oxygen-Window-Close.ogg
KDE-Sys-App-Message.ogg             Oxygen-Im-Message-In.ogg            Oxygen-Window-Maximize.ogg
KDE-Sys-App-Negative.ogg            Oxygen-Im-Message-Out.ogg           Oxygen-Window-Minimize.ogg
KDE-Sys-App-Positive.ogg            Oxygen-Im-Network-Problems.ogg      Oxygen-Window-Move.ogg
KDE-Sys-Error-Printing.ogg          Oxygen-Im-New-Mail.ogg              Oxygen-Window-Move-Stop.ogg
KDE-Sys-File-Open-Foes.ogg          Oxygen-Im-Nudge.ogg                 Oxygen-Window-Shade-Down.ogg
KDE-Sys-List-End.ogg                Oxygen-Im-Phone-Ring.ogg            Oxygen-Window-Shade-Up.ogg
KDE-Sys-List-Match-Multiple.ogg     Oxygen-Im-Sms.ogg

Let's see the whole amount of installed packages:

$ dpkg -l | wc -l
4108

Ok, let's calculate sound files in /usr/share/sounds and in the system:

$ find /usr/share/sounds -type f | grep -E '\.ogg$|\.oga$|\.wav$|\.mp3$' | xargs cat | wc -l
25184
$ find /usr/share -type f | grep -E '\.ogg$|\.oga$|\.wav$|\.mp3$' | xargs cat | wc -l
1074874

I.e. only 2.3% of sound files are in /usr/share/sounds and this practice does not look as widely used.

Also I have found nothing about sound files in FHS.

Thus I do not think that we really need this feature in Psi.

@Ri0n Any comments?

tehnick avatar Mar 04 '19 10:03 tehnick

this is a specification for this here https://specifications.freedesktop.org/sound-theme-spec/sound-theme-spec-latest.html

so basically this directory is for sounds themes. application also can install its files (see "Installing Application Sounds"), but it looks like we should be very careful wrt files conflicts. It would be easier to do a contrary things - keep files where they are now but try to lookup themed files on start and use them instead of bundled if found.

I renamed the issue title accordingly.

Ri0n avatar Apr 21 '24 22:04 Ri0n