101 shortcut.WorkingDirectory = os.path.dirname(targetPath) |
101 shortcut.WorkingDirectory = os.path.dirname(targetPath) |
102 shortcut.IconLocation = iconPath |
102 shortcut.IconLocation = iconPath |
103 shortcut.save() |
103 shortcut.save() |
104 |
104 |
105 |
105 |
106 def windowsDesktopNames(): |
|
107 """ |
|
108 Function to generate the link names for the Windows Desktop. |
|
109 |
|
110 @return list of desktop link names |
|
111 @rtype list of str |
|
112 """ |
|
113 return [e[0] for e in windowsDesktopEntries()] |
|
114 |
|
115 |
|
116 def windowsDesktopEntries(): |
106 def windowsDesktopEntries(): |
117 """ |
107 """ |
118 Function to generate data for the Windows Desktop links. |
108 Function to generate data for the Windows Desktop links. |
119 |
109 |
120 @return list of tuples containing the desktop link name, |
110 @return list of tuples containing the desktop link name, |