This commit is contained in:
aUniqueUser 2020-02-22 20:41:06 -05:00
parent cf691118b9
commit 25b85f17a3
No known key found for this signature in database
GPG Key ID: 84D7C232A1AFDD16

View File

@ -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);