mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-04 19:51:50 +12:00
Shortcut fixes
This commit is contained in:
parent
82ff5c7e0f
commit
b7641da51c
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ public class DesktopShortcuts {
|
||||||
Categories=Utility;Development;Office;
|
Categories=Utility;Development;Office;
|
||||||
""",
|
""",
|
||||||
name, target, icon.toString());
|
name, target, icon.toString());
|
||||||
var file = Path.of("~/Desktop/" + name + ".desktop").toRealPath();
|
var file = Path.of(System.getProperty("user.home") + "/Desktop/" + name + ".desktop");
|
||||||
Files.writeString(file, content);
|
Files.writeString(file, content);
|
||||||
file.toFile().setExecutable(true);
|
file.toFile().setExecutable(true);
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ public class DesktopShortcuts {
|
||||||
open %s
|
open %s
|
||||||
""",
|
""",
|
||||||
target);
|
target);
|
||||||
var file = Path.of("~/Desktop/" + name + ".command").toRealPath();
|
var file = Path.of(System.getProperty("user.home") + "/Desktop/" + name + ".command").toRealPath();
|
||||||
Files.writeString(file, content);
|
Files.writeString(file, content);
|
||||||
file.toFile().setExecutable(true);
|
file.toFile().setExecutable(true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue