mirror of
https://github.com/osnr/TabFS.git
synced 2024-05-19 14:06:34 +02:00
safari: make tabfs URL path independent
This commit is contained in:
parent
341ae6d477
commit
b6b61ee093
|
@ -14,8 +14,11 @@ class TabFSService: NSObject, TabFSServiceProtocol {
|
||||||
var fsInput: FileHandle!
|
var fsInput: FileHandle!
|
||||||
var fsOutput: FileHandle!
|
var fsOutput: FileHandle!
|
||||||
func startFs() {
|
func startFs() {
|
||||||
|
let fileURL = URL(fileURLWithPath: #filePath)
|
||||||
|
let repoURL = fileURL.deletingLastPathComponent().deletingLastPathComponent().deletingLastPathComponent().deletingLastPathComponent().deletingLastPathComponent()
|
||||||
|
|
||||||
fs = Process()
|
fs = Process()
|
||||||
fs.executableURL = URL(fileURLWithPath: "/Users/osnr/Code/tabfs/fs/tabfs")
|
fs.executableURL = repoURL.appendingPathComponent("fs").appendingPathComponent("tabfs")
|
||||||
fs.currentDirectoryURL = fs.executableURL?.deletingLastPathComponent()
|
fs.currentDirectoryURL = fs.executableURL?.deletingLastPathComponent()
|
||||||
|
|
||||||
fs.arguments = []
|
fs.arguments = []
|
||||||
|
|
Loading…
Reference in a new issue