Skip to content

Commit 37fc8b6

Browse files
committed
Merge branch 'develop' into release/1.5.0
2 parents ca08725 + 68934bb commit 37fc8b6

File tree

5 files changed

+35
-5
lines changed

5 files changed

+35
-5
lines changed

src/main/java/module-info.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import org.cryptomator.linux.autostart.FreedesktopAutoStartService;
77
import org.cryptomator.linux.keychain.KDEWalletKeychainAccess;
88
import org.cryptomator.linux.keychain.SecretServiceKeychainAccess;
9+
import org.cryptomator.linux.quickaccess.DolphinPlaces;
910
import org.cryptomator.linux.quickaccess.NautilusBookmarks;
1011
import org.cryptomator.linux.revealpath.DBusSendRevealPathService;
1112
import org.cryptomator.linux.tray.AppindicatorTrayMenuController;
@@ -22,7 +23,8 @@
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
}

src/main/java/org/cryptomator/linux/quickaccess/DolphinPlaces.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
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)
3536
public 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>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
org.cryptomator.linux.quickaccess.NautilusBookmarks
1+
org.cryptomator.linux.quickaccess.NautilusBookmarks
2+
org.cryptomator.linux.quickaccess.DolphinPlaces

src/test/java/org/cryptomator/linux/quickaccess/DolphinPlacesIT.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package org.cryptomator.linux.quickaccess;
22

3+
import org.cryptomator.integrations.common.IntegrationsLoader;
4+
import org.cryptomator.integrations.quickaccess.QuickAccessService;
35
import org.cryptomator.integrations.quickaccess.QuickAccessServiceException;
6+
import org.junit.jupiter.api.Assertions;
47
import org.junit.jupiter.api.Disabled;
58
import org.junit.jupiter.api.DisplayName;
69
import org.junit.jupiter.api.Test;
@@ -11,6 +14,16 @@
1114

1215
public 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

src/test/java/org/cryptomator/linux/quickaccess/NautilusBookmarksIT.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package org.cryptomator.linux.quickaccess;
22

3+
import org.cryptomator.integrations.common.IntegrationsLoader;
4+
import org.cryptomator.integrations.quickaccess.QuickAccessService;
35
import org.cryptomator.integrations.quickaccess.QuickAccessServiceException;
6+
import org.junit.jupiter.api.Assertions;
47
import org.junit.jupiter.api.Disabled;
58
import org.junit.jupiter.api.DisplayName;
69
import org.junit.jupiter.api.Test;
@@ -11,6 +14,16 @@
1114

1215
public 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

0 commit comments

Comments
 (0)