From: Arnaud Ferraris <arnaud.ferraris@collabora.com>
Date: Thu, 16 Nov 2023 17:48:24 +0100
Subject: Rename executable to `railway-gtk`

This is done by modifying Cargo.toml and meson.build so both the
executable and appdata folder names match the package name, and also
requires changing the .desktop file accordingly.

Forwarded: not-needed, Debian-only change
Last-Update: 2025-09-14

---
 Cargo.toml                                 | 2 +-
 data/de.schmidhuberj.DieBahn.desktop.in.in | 2 +-
 meson.build                                | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,5 +1,5 @@
 [package]
-name = "diebahn"
+name = "railway-gtk"
 description = "Find all your travel information" # keep in sync with metainfo
 authors = ["Julian Schmidhuber <mobile@schmidhuberj.de>", "Markus Göllnitz <camelcasenick@bewares.it>"]
 homepage = "https://mobile.schmidhuberj.de/railway"
--- a/data/de.schmidhuberj.DieBahn.desktop.in.in
+++ b/data/de.schmidhuberj.DieBahn.desktop.in.in
@@ -4,7 +4,7 @@
 Name=Railway
 Comment=Find all your travel information
 StartupWMClass=Railway
-Exec=@bindir@/diebahn
+Exec=@bindir@/railway-gtk
 DBusActivatable=true
 X-Purism-FormFactor=Workstation;Mobile;
 Categories=GTK;GNOME;Utility;Maps;
--- a/meson.build
+++ b/meson.build
@@ -1,5 +1,5 @@
 project(
-  'diebahn',
+  'railway-gtk',
   'rust',
   version: '2.8.2',
   meson_version: '>= 0.59',
--- a/data/de.schmidhuberj.DieBahn.service.in
+++ b/data/de.schmidhuberj.DieBahn.service.in
@@ -1,3 +1,3 @@
 [D-BUS Service]
 Name=@app-id@
-Exec=@bindir@/diebahn --gapplication-service
+Exec=@bindir@/railway-gtk --gapplication-service
