Commit 71bf666
committed
Replace auto-open with user instructions
Stop attempting to auto-mount/open the WebDAV volume and instead print manual instructions for the user. main.rs: remove the spawned async task that retried and opened the network connection, and call os::open_connection synchronously so errors are surfaced immediately. src/os/linux.rs: remove mounting/retry logic and xdg-open spawn, print gio/xdg-open commands for the user, and keep a best-effort silent unmount on close. src/os/macos.rs: print an instruction to open the volume via Finder, add Stdio redirection and use status for diskutil unmount to keep shutdown cleanup silent. Imports updated accordingly. This simplifies behavior, avoids background retries/spawns, and gives users explicit steps to open the volume.1 parent bcd5026 commit 71bf666
3 files changed
Lines changed: 14 additions & 72 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
80 | 73 | | |
81 | 74 | | |
82 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | 2 | | |
5 | 3 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
52 | 7 | | |
53 | 8 | | |
54 | 9 | | |
55 | 10 | | |
56 | 11 | | |
57 | | - | |
| 12 | + | |
58 | 13 | | |
59 | 14 | | |
60 | 15 | | |
61 | 16 | | |
62 | 17 | | |
63 | | - | |
64 | 18 | | |
65 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 4 | + | |
| 5 | + | |
12 | 6 | | |
13 | 7 | | |
14 | 8 | | |
15 | 9 | | |
16 | | - | |
17 | | - | |
| 10 | + | |
18 | 11 | | |
19 | 12 | | |
20 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
21 | 16 | | |
22 | 17 | | |
0 commit comments