-
-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xdg updates + autostart + lockfile #964
xdg updates + autostart + lockfile #964
Conversation
This looks really good to me @munix9 , removing the pkill was a must. Some general notes: I see that pyxdg is packaged as python3-xdg on debian and ubuntu, and as python3-pyxdg/python36-pyxdg on fedora and opensuse. |
This is not nice. Maybe I can integrate the needed methods of pyxdg directly into xdg.py to avoid the dependency. |
@gustavo-iniguez-goya pyxdg dependency is removed. |
@munix9 , did you see this error? it occurs when the File "/usr/lib/python3/dist-packages/opensnitch/service.py", line 202, in _on_switch_autostart
self._autostart.enable(self._menu_autostart.isChecked())
File "/usr/lib/python3/dist-packages/opensnitch/utils/xdg.py", line 82, in enable
shutil.copyfile(self.systemAutostart, self.userAutostart)
File "/usr/lib/python3.8/shutil.py", line 244, in copyfile
raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
shutil.SameFileError: '/etc/xdg/autostart/opensnitch_ui.desktop' and '/home/ga/.config/autostart/opensnitch_ui.desktop' are the same file |
thank you @munix9 ! |
I have summarized the various changes here:
See also #950