Add desktop integration for LAMMPS shell

This commit is contained in:
Axel Kohlmeyer 2020-10-23 00:20:15 -04:00
parent c29474c533
commit 8854e7b8de
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
8 changed files with 12 additions and 0 deletions

View File

@ -41,6 +41,8 @@ if(BUILD_LAMMPS_SHELL)
endif()
target_link_libraries(lammps-shell PRIVATE lammps PkgConfig::READLINE)
install(TARGETS lammps-shell EXPORT LAMMPS_Targets DESTINATION ${CMAKE_INSTALL_BINDIR})
install(DIRECTORY icons DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/)
install(FILES lammps-shell.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/)
endif()

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Type=Application
Categories=Science;Engineering;
Exec=/bin/sh -c "echo -e -n \"\033]0;The LAMMPS Shell\007\"; f=%f; test -n \"$f\" && d=`dirname \$f` && cd \$d; LC_ALL=C lammps-shell \$f"
Name=The LAMMPS Shell
Terminal=true
GenericName=MD Simulator
Keywords=MD Simulation;LAMMPS;Molecular Dynamics;N-Body
Icon=lammps