mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
build: install the proper linux desktop file depending on flatpak or not
This commit is contained in:
@ -154,7 +154,11 @@ pub fn build(b: *std.build.Builder) !void {
|
||||
// https://developer.gnome.org/documentation/guidelines/maintainer/integrating.html
|
||||
|
||||
// Desktop file so that we have an icon and other metadata
|
||||
if (flatpak) {
|
||||
b.installFile("dist/linux/app-flatpak.desktop", "share/applications/com.mitchellh.ghostty.desktop");
|
||||
} else {
|
||||
b.installFile("dist/linux/app.desktop", "share/applications/com.mitchellh.ghostty.desktop");
|
||||
}
|
||||
|
||||
// Various icons that our application can use, including the icon
|
||||
// that will be used for the desktop.
|
||||
|
9
dist/linux/app-flatpak.desktop
vendored
Normal file
9
dist/linux/app-flatpak.desktop
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Name=Ghostty
|
||||
Type=Application
|
||||
Comment=A terminal emulator
|
||||
Exec=/app/bin/ghostty
|
||||
Icon=com.mitchellh.ghostty
|
||||
Keywords=terminal;tty;pty;
|
||||
StartupNotify=true
|
||||
Terminal=false
|
2
dist/linux/app.desktop
vendored
2
dist/linux/app.desktop
vendored
@ -2,7 +2,7 @@
|
||||
Name=Ghostty
|
||||
Type=Application
|
||||
Comment=A terminal emulator
|
||||
Exec=/app/bin/ghostty
|
||||
Exec=/usr/bin/ghostty
|
||||
Icon=com.mitchellh.ghostty
|
||||
Keywords=terminal;tty;pty;
|
||||
StartupNotify=true
|
||||
|
Reference in New Issue
Block a user