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 66import org .cryptomator .linux .autostart .FreedesktopAutoStartService ;
77import org .cryptomator .linux .keychain .KDEWalletKeychainAccess ;
88import org .cryptomator .linux .keychain .SecretServiceKeychainAccess ;
9+ import org .cryptomator .linux .quickaccess .DolphinPlaces ;
910import org .cryptomator .linux .quickaccess .NautilusBookmarks ;
1011import org .cryptomator .linux .revealpath .DBusSendRevealPathService ;
1112import org .cryptomator .linux .tray .AppindicatorTrayMenuController ;
2223 provides KeychainAccessProvider with SecretServiceKeychainAccess , KDEWalletKeychainAccess ;
2324 provides RevealPathService with DBusSendRevealPathService ;
2425 provides TrayMenuController with AppindicatorTrayMenuController ;
25- provides QuickAccessService with NautilusBookmarks ;
26+ provides QuickAccessService with NautilusBookmarks , DolphinPlaces ;
2627
2728 opens org .cryptomator .linux .tray to org .cryptomator .integrations .api ;
29+ opens org .cryptomator .linux .quickaccess to org .cryptomator .integrations .api ;
2830}
Original file line number Diff line number Diff line change 3030 * Implemenation of the {@link QuickAccessService} for KDE desktop environments using Dolphin file browser.
3131 */
3232@ DisplayName ("KDE Dolphin Places" )
33+ @ CheckAvailability
3334@ OperatingSystem (OperatingSystem .Value .LINUX )
3435@ Priority (90 )
3536public class DolphinPlaces implements QuickAccessService {
@@ -39,13 +40,13 @@ public class DolphinPlaces implements QuickAccessService {
3940 private static final Path TMP_FILE = Path .of (System .getProperty ("java.io.tmpdir" ), "user-places.xbel.cryptomator.tmp" );
4041 private static final Lock MODIFY_LOCK = new ReentrantLock ();
4142 private static final String ENTRY_TEMPLATE = """
42- <bookmark href="%s">
43+ <bookmark href=\ " %s\ " >
4344 <title>%s</title>
4445 <info>
45- <metadata owner="http://freedesktop.org">
46+ <metadata owner=\ " http://freedesktop.org\ " >
4647 <bookmark:icon name="drive-harddisk-encrypted"/>
4748 </metadata>
48- <metadata owner="https://cryptomator.org">
49+ <metadata owner=\ "https://cryptomator.org\ ">
4950 <id>%s</id>
5051 </metadata>
5152 </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 11package org .cryptomator .linux .quickaccess ;
22
3+ import org .cryptomator .integrations .common .IntegrationsLoader ;
4+ import org .cryptomator .integrations .quickaccess .QuickAccessService ;
35import org .cryptomator .integrations .quickaccess .QuickAccessServiceException ;
6+ import org .junit .jupiter .api .Assertions ;
47import org .junit .jupiter .api .Disabled ;
58import org .junit .jupiter .api .DisplayName ;
69import org .junit .jupiter .api .Test ;
1114
1215public class DolphinPlacesIT {
1316
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+
1427 @ Test
1528 @ DisplayName ("Adds for 20s an entry to the Dolphin sidebar" )
1629 @ Disabled
Original file line number Diff line number Diff line change 11package org .cryptomator .linux .quickaccess ;
22
3+ import org .cryptomator .integrations .common .IntegrationsLoader ;
4+ import org .cryptomator .integrations .quickaccess .QuickAccessService ;
35import org .cryptomator .integrations .quickaccess .QuickAccessServiceException ;
6+ import org .junit .jupiter .api .Assertions ;
47import org .junit .jupiter .api .Disabled ;
58import org .junit .jupiter .api .DisplayName ;
69import org .junit .jupiter .api .Test ;
1114
1215public class NautilusBookmarksIT {
1316
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+
1427 @ Test
1528 @ DisplayName ("Adds for 20s an entryto the Nautilus sidebar" )
1629 @ Disabled
You can’t perform that action at this time.
0 commit comments