Repository navigation
Commit afc205a
committed
fix(profile): reject digit-leading names; pass --profile to autostart
Digit-leading profiles (e.g. '1work') pass the alphanumeric check but
produce invalid D-Bus well-known-name elements on Linux, preventing
single-instance registration and startup. Fix: require the first char
to be a letter (is_ascii_alphabetic).
Autostart did not preserve the selected profile: the OS login item was
registered without arguments, so every relaunch resolved to 'default'.
Fix: pass ['--profile', name] to tauri_plugin_autostart::init when the
active profile is not 'default'.
Addresses Greptile P1 findings on PR #241.1 parent b962356 commit afc205a
2 files changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
940 | | - | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
941 | 947 | | |
942 | 948 | | |
943 | 949 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
164 | 171 | | |
165 | 172 | | |
166 | 173 | | |
| |||
0 commit comments