public static void createDesktopEntry(boolean globalEntry) throws Exception {
    if (!isAvailable()) return;

    check();
    var entry = prepare();
    try {
      install(entry, globalEntry);
    }
    finally {
      Files.delete(entry);
    }
  }
public static void createDesktopEntry(boolean globalEntry)