}
.book, .chapter_content {
- text-indent: 40px;
+ NO_text-indent: 40px;
padding-top: 40px;
padding-left: 5%;
padding-right: 5%;
}
.normals {
- /* padding-bottom: 20px; */
-
}
.normal {
- /* padding-bottom: 20px; */
-
+ /* Can be removed if you want a more "compact" view */
+ display: block;
+}
+
+.blank {
+ /* Can be removed if you want a more "compact" view */
+ height: 24px;
+ width: 100%;
}
.dialogues {
- /* padding-top: 10px;
- padding-bottom: 10px; */
-
}
.dialogue {
}
.book, .chapter_content {
- text-indent: 40px;
+ NO_text-indent: 40px;
padding-top: 40px;
padding-left: 5%;
padding-right: 5%;
}
.normals {
- /* padding-bottom: 20px; */
-
}
.normal {
- /* padding-bottom: 20px; */
-
+ /* Can be removed if you want a more "compact" view */
+ display: block;
+}
+
+.blank {
+ /* Can be removed if you want a more "compact" view */
+ height: 24px;
+ width: 100%;
}
.dialogues {
- /* padding-top: 10px;
- padding-bottom: 10px; */
-
}
.dialogue {
try {
File target = LocalReaderFrame.this.reader
.getTarget(luid, pg);
- Desktop.getDesktop().browse(target.toURI());
+ // TODO: allow custom programs, with
+ // Desktop/xdg-open fallback
+ try {
+ Desktop.getDesktop().browse(target.toURI());
+ } catch (UnsupportedOperationException e) {
+ String browsers[] = new String[] {
+ "xdg-open", "epiphany",
+ "konqueror", "firefox", "chrome",
+ "google-chrome", "mozilla" };
+
+ Runtime runtime = Runtime.getRuntime();
+ for (String browser : browsers) {
+ try {
+ runtime.exec(new String[] {
+ browser,
+ target.getAbsolutePath() });
+ runtime = null;
+ break;
+ } catch (IOException ioe) {
+ // continue, try next browser
+ }
+ }
+
+ if (runtime != null) {
+ throw new IOException(
+ "Cannot find a working GUI browser...");
+ }
+ }
} catch (IOException e) {
Instance.syserr(e);
}