Ticket #2520 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

Include an icon in the RPM

Reported by: Martyn Gigg Owned by: Russell Taylor
Priority: major Milestone: Release 2.1
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Stuart Campbell

Description

To make life easier on Redhat or any other Linux system we decide to deploy to

On Ubuntu at least a .desktop file containing something like

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Name=MantidPlot
Comment=Neutron Data Reduction Framework
GenericName=MantidPlot
Exec=/home/mgigg/Work/mantidproject/builddir/mantid/debug/bin/MantidPlot
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=Application;
Icon=/home/mgigg/Work/mantidproject/repo/Code/Mantid/Images/MantidPlot_Icon_32offset.png
StartupNotify=false
Name[en_GB]=MantidPlot

does the trick. I'm not sure where it should go though.

Change History

comment:1 Changed 9 years ago by Nick Draper

  • Owner set to Russell Taylor
  • Status changed from new to assigned

To consider with CPACK work

comment:2 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 28 to Iteration 29

Bulk move of tickets at the end of iteration 28

comment:3 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 29 to Iteration 30

Accepted and assigned tickets moved at iteration 29 code freeze

comment:4 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 30 to Iteration 31

Bulk move of tickets to iteration 31 at the iteration 30 code freeze

comment:6 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 32 to Iteration 33

Moved to iteration 33 at iteration 32 code freeze

comment:7 Changed 9 years ago by Russell Taylor

  • Status changed from assigned to accepted

comment:8 Changed 9 years ago by Russell Taylor

Add installed MantidPlot as menu item on linux. Re #2520.

Changeset: 25d5817df4eb9968919ea34473f66142b62f34c5

comment:9 Changed 9 years ago by Russell Taylor

  • Status changed from accepted to verify
  • Resolution set to fixed

Works with GNOME on RHEL6 & Ubuntu (checked on a 10.10 box). Don't know about KDE.

To test: install Mantid on linux and check under the Applications menu. It should appear, including both text and the Mantid logo, under one of these categories: Science, Education, Qt (or 'Other' if none of the others are present). The files are in /usr/share/applications/mantidplot.desktop & /usr/share/pixmaps/mantidplot.png.

This is only added if Mantid is installed to /opt/Mantid and points to there (to prevent it pointing to the most recently installed of nightly, unstable etc.).

If you test using 'make install' rather than installing the package, the above files will need removing manually.

comment:10 Changed 9 years ago by Russell Taylor

Add installed MantidPlot as menu item on linux. Re #2520.

Changeset: 25d5817df4eb9968919ea34473f66142b62f34c5

comment:11 Changed 8 years ago by Stuart Campbell

  • Status changed from verify to verifying
  • Tester set to Stuart Campbell

comment:12 Changed 8 years ago by Stuart Campbell

  • Status changed from verifying to closed

Files do indeed get installed into /usr/share/applications and /usr/share/pixmaps

comment:13 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 3367

Note: See TracTickets for help on using tickets.