From dbce674d7012fe09b3ab9ac0aeeb1c748bb7afce Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Thu, 4 Apr 2019 21:41:57 +0300 Subject: [PATCH] Add icon to Linux .desktop file --- CHANGELOG.md | 5 +++++ Cargo.toml | 1 + INSTALL.md | 1 + extra/linux/alacritty.desktop | 2 +- extra/linux/snap/snapcraft.yaml | 1 + extra/logo/{alacritty.svg => alacritty-simple.svg} | 0 6 files changed, 9 insertions(+), 1 deletion(-) rename extra/logo/{alacritty.svg => alacritty-simple.svg} (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d31522e..a21d4a6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Packaging + +- On Linux, the .desktop file now uses `Alacritty` as icon name, which can be + found at `extra/logo/alacritty-term.svg` + ### Added - MSI installer for Windows is now available diff --git a/Cargo.toml b/Cargo.toml index dccbf2ac..270d0d43 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -106,6 +106,7 @@ priority = "optional" assets = [ ["target/release/alacritty", "usr/bin/", "755"], ["extra/linux/alacritty.desktop", "usr/share/applications/", "644"], + ["extra/logo/alacritty-term.svg", "usr/share/pixmaps/Alacritty.svg", "644"], ["extra/completions/alacritty.bash", "usr/share/bash-completion/completions/alacritty", "644"], ["extra/completions/alacritty.fish", "usr/share/fish/completions/alacritty.fish", "644"], ["extra/completions/_alacritty", "usr/share/zsh/vendor-completions/_alacritty", "644"], diff --git a/INSTALL.md b/INSTALL.md index edfb980b..f4295731 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -194,6 +194,7 @@ system menus. To install the desktop entry for Alacritty, run ```sh sudo cp target/release/alacritty /usr/local/bin # or anywhere else in $PATH +sudo cp extra/logo/alacritty-term.svg /usr/share/pixmaps/Alacritty.svg sudo desktop-file-install extra/linux/alacritty.desktop sudo update-desktop-database ``` diff --git a/extra/linux/alacritty.desktop b/extra/linux/alacritty.desktop index 8f9be053..5cfd3913 100644 --- a/extra/linux/alacritty.desktop +++ b/extra/linux/alacritty.desktop @@ -2,7 +2,7 @@ Type=Application TryExec=alacritty Exec=alacritty -Icon=utilities-terminal +Icon=Alacritty Terminal=false Categories=System;TerminalEmulator; diff --git a/extra/linux/snap/snapcraft.yaml b/extra/linux/snap/snapcraft.yaml index 47f6f678..07f4929b 100644 --- a/extra/linux/snap/snapcraft.yaml +++ b/extra/linux/snap/snapcraft.yaml @@ -12,6 +12,7 @@ description: | The software is considered to be at a **beta** level of readiness -- there are a few missing features and bugs to be fixed, but it is already used by many as a daily driver. +icon: extra/logo/alacritty-term.svg grade: stable confinement: classic parts: diff --git a/extra/logo/alacritty.svg b/extra/logo/alacritty-simple.svg similarity index 100% rename from extra/logo/alacritty.svg rename to extra/logo/alacritty-simple.svg