2024-05-06 09:16:13 +00:00
|
|
|
From 52b9a0f91094888b9dd55d3d5a50cb44887ff3d3 Mon Sep 17 00:00:00 2001
|
2021-12-11 15:08:04 +00:00
|
|
|
From: Andrew Tropin <andrew@trop.in>
|
2024-05-06 09:16:13 +00:00
|
|
|
Date: Mon, 6 May 2024 10:41:53 +0200
|
2023-01-17 09:09:01 +00:00
|
|
|
Subject: [PATCH] Add path placeholder for telega-server-command and etc-file.
|
2021-06-25 05:25:05 +00:00
|
|
|
|
|
|
|
---
|
2024-05-06 09:16:13 +00:00
|
|
|
telega-core.el | 3 +--
|
2021-12-11 15:08:04 +00:00
|
|
|
telega-customize.el | 2 +-
|
2024-05-06 09:16:13 +00:00
|
|
|
2 files changed, 2 insertions(+), 3 deletions(-)
|
2021-06-25 05:25:05 +00:00
|
|
|
|
2023-01-17 09:09:01 +00:00
|
|
|
diff --git a/telega-core.el b/telega-core.el
|
2024-05-06 09:16:13 +00:00
|
|
|
index f798b40..2db0d64 100644
|
2023-01-17 09:09:01 +00:00
|
|
|
--- a/telega-core.el
|
|
|
|
+++ b/telega-core.el
|
2024-05-06 09:16:13 +00:00
|
|
|
@@ -45,8 +45,7 @@
|
2023-01-17 09:09:01 +00:00
|
|
|
(defun telega-etc-file (filename)
|
2024-05-06 09:16:13 +00:00
|
|
|
"Return absolute path to FILENAME from etc/ directory in telega.
|
|
|
|
Use FILENAME as is if resulting file does not exist."
|
|
|
|
- (let ((abspath (expand-file-name (concat "etc/" filename)
|
|
|
|
- telega--lib-directory)))
|
|
|
|
+ (let ((abspath (concat "@TELEGA_SHARE@" "/" filename)))
|
|
|
|
(if (file-exists-p abspath)
|
|
|
|
abspath
|
|
|
|
filename)))
|
2021-12-11 15:08:04 +00:00
|
|
|
diff --git a/telega-customize.el b/telega-customize.el
|
2024-05-06 09:16:13 +00:00
|
|
|
index 8393f0f..cb21465 100644
|
2021-12-11 15:08:04 +00:00
|
|
|
--- a/telega-customize.el
|
|
|
|
+++ b/telega-customize.el
|
2024-05-06 09:16:13 +00:00
|
|
|
@@ -678,7 +678,7 @@ In range [1..3]. Use 1."
|
2021-12-11 15:08:04 +00:00
|
|
|
:prefix "telega-server-"
|
|
|
|
:group 'telega)
|
2021-06-25 05:25:05 +00:00
|
|
|
|
2021-12-11 15:08:04 +00:00
|
|
|
-(defcustom telega-server-command "telega-server"
|
|
|
|
+(defcustom telega-server-command "@TELEGA_SERVER_BIN@"
|
|
|
|
"Command to run as telega server.
|
|
|
|
It should be absolute path or binary file searchable in `exec-path'."
|
|
|
|
:type 'string
|
2021-06-25 05:25:05 +00:00
|
|
|
--
|
2024-05-06 09:16:13 +00:00
|
|
|
2.41.0
|