You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@
2
2
3
3
Windows-specific implementations of [integrations-api](https://github.com/cryptomator/integrations-api).
4
4
5
+
## Config
6
+
7
+
This project uses the following JVM properties:
8
+
*`cryptomator.integrationsWin.autoStartShellLinkName` - Name of the shell link, which is placed in the Windows startup folder to start application on user login
9
+
5
10
## Building
6
11
7
12
This project uses JNI, hence you'll nedd Java as well as GCC build tools:
Copy file name to clipboardExpand all lines: src/main/java/org/cryptomator/windows/autostart/WindowsAutoStart.java
+32-15Lines changed: 32 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -11,46 +11,52 @@
11
11
importjava.nio.file.Files;
12
12
importjava.nio.file.NoSuchFileException;
13
13
importjava.nio.file.Path;
14
+
importjava.util.NoSuchElementException;
14
15
importjava.util.Optional;
15
16
16
17
/**
17
-
* Checks, en- and disables autostart for Cryptomator on Windows using the startup folder.
18
+
* Checks, en- and disables autostart for an application on Windows using the startup folder.
18
19
* <p>
19
-
* The above actions are done by checking/adding/removing in the directory {@value RELATIVE_STARTUP_FOLDER_ENTRY} a resource (.lnk file) for Cryptomator.
20
+
* The above actions are done by checking/adding/removing in the directory {@value RELATIVE_STARTUP_FOLDER} a shell link (.lnk).
21
+
* The filename of the shell link is given by the JVM property {@value LNK_NAME_PROPERTY}. If the property is not set before object creation, the start command of the calling process is used.
0 commit comments