Skip to content

Commit

Permalink
Added example desktop entries for Linux users
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellGarwood committed May 23, 2020
1 parent 5a5ddd3 commit bfadfb7
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,19 @@ Build by running the make command:
You can then copy the executable files to your desired location, for example, the below will place the files in the SPIERS root directory:

`cp SPIERSalign/bin/SPIERSalign64 ./`

`cp SPIERSedit/bin/SPIERSedit64 ./`

`cp SPIERSview/bin/SPIERSview64 ./`

The executables need to be in the same folder to allow SPIERSedit to launch SPIERSview.

6. Should you wish to create desktop icons or for SPIERS to appear in your launcher, we provide exemplar desktop entries in the SPIERS/examples folder of the repository, coupled with icons for these. Place the icons in the same folder alongside the executable files, and place this folder wherever you would like it to live on your system. The edit the paths to the executables and icons by replacing XXXXX in the example files with your path. Double clicking on the desktop entry will ask you to trust and launch the program. Placing the entry on your desktop will create an icon that launches the software. Additionally, if you open a terminal at the location where the desktop entry is stored, and copy it from there to /usr/share/applications/ using this command

`sudo cp SPIERSalign.desktop /usr/share/applications/`

`sudo cp SPIERSedit.desktop /usr/share/applications/`

`sudo cp SPIERSview.desktop /usr/share/applications/`

This will create entries for each package in the GNOME activities overview / launcher.
Expand Down
13 changes: 13 additions & 0 deletions examples/Desktop entries/SPIERSalign.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env xdg-open

[Desktop Entry]
Name=SPIERSalign
Version=3.1.0
GenericName=Tomographic reconstruction software
Comment=Visualise slice-based data
Exec=/XXXXXXXXXXXXXX/SPIERSalign64
Icon=/XXXXXXXXXXXXXX/SPIERSalign64.png
Terminal=false
Type=Application
Categories=Science;Graphics;
Name[en_GB]=SPIERSalign
Binary file added examples/Desktop entries/SPIERSalign64.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions examples/Desktop entries/SPIERSedit.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=SPIERSedit
Version=3.1.0
GenericName=Tomographic reconstruction software
Comment=Visualise slice-based data
Exec=/XXXXXXXXXXXXXX/SPIERSedit64
Icon=/XXXXXXXXXXXXXX/SPIERSedit64.png
Terminal=false
Type=Application
Categories=Science;Graphics;
Name[en_GB]=SPIERSedit
Binary file added examples/Desktop entries/SPIERSedit64.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions examples/Desktop entries/SPIERSview.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env xdg-open

[Desktop Entry]
Name=SPIERSview
Version=3.1.0
GenericName=Tomographic reconstruction software
Comment=Visualise slice-based data
Exec=/XXXXXXXXXXXXXX/SPIERSview64
Icon=/XXXXXXXXXXXXXX/SPIERSview64.png
Terminal=false
Type=Application
Categories=Science;Graphics;
Name[en_GB]=SPIERSview
Binary file added examples/Desktop entries/SPIERSview64.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bfadfb7

Please sign in to comment.