On Monday, October 5, 2020 11:04:36 PM EDT Jim Klassen wrote: > I wouldn't expect someone to set CMAKE_INSTALL_PREFIX=$HOME. That just > seems like a good way to cause issues to me. > > There is a ~/.local/share directory and a ~/.local/share/applications > directory in my home directory that has desktop files in it. (That might > imply using CMAKE_INSTALL_PREFIX=$HOME/.local is possible but that still > seems like it is asking for trouble.) > > Standard practice is to put the files under > ${CMAKE_INSTALL_PREFIX}/share/<app> unless the user specifically overrides > that. I consider it hostile behavior when an installer or build system > starts putting files outside of the path(s) that I have specified for it. > I can make symlinks for files in ${CMAKE_INSTALL_PREFIX}/share to > ~/.local/share/applications manually if I want to.
My build directories are: ~/build/perfecttin/cdbg for the debug build (prefix $HOME), ~/build/perfecttin/crel for the release build (prefix $HOME), ~/build/perfecttin/cins for the release build (prefix /usr/local), ~/build/perfecttin/cafl for fuzzing (prefix $HOME, but installing disabled), and the same with 'g' instead of 'c', compiled with g++ instead of clang. I added a desktop file and installed it and the icon under $HOME, then symlinked ~/share/applications/perfecttin.desktop to ~/.local/share/applications/ perfecttin.desktop . It showed up in the menu, but had no icon and didn't run. I then installed under /usr/local and it worked perfectly. Apparently I should install under ~/.local/, but the only directory under ~/.local is share; ~/.local/bin, ~/.local/include, and ~/.local/lib do not exist. Should I add ~/.local/bin to PATH, or should I make symlinks in ~/bin/? Pierre -- li fi'u vu'u fi'u fi'u du li pa _______________________________________________ Discuss mailing list Discuss@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/discuss