File tree Expand file tree Collapse file tree 5 files changed +35
-5
lines changed
org/cryptomator/linux/quickaccess
resources/META-INF/services
test/java/org/cryptomator/linux/quickaccess Expand file tree Collapse file tree 5 files changed +35
-5
lines changed Original file line number Diff line number Diff line change 6
6
import org .cryptomator .linux .autostart .FreedesktopAutoStartService ;
7
7
import org .cryptomator .linux .keychain .KDEWalletKeychainAccess ;
8
8
import org .cryptomator .linux .keychain .SecretServiceKeychainAccess ;
9
+ import org .cryptomator .linux .quickaccess .DolphinPlaces ;
9
10
import org .cryptomator .linux .quickaccess .NautilusBookmarks ;
10
11
import org .cryptomator .linux .revealpath .DBusSendRevealPathService ;
11
12
import org .cryptomator .linux .tray .AppindicatorTrayMenuController ;
22
23
provides KeychainAccessProvider with SecretServiceKeychainAccess , KDEWalletKeychainAccess ;
23
24
provides RevealPathService with DBusSendRevealPathService ;
24
25
provides TrayMenuController with AppindicatorTrayMenuController ;
25
- provides QuickAccessService with NautilusBookmarks ;
26
+ provides QuickAccessService with NautilusBookmarks , DolphinPlaces ;
26
27
27
28
opens org .cryptomator .linux .tray to org .cryptomator .integrations .api ;
29
+ opens org .cryptomator .linux .quickaccess to org .cryptomator .integrations .api ;
28
30
}
Original file line number Diff line number Diff line change 30
30
* Implemenation of the {@link QuickAccessService} for KDE desktop environments using Dolphin file browser.
31
31
*/
32
32
@ DisplayName ("KDE Dolphin Places" )
33
+ @ CheckAvailability
33
34
@ OperatingSystem (OperatingSystem .Value .LINUX )
34
35
@ Priority (90 )
35
36
public class DolphinPlaces implements QuickAccessService {
@@ -39,13 +40,13 @@ public class DolphinPlaces implements QuickAccessService {
39
40
private static final Path TMP_FILE = Path .of (System .getProperty ("java.io.tmpdir" ), "user-places.xbel.cryptomator.tmp" );
40
41
private static final Lock MODIFY_LOCK = new ReentrantLock ();
41
42
private static final String ENTRY_TEMPLATE = """
42
- <bookmark href="%s">
43
+ <bookmark href=\ " %s\ " >
43
44
<title>%s</title>
44
45
<info>
45
- <metadata owner="http://freedesktop.org">
46
+ <metadata owner=\ " http://freedesktop.org\ " >
46
47
<bookmark:icon name="drive-harddisk-encrypted"/>
47
48
</metadata>
48
- <metadata owner="https://cryptomator.org">
49
+ <metadata owner=\ "https://cryptomator.org\ ">
49
50
<id>%s</id>
50
51
</metadata>
51
52
</info>
Original file line number Diff line number Diff line change 1
- org.cryptomator.linux.quickaccess.NautilusBookmarks
1
+ org.cryptomator.linux.quickaccess.NautilusBookmarks
2
+ org.cryptomator.linux.quickaccess.DolphinPlaces
Original file line number Diff line number Diff line change 1
1
package org .cryptomator .linux .quickaccess ;
2
2
3
+ import org .cryptomator .integrations .common .IntegrationsLoader ;
4
+ import org .cryptomator .integrations .quickaccess .QuickAccessService ;
3
5
import org .cryptomator .integrations .quickaccess .QuickAccessServiceException ;
6
+ import org .junit .jupiter .api .Assertions ;
4
7
import org .junit .jupiter .api .Disabled ;
5
8
import org .junit .jupiter .api .DisplayName ;
6
9
import org .junit .jupiter .api .Test ;
11
14
12
15
public class DolphinPlacesIT {
13
16
17
+ @ Test
18
+ @ DisplayName ("If dolphin is installed, isSupported returns true and service is contained in the service provider stream" )
19
+ @ Disabled
20
+ public void testSupport () {
21
+ Assertions .assertTrue (DolphinPlaces .isSupported ());
22
+
23
+ var optionalService = IntegrationsLoader .loadAll (QuickAccessService .class ).filter (s -> s .getClass ().getName ().equals ("org.cryptomator.linux.quickaccess.DolphinPlaces" )).findAny ();
24
+ Assertions .assertTrue (optionalService .isPresent ());
25
+ }
26
+
14
27
@ Test
15
28
@ DisplayName ("Adds for 20s an entry to the Dolphin sidebar" )
16
29
@ Disabled
Original file line number Diff line number Diff line change 1
1
package org .cryptomator .linux .quickaccess ;
2
2
3
+ import org .cryptomator .integrations .common .IntegrationsLoader ;
4
+ import org .cryptomator .integrations .quickaccess .QuickAccessService ;
3
5
import org .cryptomator .integrations .quickaccess .QuickAccessServiceException ;
6
+ import org .junit .jupiter .api .Assertions ;
4
7
import org .junit .jupiter .api .Disabled ;
5
8
import org .junit .jupiter .api .DisplayName ;
6
9
import org .junit .jupiter .api .Test ;
11
14
12
15
public class NautilusBookmarksIT {
13
16
17
+ @ Test
18
+ @ DisplayName ("If nautilus is installed, isSupported returns true and service is contained in the service provider stream" )
19
+ @ Disabled
20
+ public void testSupport () {
21
+ Assertions .assertTrue (NautilusBookmarks .isSupported ());
22
+
23
+ var optionalService = IntegrationsLoader .loadAll (QuickAccessService .class ).filter (s -> s .getClass ().getName ().equals ("org.cryptomator.linux.quickaccess.NautilusBookmarks" )).findAny ();
24
+ Assertions .assertTrue (optionalService .isPresent ());
25
+ }
26
+
14
27
@ Test
15
28
@ DisplayName ("Adds for 20s an entryto the Nautilus sidebar" )
16
29
@ Disabled
You can’t perform that action at this time.
0 commit comments