techcoder20 / MacOSBigSurThemeConverter

This is a bash script that will make your plain raspberry pi os lxde desktop look like MacOSBigSur
68 stars 8 forks source link

Installation only works for pi user #7

Closed hans-martijn closed 3 years ago

hans-martijn commented 3 years ago

At (as I guess) almost the end, I get the following error:

Traceback (most recent call last): File "/home/hans/.local/share/MacOSBigSurThemeConverter/gui.py", line 8, in WindowIcon = PhotoImage(file = '/home/pi/.local/share/MacOSBigSurThemeConverter/assets/Icons/MacOSBigSurThemeConverterLogo.png') File "/usr/lib/python3.7/tkinter/init.py", line 3545, in init Image.init(self, 'photo', name, cnf, master, **kw) File "/usr/lib/python3.7/tkinter/init.py", line 3501, in init self.tk.call(('image', 'create', imgtype, name,) + options) _tkinter.TclError: couldn't open "/home/pi/.local/share/MacOSBigSurThemeConverter/assets/Icons/MacOSBigSurThemeConverterLogo.png": no such file or directory

As you can guess I'm Hans, but it tries to copy from the pi user home dir.

-Hans

techcoder20 commented 3 years ago

Can you replace the gui file with this and try again. This is a experimental gui which works with every user.

gui.zip

hans-martijn commented 3 years ago

Yes, that worked.

Thank you very much for the quick response!!!

-Hans

hans-martijn commented 3 years ago

Problem solved.

hans-martijn commented 3 years ago

sorry, since I tested it with the pi - user, it did work when I tried as myself. Now, with a new installation, I get the following:

mkdir: cannot create directory ‘/home/hans/.local/share/MacOSBigSurThemeConverter’: No such file or directory mkdir: cannot create directory ‘/home/hans/.local/share/MacOSBigSurThemeConverter/.config_backup’: No such file or directory cp: cannot create directory '/home/hans/.local/share/MacOSBigSurThemeConverter/.config_backup': No such file or directory cp: cannot stat '/home/hans/.config/lxsession': No such file or directory cp: cannot create directory '/home/hans/.local/share/MacOSBigSurThemeConverter/.config_backup': No such file or directory cp: cannot stat '/home/hans/.config/pcmanfm': No such file or directory cp: target '/home/hans/.local/share/MacOSBigSurThemeConverter' is not a directory

It looks like now everything is in my home directory.

techcoder20 commented 3 years ago

What happens when you execute ls ~/.local/share/

hans-martijn commented 3 years ago

It's not there. I reinstalled the pi, because everything was a bit distorted after testing another program. I created the directories manually and now the installation works again.

techcoder20 commented 3 years ago

Nice happy it works :)