NITDgpOS / UIP

A library, to customize your desktop wallpapers.
https://nitdgpos.github.io/projects/UIP
GNU Affero General Public License v3.0
19 stars 45 forks source link

GUI: Make Apply button in settings work properly #259

Closed lohani2280 closed 7 years ago

lohani2280 commented 7 years ago

gives permission error whenever changes made in settings are applied by clicking on "Apply" button.

EDIT :- Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.5/tkinter/init.py", line 1553, in call return self.func(*args) File "/usr/local/lib/python3.5/dist-packages/UIP-0.0.3-py3.5.egg/uiplib/GUI.py", line 275, in handle_settings update_settings(self.new_settings) File "/usr/local/lib/python3.5/dist-packages/UIP-0.0.3-py3.5.egg/uiplib/utils/utils.py", line 18, in update_settings with open(temp_file, "w+") as _file: PermissionError: [Errno 13] Permission denied: '/home/user1/.uip/temp.json'

abhay-raizada commented 7 years ago

@lohani2280 can you post the traceback? @nemaniarjun can this be due to the same reason we had with folders?

nemani commented 7 years ago

Does it work with sudo?

nemani commented 7 years ago

Yeah I'll look into this

abhay-raizada commented 7 years ago

@nemaniarjun maybe use tempfile ? a fix for this should be easy

nemani commented 7 years ago

On it.

nemani commented 7 years ago

@lohani2280 can you post details on how to reproduce the error? I am unable to reproduce it. (Everything works perfectly for me)

lohani2280 commented 7 years ago

@nemaniarjun run UIP --ui -> go to settings -> fill in all the details and then -> click "Apply" and i get the above error

nemani commented 7 years ago

@lohani2280 I don't get any error and it works for me perfectly. Make sure you have installed UIP using latest code. If problem still persists, give me more details, like: OS you are using, etc

lohani2280 commented 7 years ago

I just updated my codebase (actually its already updated) . but the problem is still there . I am using Ubuntu 16.04 LTS

abhay-raizada commented 7 years ago

@lohani2280 are u still facing the issue? did u try deleting your .uip folder and reinstalling again?

lohani2280 commented 7 years ago

@abhsag24 Its working completely fine now after deleting .uip folder and reinstalling again. So i am closing this .