mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Shortcut fixes
This commit is contained in:
parent
6d07f5bab5
commit
4222703946
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ public class DesktopShortcuts {
|
|||
Categories=Utility;Development;Office;
|
||||
""",
|
||||
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);
|
||||
file.toFile().setExecutable(true);
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ public class DesktopShortcuts {
|
|||
open %s
|
||||
""",
|
||||
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);
|
||||
file.toFile().setExecutable(true);
|
||||
|
||||
|
|
Loading…
Reference in a new issue