This repository was archived by the owner on Apr 28, 2025. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork16
Commitc305710
committed
make sure autostart user folder exists before attempting to copy files to it
On my KDE installation the ~/.config/autostart/ folder did not exist, which led to myself (and other KDE users on my distro) hitting this bug:$ yumex-dnfTraceback (most recent call last): File "/usr/lib/python3.10/site-packages/yumex/__init__.py", line 55, in on_activate self.window = Window( File "/usr/lib/python3.10/site-packages/yumex/gui/window/__init__.py", line 64, in __init__ self.legacy_cleanup() File "/usr/lib/python3.10/site-packages/yumex/gui/window/__init__.py", line 110, in legacy_cleanup shutil.copy(const.SYS_DESKTOP_FILE, const.USER_DESKTOP_FILE) File "/usr/lib64/python3.10/shutil.py", line 417, in copy copyfile(src, dst, follow_symlinks=follow_symlinks) File "/usr/lib64/python3.10/shutil.py", line 256, in copyfile with open(dst, 'wb') as fdst:FileNotFoundError: [Errno 2] No such file or directory: '/home/tcrider/.config/autostart/yumex-dnf-updater.desktop'This patch makes sure ~/.config/autostart folder exists before attempting to copy the yumex-dnf-updater.desktop file to it, and if not creates it.1 parentd62f276 commitc305710
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
0 commit comments
Comments
(0)