Skip to content

fix(sounds): use the FHS data directory for alert sounds - #65

Open
atmospher3 wants to merge 3 commits into
WSJTX:masterfrom
atmospher3:master
Open

atmospher3 wants to merge 3 commits into
WSJTX:masterfrom
atmospher3:master

Conversation

@atmospher3

Copy link
Copy Markdown

Alert sounds and voices.dat were looked up under applicationDirPath() + "/sounds/", which on Linux resolves to /usr/bin/sounds/ instead of the FHS data directory /usr/share/wsjtx/sounds/.

This PR:

  • installs sounds/ to ${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME} instead of ${CMAKE_INSTALL_BINDIR};
  • resolves sounds via the existing data_dir() (FHS data dir) rather than applicationDirPath();

Related: #5

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.

1 participant