Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

userscripts/Sounds.sh: for Non-FHS systems, use the runtime dir #190

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

JohnRTitor
Copy link
Contributor

Description

On Non-FHS systems like NixOS, the system sounds are located in /run/current-system/sw/share/sounds according to XDG specification. This patch allows the script (Sounds.sh) to fallback to this directory if the sound files are not found in /usr/share/sounds or $HOME/.local/share/sounds.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

Please put an x in the boxes that apply:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My commit message follows the commit guidelines.
  • I have tested my code locally and it works as expected.
  • All new and existing tests passed.

Screenshots

image

on Non-FHS systems like NixOS, the system sounds are located
in /run/current-system/sw/share/sounds according to XDG specification
This patch allows the script to fallback to this directory if the
sound files are not found in /usr/share/sounds or $HOME/.local/share/sounds
@JaKooLit JaKooLit merged commit 3aadf05 into JaKooLit:development Apr 9, 2024
@JohnRTitor JohnRTitor deleted the patch-sounds branch April 9, 2024 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants