Skip to content

Commit

Permalink
Make sure udev rules are world readable
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Aug 23, 2021
1 parent b9fe674 commit b2c9cff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qz/installer/LinuxInstaller.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ public Installer addSystemSettings() {
udev.delete();
}
FileUtilities.configureAssetFile("assets/linux-udev.rules.in", new File(UDEV_RULES), new HashMap<>(), LinuxInstaller.class);
// udev rules should be -rw-r--r--
udev.setReadable(true, false);
ShellUtilities.execute("udevadm", "control", "--reload-rules");
} catch(IOException e) {
log.warn("Could not install udev rules, usb support may fail {}", UDEV_RULES, e);
Expand Down

0 comments on commit b2c9cff

Please sign in to comment.