client

Clone or download

added message to show when trying to open website in framebuffer mode

Modified Files

--- 'a/src/main/java/com/stream_pi/client/controller/Controller.java'
+++ b/src/main/java/com/stream_pi/client/controller/Controller.java
@@ -531,16 +531,28 @@ public class Controller extends Base
catch (Exception e )
{
handleMinorException(
- new MinorException("Cant start browser!")
+ new MinorException("Cant start browser! You can go to Server Settings > About > Contact " +
+ "and open the links from there.")
);
}
},()-> handleMinorException(
- new MinorException("Sorry!","No browser detected.")
+ new MinorException("Sorry!","No browser detected. You can go to Server Settings > About > Contact " +
+ "and open the links from there.")
));
}
else
{
- getHostServices().showDocument(url);
+ if(getClientInfo().getPlatform() == com.stream_pi.util.platform.Platform.LINUX &&
+ !StartupFlags.IS_X_MODE)
+ {
+ handleMinorException(new MinorException("Sorry!","Your system is running directly on framebuffer and " +
+ "does not support opening a browser. You can go to Server Settings > About > Contact " +
+ "and open the links from there."));
+ }
+ else
+ {
+ getHostServices().showDocument(url);
+ }
}
}
}
--- 'a/src/main/java/com/stream_pi/client/window/settings/About/ContactTab.java'
+++ b/src/main/java/com/stream_pi/client/window/settings/About/ContactTab.java
@@ -1,6 +1,7 @@
package com.stream_pi.client.window.settings.About;
import com.stream_pi.client.controller.ClientListener;
+import com.stream_pi.client.info.ClientInfo;
import com.stream_pi.util.contactlinks.ContactLinks;
import javafx.application.HostServices;
import javafx.scene.control.Hyperlink;