Permalink
Browse files

install icon in system icon directory

  • Loading branch information...
1 parent c358b5a commit ed209f15411d7796c7ba466aabee85f91b23db66 @hurzl hurzl committed Feb 5, 2013
Showing with 6 additions and 3 deletions.
  1. +1 −1 repsnapper.desktop.in
  2. +4 −1 src/Makefile.am
  3. +1 −1 src/repsnapper.cpp
  4. 0 src/{repsnapper-icon.svg → repsnapper.svg}
View
@@ -4,7 +4,7 @@ _Name=repsnapper
_GenericName=RepRap control software
_Comment=Controls your 3D plastic printer
Exec=repsnapper %F_OR_U
-# Icon=repsnapper
+Icon=repsnapper
Terminal=false
Type=Application
Categories=GTK;Utility;Engineering;
View
@@ -91,4 +91,7 @@ repsnapperdatadir = $(datadir)/@PACKAGE@
dist_repsnapperdata_DATA = src/repsnapper.ui
repsnapperconfdir = $(sysconfdir)/xdg/@PACKAGE@
-dist_repsnapperconf_DATA = src/repsnapper.conf src/repsnapper-icon.svg
+dist_repsnapperconf_DATA = src/repsnapper.conf
+
+repsnappericondir = $(datadir)/icons/hicolor/scalable/apps/
+dist_repsnappericon_DATA = src/repsnapper.svg
View
@@ -309,7 +309,7 @@ int main(int argc, char **argv)
mainwin->setNonPrintingMode(nonprintingmode, opts.gcode_output_path);
- Glib::RefPtr<Gio::File> iconfile = find_global_config("repsnapper-icon.svg");
+ Glib::RefPtr<Gio::File> iconfile = find_global_config("repsnapper.svg");
mainwin->set_icon_file(iconfile);
mainwin->set_title("Repsnapper");
File renamed without changes.

0 comments on commit ed209f1

Please sign in to comment.