From 0f9239bf36807b93e01b219546e54633a1371c45 Mon Sep 17 00:00:00 2001 From: Timon Date: Fri, 8 May 2026 15:28:19 +0000 Subject: [PATCH] linux --- .nix/pkgs/graphite.nix | 5 ++++- desktop/assets/art.graphite.Graphite.desktop | 3 ++- desktop/assets/art.graphite.Graphite.xml | 9 +++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 desktop/assets/art.graphite.Graphite.xml diff --git a/.nix/pkgs/graphite.nix b/.nix/pkgs/graphite.nix index 51d25e508e..10a78b0ed4 100644 --- a/.nix/pkgs/graphite.nix +++ b/.nix/pkgs/graphite.nix @@ -134,7 +134,10 @@ deps.crane.lib.buildPackage ( cp target/${if dev then "debug" else "release"}/graphite $out/bin/graphite mkdir -p $out/share/applications - cp $src/desktop/assets/*.desktop $out/share/applications/ + cp $src/desktop/assets/art.graphite.Graphite.desktop $out/share/applications/ + + mkdir -p $out/share/mime/packages + cp $src/desktop/assets/art.graphite.Graphite.xml $out/share/mime/packages/ mkdir -p $out/share/icons/hicolor/scalable/apps cp ${branding}/app-icons/graphite.svg $out/share/icons/hicolor/scalable/apps/art.graphite.Graphite.svg diff --git a/desktop/assets/art.graphite.Graphite.desktop b/desktop/assets/art.graphite.Graphite.desktop index 2e17c64fec..48d53531ce 100644 --- a/desktop/assets/art.graphite.Graphite.desktop +++ b/desktop/assets/art.graphite.Graphite.desktop @@ -2,10 +2,11 @@ Name=Graphite GenericName=Vector & Raster Graphics Editor Comment=Open-source vector & raster graphics editor. Featuring node based procedural nondestructive editing workflow. -Exec=graphite +Exec=graphite %F Terminal=false Type=Application Icon=art.graphite.Graphite Categories=Graphics;VectorGraphics;RasterGraphics; Keywords=graphite;editor;vector;raster;procedural;design; StartupWMClass=art.graphite.Graphite +MimeType=application/graphite+json;image/svg+xml;image/png;image/jpeg;image/gif;image/bmp;image/tiff;image/webp;image/x-portable-pixmap;image/x-portable-graymap;image/x-portable-bitmap;image/vnd.microsoft.icon; diff --git a/desktop/assets/art.graphite.Graphite.xml b/desktop/assets/art.graphite.Graphite.xml new file mode 100644 index 0000000000..7c087ee356 --- /dev/null +++ b/desktop/assets/art.graphite.Graphite.xml @@ -0,0 +1,9 @@ + + + + Graphite Document + + + + +