mfw
This commit is contained in:
parent
cf691118b9
commit
25b85f17a3
@ -60,9 +60,11 @@ 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