atomicshop 2.18.29__py3-none-any.whl → 2.18.30__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 -3
- {atomicshop-2.18.29.dist-info → atomicshop-2.18.30.dist-info}/METADATA +1 -1
- {atomicshop-2.18.29.dist-info → atomicshop-2.18.30.dist-info}/RECORD +7 -7
- {atomicshop-2.18.29.dist-info → atomicshop-2.18.30.dist-info}/LICENSE.txt +0 -0
- {atomicshop-2.18.29.dist-info → atomicshop-2.18.30.dist-info}/WHEEL +0 -0
- {atomicshop-2.18.29.dist-info → atomicshop-2.18.30.dist-info}/top_level.txt +0 -0
atomicshop/__init__.py
CHANGED
atomicshop/filesystem.py
CHANGED
|
@@ -1711,6 +1711,7 @@ def create_ubuntu_desktop_shortcut(
|
|
|
1711
1711
|
comment: str = "Shortcut to execute the Python script",
|
|
1712
1712
|
categories: str = "Utility",
|
|
1713
1713
|
set_executable: bool = False,
|
|
1714
|
+
set_trusted: bool = False,
|
|
1714
1715
|
set_xfce_exe_checksum: bool = False
|
|
1715
1716
|
):
|
|
1716
1717
|
"""
|
|
@@ -1733,6 +1734,8 @@ def create_ubuntu_desktop_shortcut(
|
|
|
1733
1734
|
:param comment: string, A comment to describe the shortcut.
|
|
1734
1735
|
:param categories: string, The categories of the shortcut.
|
|
1735
1736
|
:param set_executable: boolean, If True, the shortcut will be made executable.
|
|
1737
|
+
:param set_trusted: boolean, If True, the shortcut will be marked as trusted.
|
|
1738
|
+
This is needed for GNOME.
|
|
1736
1739
|
:param set_xfce_exe_checksum: boolean, If True, the shortcut will be made safe executable for XFCE.
|
|
1737
1740
|
|
|
1738
1741
|
:return: None
|
|
@@ -1750,15 +1753,15 @@ def create_ubuntu_desktop_shortcut(
|
|
|
1750
1753
|
# Get the user's directory.
|
|
1751
1754
|
desktop_dir = os.path.expanduser("~/Desktop")
|
|
1752
1755
|
|
|
1753
|
-
# Full path to the .desktop file
|
|
1754
|
-
shortcut_path = os.path.join(desktop_dir, f"{shortcut_name}.desktop")
|
|
1755
|
-
|
|
1756
1756
|
if not working_directory:
|
|
1757
1757
|
working_directory = os.path.dirname(file_path)
|
|
1758
1758
|
|
|
1759
1759
|
if not shortcut_name:
|
|
1760
1760
|
shortcut_name: str = Path(file_path).stem
|
|
1761
1761
|
|
|
1762
|
+
# Full path to the .desktop file
|
|
1763
|
+
shortcut_path = os.path.join(desktop_dir, f"{shortcut_name}.desktop")
|
|
1764
|
+
|
|
1762
1765
|
# Generate the content for the .desktop file
|
|
1763
1766
|
desktop_entry = [
|
|
1764
1767
|
"[Desktop Entry]",
|
|
@@ -1781,6 +1784,10 @@ def create_ubuntu_desktop_shortcut(
|
|
|
1781
1784
|
if set_executable:
|
|
1782
1785
|
ubuntu_permissions.set_executable(shortcut_path)
|
|
1783
1786
|
|
|
1787
|
+
# Mark the .desktop file as trusted
|
|
1788
|
+
if set_trusted:
|
|
1789
|
+
ubuntu_permissions.set_trusted_executable(shortcut_path)
|
|
1790
|
+
|
|
1784
1791
|
# Make the .desktop file safe executable for XFCE
|
|
1785
1792
|
if set_xfce_exe_checksum:
|
|
1786
1793
|
ubuntu_permissions.set_xfce_exe_checksum(shortcut_path)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
atomicshop/__init__.py,sha256=
|
|
1
|
+
atomicshop/__init__.py,sha256=6a8s52oEErBoMqHlOVc95TxLFuoK8ZGvWHPZKkVUgAA,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=vXyc73_8ltcsuvPrmFor8QtehZs0Dg3_FvflAoZKT00,67857
|
|
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.30.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
|
|
325
|
+
atomicshop-2.18.30.dist-info/METADATA,sha256=c7ZY3AG2mw1LVujTZo1Svw7dQLemtJdNBBLUE_7obZc,10631
|
|
326
|
+
atomicshop-2.18.30.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
327
|
+
atomicshop-2.18.30.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
|
|
328
|
+
atomicshop-2.18.30.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|