FreeBSD Bugzilla – Attachment 202706 Details for
Bug 236382
x11/alacritty: Fix SpawnNewInstance on FreeBSD
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
alacritty.diff
alacritty.diff (text/plain), 1.62 KB, created by
Tobias Kortkamp
on 2019-03-08 03:11:25 UTC
(
hide
)
Description:
alacritty.diff
Filename:
MIME Type:
Creator:
Tobias Kortkamp
Created:
2019-03-08 03:11:25 UTC
Size:
1.62 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 494922) >+++ Makefile (working copy) >@@ -3,7 +3,7 @@ > PORTNAME= alacritty > PORTVERSION= 0.2.9 > DISTVERSIONPREFIX= v >-PORTREVISION= 2 >+PORTREVISION= 3 > CATEGORIES= x11 > > MAINTAINER= zeising@FreeBSD.org >Index: files/patch-src_event.rs >=================================================================== >--- files/patch-src_event.rs (nonexistent) >+++ files/patch-src_event.rs (working copy) >@@ -0,0 +1,19 @@ >+Let Alacritty open new instances in the shell's current working directory >+ >+https://github.com/jwilm/alacritty/pull/2162 >+ >+--- src/event.rs.orig 2019-02-11 23:59:21 UTC >++++ src/event.rs >+@@ -172,7 +172,11 @@ impl<'a, N: Notify + 'a> input::ActionContext for Acti >+ >+ #[cfg(unix)] >+ let args = { >+- if let Ok(path) = fs::read_link(format!("/proc/{}/cwd", unsafe { tty::PID })) { >++ #[cfg(not(target_os = "freebsd"))] >++ let proc_prefix = ""; >++ #[cfg(target_os = "freebsd")] >++ let proc_prefix = "/compat/linux"; >++ if let Ok(path) = fs::read_link(format!("{}/proc/{}/cwd", proc_prefix, unsafe { tty::PID })) { >+ vec!["--working-directory".into(), path] >+ } else { >+ Vec::new() > >Property changes on: files/patch-src_event.rs >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
tobik
:
maintainer-approval?
(
zeising
)
Actions:
View
|
Diff
Attachments on
bug 236382
: 202706