File: build-set-project-name-to-railway-gtk.patch

package info (click to toggle)
railway-gtk 2.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,608 kB
  • sloc: sh: 153; xml: 111; makefile: 26
file content (61 lines) | stat: -rw-r--r-- 2,125 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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 +-
 data/de.schmidhuberj.DieBahn.service.in    | 2 +-
 meson.build                                | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index 515e449..84de30e 100644
--- 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"
diff --git a/data/de.schmidhuberj.DieBahn.desktop.in.in b/data/de.schmidhuberj.DieBahn.desktop.in.in
index 2e03b81..9af0b27 100644
--- a/data/de.schmidhuberj.DieBahn.desktop.in.in
+++ b/data/de.schmidhuberj.DieBahn.desktop.in.in
@@ -4,7 +4,7 @@ Icon=@app-id@
 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;
diff --git a/data/de.schmidhuberj.DieBahn.service.in b/data/de.schmidhuberj.DieBahn.service.in
index 9e48ad8..d9db89d 100644
--- 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
diff --git a/meson.build b/meson.build
index 9a9af97..761bd58 100644
--- a/meson.build
+++ b/meson.build
@@ -1,5 +1,5 @@
 project(
-  'diebahn',
+  'railway-gtk',
   'rust',
   version: '2.9.2',
   meson_version: '>= 0.59',