atomicshop 2.18.33__py3-none-any.whl → 2.18.34__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of atomicshop might be problematic. Click here for more details.
- atomicshop/__init__.py +1 -1
- atomicshop/filesystem.py +10 -1
- {atomicshop-2.18.33.dist-info → atomicshop-2.18.34.dist-info}/METADATA +1 -1
- {atomicshop-2.18.33.dist-info → atomicshop-2.18.34.dist-info}/RECORD +7 -7
- {atomicshop-2.18.33.dist-info → atomicshop-2.18.34.dist-info}/LICENSE.txt +0 -0
- {atomicshop-2.18.33.dist-info → atomicshop-2.18.34.dist-info}/WHEEL +0 -0
- {atomicshop-2.18.33.dist-info → atomicshop-2.18.34.dist-info}/top_level.txt +0 -0
atomicshop/__init__.py
CHANGED
atomicshop/filesystem.py
CHANGED
|
@@ -1743,6 +1743,8 @@ def create_ubuntu_desktop_shortcut(
|
|
|
1743
1743
|
raise ValueError("Either 'file_path' or 'command' must be specified.")
|
|
1744
1744
|
if command and file_path:
|
|
1745
1745
|
raise ValueError("Only one of 'file_path' or 'command' can be specified.")
|
|
1746
|
+
if command and not shortcut_name:
|
|
1747
|
+
raise ValueError("The 'shortcut_name' must be specified when 'command' is used.")
|
|
1746
1748
|
|
|
1747
1749
|
from .permissions import ubuntu_permissions
|
|
1748
1750
|
|
|
@@ -1755,6 +1757,13 @@ def create_ubuntu_desktop_shortcut(
|
|
|
1755
1757
|
if not shortcut_name:
|
|
1756
1758
|
shortcut_name: str = Path(file_path).stem
|
|
1757
1759
|
|
|
1760
|
+
if command:
|
|
1761
|
+
executable: str = command
|
|
1762
|
+
elif file_path:
|
|
1763
|
+
executable: str = file_path
|
|
1764
|
+
else:
|
|
1765
|
+
raise ValueError("Either 'file_path' or 'command' must be specified.")
|
|
1766
|
+
|
|
1758
1767
|
# Full path to the .desktop file
|
|
1759
1768
|
shortcut_path = os.path.join(desktop_dir, f"{shortcut_name}.desktop")
|
|
1760
1769
|
|
|
@@ -1764,7 +1773,7 @@ def create_ubuntu_desktop_shortcut(
|
|
|
1764
1773
|
"Version=1.0",
|
|
1765
1774
|
"Type=Application",
|
|
1766
1775
|
f"Name={shortcut_name}",
|
|
1767
|
-
f"Exec={
|
|
1776
|
+
f"Exec={executable}",
|
|
1768
1777
|
f"Path={working_directory}" if working_directory else "",
|
|
1769
1778
|
f"Icon={icon_path}" if icon_path else "",
|
|
1770
1779
|
f"Terminal={'true' if terminal else 'false'}",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
atomicshop/__init__.py,sha256=
|
|
1
|
+
atomicshop/__init__.py,sha256=j1UndWBC7mEogg-U1kvD5l1DbldbQp6SbzJKKz6BwS8,124
|
|
2
2
|
atomicshop/_basics_temp.py,sha256=6cu2dd6r2dLrd1BRNcVDKTHlsHs_26Gpw8QS6v32lQ0,3699
|
|
3
3
|
atomicshop/_create_pdf_demo.py,sha256=Yi-PGZuMg0RKvQmLqVeLIZYadqEZwUm-4A9JxBl_vYA,3713
|
|
4
4
|
atomicshop/_patch_import.py,sha256=ENp55sKVJ0e6-4lBvZnpz9PQCt3Otbur7F6aXDlyje4,6334
|
|
@@ -14,7 +14,7 @@ atomicshop/dns.py,sha256=5Gimq_WY2arqg7BeGmR7P--fGfnH0Dsh8lrOt_H0jRY,6817
|
|
|
14
14
|
atomicshop/domains.py,sha256=Rxu6JhhMqFZRcoFs69IoEd1PtYca0lMCG6F1AomP7z4,3197
|
|
15
15
|
atomicshop/emails.py,sha256=I0KyODQpIMEsNRi9YWSOL8EUPBiWyon3HRdIuSj3AEU,1410
|
|
16
16
|
atomicshop/file_types.py,sha256=-0jzQMRlmU1AP9DARjk-HJm1tVE22E6ngP2mRblyEjY,763
|
|
17
|
-
atomicshop/filesystem.py,sha256=
|
|
17
|
+
atomicshop/filesystem.py,sha256=owVG49AtC0-6KCYd3bORwTS44xj4NlfktD70QpIQMrM,68030
|
|
18
18
|
atomicshop/functions.py,sha256=pK8hoCE9z61PtWCxQJsda7YAphrLH1wxU5x-1QJP-sY,499
|
|
19
19
|
atomicshop/get_process_list.py,sha256=8cxb7gKe9sl4R6H2yMi8J6oe-RkonTvCdKjRFqi-Fs4,6075
|
|
20
20
|
atomicshop/get_process_name_cmd_dll.py,sha256=CtaSp3mgxxJKCCVW8BLx6BJNx4giCklU_T7USiCEwfc,5162
|
|
@@ -321,8 +321,8 @@ atomicshop/wrappers/socketw/statistics_csv.py,sha256=fgMzDXI0cybwUEqAxprRmY3lqbh
|
|
|
321
321
|
atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
322
322
|
atomicshop/wrappers/winregw/winreg_installed_software.py,sha256=Qzmyktvob1qp6Tjk2DjLfAqr_yXV0sgWzdMW_9kwNjY,2345
|
|
323
323
|
atomicshop/wrappers/winregw/winreg_network.py,sha256=AENV88H1qDidrcpyM9OwEZxX5svfi-Jb4N6FkS1xtqA,8851
|
|
324
|
-
atomicshop-2.18.
|
|
325
|
-
atomicshop-2.18.
|
|
326
|
-
atomicshop-2.18.
|
|
327
|
-
atomicshop-2.18.
|
|
328
|
-
atomicshop-2.18.
|
|
324
|
+
atomicshop-2.18.34.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
|
|
325
|
+
atomicshop-2.18.34.dist-info/METADATA,sha256=IC6AQpsSMvtPkGi3wXttRIZb-2uDkNfDkbm-xpOPC8s,10631
|
|
326
|
+
atomicshop-2.18.34.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
327
|
+
atomicshop-2.18.34.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
|
|
328
|
+
atomicshop-2.18.34.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|