plist

24 views
Skip to first unread message

michaelian ennis

unread,
Apr 14, 2022, 1:41:08 AM4/14/22
to Upspin
I'm using commit 87d09808 on macOS Monterey successfully with launchd and macFuse 4.2.5 .   (Thanks Dave!)

I created a plist in /Users/mennis/Library/LaunchAgents/io.upspin.upspinfs.plist and copied the upspin binaries to /usr/local/bin.

Then from within /Users/mennis I ran:

```
launchctl load  Library/LaunchAgents/io.upspin.upspinfs.plist
```
and immediately saw my filesystem mounted in Finder. 

I didn't find a good way to make the plist without usernames being specified.  Launchd doesn't appear to have any means of substitution for variables such as $HOME.  This means that if it ran `upspinfs  u` it would try to mount off of root /u as $USER and fail .   

It looks like upspinfs could be modified to consume a value in the config if none were provided as an argument or signaled some other way to do so.  I think this is adjacent to a good idea but not quite it.

Ian

Here is the plist I am using.

```
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>io.upspin.upspinfs</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/local/bin/upspinfs</string>
        <string>/Users/mennis/u</string>
    </array>
    <key>StandardErrorPath</key>
     <string>/Users/mennis/stderr.log</string>
     <key>StandardOutPath</key>
     <string>/Users/mennis/stdout.log</string>
     <key>UserName</key>
     <string>mennis</string>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>
```
Reply all
Reply to author
Forward
0 new messages