emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 52a27a67c1: Fix file-based launching on Haiku


From: Po Lu
Subject: master 52a27a67c1: Fix file-based launching on Haiku
Date: Mon, 9 May 2022 04:22:30 -0400 (EDT)

branch: master
commit 52a27a67c1f501898bdb13841ce07609bbe4772e
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix file-based launching on Haiku
    
    * src/haikuselect.c (Fhaiku_roster_launch): Canonicalize file
    names before using them.
---
 src/haikuselect.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/haikuselect.c b/src/haikuselect.c
index 6d62f395c1..8ce7182298 100644
--- a/src/haikuselect.c
+++ b/src/haikuselect.c
@@ -821,7 +821,7 @@ after it starts.  */)
   team_id team_id;
   status_t rc;
   ptrdiff_t i, nargs;
-  Lisp_Object tem;
+  Lisp_Object tem, canonical;
   void *message;
   specpdl_ref depth;
 
@@ -840,9 +840,10 @@ after it starts.  */)
     {
       CHECK_LIST (file_or_type);
       tem = XCAR (file_or_type);
+      canonical = Fexpand_file_name (tem, Qnil);
 
       CHECK_STRING (tem);
-      SAFE_ALLOCA_STRING (file, ENCODE_FILE (tem));
+      SAFE_ALLOCA_STRING (file, ENCODE_FILE (canonical));
       CHECK_LIST_END (XCDR (file_or_type), file_or_type);
     }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]