View | Details | Raw Unified | Return to bug 236382
Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
PORTNAME=	alacritty
3
PORTNAME=	alacritty
4
PORTVERSION=	0.2.9
4
PORTVERSION=	0.2.9
5
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	x11
7
CATEGORIES=	x11
8
8
9
MAINTAINER=	zeising@FreeBSD.org
9
MAINTAINER=	zeising@FreeBSD.org
(-)files/patch-src_event.rs (+19 lines)
Line 0 Link Here
1
Let Alacritty open new instances in the shell's current working directory
2
3
https://github.com/jwilm/alacritty/pull/2162
4
5
--- src/event.rs.orig	2019-02-11 23:59:21 UTC
6
+++ src/event.rs
7
@@ -172,7 +172,11 @@ impl<'a, N: Notify + 'a> input::ActionContext for Acti
8
 
9
         #[cfg(unix)]
10
         let args = {
11
-            if let Ok(path) = fs::read_link(format!("/proc/{}/cwd", unsafe { tty::PID })) {
12
+            #[cfg(not(target_os = "freebsd"))]
13
+            let proc_prefix = "";
14
+            #[cfg(target_os = "freebsd")]
15
+            let proc_prefix = "/compat/linux";
16
+            if let Ok(path) = fs::read_link(format!("{}/proc/{}/cwd", proc_prefix, unsafe { tty::PID })) {
17
                 vec!["--working-directory".into(), path]
18
             } else {
19
                 Vec::new()

Return to bug 236382