Files
musrfit/cmake/musrview.desktop.in
suter_aandClaude Opus 5.5 42a292dbc6 install the .desktop files where the desktop finds them, with full Exec path
With the usual install prefix ($ROOTSYS) the .desktop files and icons ended
up in $ROOTSYS/share, which is neither in $XDG_DATA_HOME nor $XDG_DATA_DIRS.
They now go to MUSRFIT_XDG_DATA_DIR, defaulting to the system share dir for
/usr and /usr/local prefixes and to $XDG_DATA_HOME (~/.local/share) otherwise.

The .desktop files are configured from templates so that Exec= holds the full
path of the binary, since $ROOTSYS/bin is typically not on the PATH of the
graphical session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 18:20:46 +02:00

13 lines
317 B
Desktop File

[Desktop Entry]
Name=musrview
Comment=viewer for musrfit data and fit results
GenericName=musrfit viewer
Exec=@CMAKE_INSTALL_FULL_BINDIR@/musrview %f
Icon=musrview
Terminal=false
Type=Application
NoDisplay=true
StartupWMClass=musrview
Categories=Science;DataVisualization;
Keywords=muSR;fitting;musrfit;physics;muon;