mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-17 10:11:27 +00:00
fixed test on headless ci system
This commit is contained in:
@@ -34,7 +34,7 @@ class FileOpenRequestHandler {
|
||||
@Inject
|
||||
public FileOpenRequestHandler(@Named("launchEventQueue") BlockingQueue<AppLaunchEvent> launchEventQueue) {
|
||||
this.launchEventQueue = launchEventQueue;
|
||||
if (Desktop.getDesktop().isSupported(Desktop.Action.APP_OPEN_FILE)) {
|
||||
if (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.APP_OPEN_FILE)) {
|
||||
Desktop.getDesktop().setOpenFileHandler(this::openFiles);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user