1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Capitalized the .desktop Filename (#3425)

Follow free desktop file naming conventions.
This commit is contained in:
Nathan Lilienthal 2020-03-13 15:17:19 -04:00 committed by GitHub
parent 4000ec04d8
commit d20051b5e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 8 deletions

View file

@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Minimum Rust version has been bumped to 1.37.0 - Minimum Rust version has been bumped to 1.37.0
- Added Rust features `x11` and `wayland` to pick backends, with both enabled by default - Added Rust features `x11` and `wayland` to pick backends, with both enabled by default
- Capitalized the default Alacritty.desktop file
- Capitalized the Alacritty.desktop file
### Changed ### Changed

View file

@ -233,7 +233,7 @@ system menus. To install the desktop entry for Alacritty, run
```sh ```sh
sudo cp target/release/alacritty /usr/local/bin # or anywhere else in $PATH 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 cp extra/logo/alacritty-term.svg /usr/share/pixmaps/Alacritty.svg
sudo desktop-file-install extra/linux/alacritty.desktop sudo desktop-file-install extra/linux/Alacritty.desktop
sudo update-desktop-database sudo update-desktop-database
``` ```

View file

@ -68,7 +68,7 @@ section = "rust"
priority = "optional" priority = "optional"
assets = [ assets = [
["../target/release/alacritty", "usr/bin/", "755"], ["../target/release/alacritty", "usr/bin/", "755"],
["../extra/linux/alacritty.desktop", "usr/share/applications/", "644"], ["../extra/linux/Alacritty.desktop", "usr/share/applications/", "644"],
["../extra/logo/alacritty-term.svg", "usr/share/pixmaps/Alacritty.svg", "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.bash", "usr/share/bash-completion/completions/alacritty", "644"],
["../extra/completions/alacritty.fish", "usr/share/fish/completions/alacritty.fish", "644"], ["../extra/completions/alacritty.fish", "usr/share/fish/completions/alacritty.fish", "644"],

View file

@ -4,7 +4,7 @@
aux_files=("extra/completions/alacritty.bash" aux_files=("extra/completions/alacritty.bash"
"extra/completions/alacritty.fish" "extra/completions/alacritty.fish"
"extra/completions/_alacritty" "extra/completions/_alacritty"
"extra/linux/alacritty.desktop" "extra/linux/Alacritty.desktop"
"extra/alacritty.info" "extra/alacritty.info"
"alacritty.yml") "alacritty.yml")

View file

@ -31,7 +31,7 @@ cargo build --release
%install %install
install -p -D -m755 target/release/alacritty %{buildroot}%{_bindir}/alacritty install -p -D -m755 target/release/alacritty %{buildroot}%{_bindir}/alacritty
install -p -D -m644 extra/linux/alacritty.desktop %{buildroot}%{_datadir}/applications/alacritty.desktop install -p -D -m644 extra/linux/Alacritty.desktop %{buildroot}%{_datadir}/applications/Alacritty.desktop
install -p -D -m644 extra/logo/alacritty-term.svg %{buildroot}%{_datadir}/pixmaps/Alacritty.svg install -p -D -m644 extra/logo/alacritty-term.svg %{buildroot}%{_datadir}/pixmaps/Alacritty.svg
install -p -D -m644 alacritty.yml %{buildroot}%{_datadir}/alacritty/alacritty.yml install -p -D -m644 alacritty.yml %{buildroot}%{_datadir}/alacritty/alacritty.yml
tic -xe alacritty,alacritty-direct \ tic -xe alacritty,alacritty-direct \
@ -42,11 +42,11 @@ install -p -D -m644 extra/completions/alacritty.fish %{buildroot}%{_datadir}/fis
install -p -D -m644 extra/alacritty.man %{buildroot}%{_mandir}/man1/alacritty.1 install -p -D -m644 extra/alacritty.man %{buildroot}%{_mandir}/man1/alacritty.1
%check %check
desktop-file-validate %{buildroot}%{_datadir}/applications/alacritty.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/Alacritty.desktop
%files %files
%{_bindir}/alacritty %{_bindir}/alacritty
%{_datadir}/applications/alacritty.desktop %{_datadir}/applications/Alacritty.desktop
%{_datadir}/pixmaps/Alacritty.svg %{_datadir}/pixmaps/Alacritty.svg
%{_datadir}/alacritty/alacritty.yml %{_datadir}/alacritty/alacritty.yml
%{_datadir}/terminfo/a/alacritty* %{_datadir}/terminfo/a/alacritty*

View file

@ -24,8 +24,8 @@ parts:
plugin: dump plugin: dump
source: . source: .
stage: stage:
- extra/linux/alacritty.desktop - extra/linux/Alacritty.desktop
apps: apps:
alacritty: alacritty:
command: env XDG_RUNTIME_DIR= XDG_CONFIG_HOME=$SNAP_USER_DATA XDG_DATA_DIRS=$SNAP_DATA PATH=$SNAP/bin:$PATH SNAP= alacritty command: env XDG_RUNTIME_DIR= XDG_CONFIG_HOME=$SNAP_USER_DATA XDG_DATA_DIRS=$SNAP_DATA PATH=$SNAP/bin:$PATH SNAP= alacritty
desktop: alacritty.desktop desktop: Alacritty.desktop