parent
25b85f17a3
commit
a8645afbdb
@ -60,11 +60,9 @@ public class NotificationHelper {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* The only way to display notifications on linux is to use the java-gnome library,
|
||||
* or send notify-send to shell with a ProcessBuilder. Unfortunately the java-gnome
|
||||
* library is licenced under the GPL, see (https://en.wikipedia.org/wiki/Java-gnome)
|
||||
*/
|
||||
// The only way to display notifications on linux is to use the java-gnome library,
|
||||
// or send notify-send to shell with a ProcessBuilder. Unfortunately the java-gnome
|
||||
// library is licenced under the GPL, see (https://en.wikipedia.org/wiki/Java-gnome)
|
||||
public static void linux(String text) {
|
||||
ProcessBuilder processBuilder = new ProcessBuilder();
|
||||
processBuilder.command("notify-send", "-a", "Baritone", text);
|
||||
|
Loading…
Reference in New Issue
Block a user