mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-22 01:06:34 +00:00
Shortcut fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user