No Such File or Directory Error
Opened this issue · 10 comments
Coming from Solus—which, somehow, seemed to handle my flatpak theming better because they all just "worked"—and Manjaro—which I never needed flatpaks with, I didn't hit this issue until my Fedora 33 install; so, this little script is a godsend. However, I can't get it to work and I'm wondering if it's Federa-specific. Any ideas? Thanks for whatever help you can provide...
When executing gftu.py, I receive this output:
Identifying which theme is currently being used...
THEME: Nordic-Polar-standard-buttons
Checking Flatpak Gnome Platform Dependencies...
Traceback (most recent call last):
File "/home/bryan/.local/share/gnome-ftu/./gftu.py", line 32, in <module>
platforms = os.listdir(homedir + "/.local/share/flatpak/runtime/org.gnome.Platform/x86_64/")
FileNotFoundError: [Errno 2] No such file or directory: '/home/bryan/.local/share/flatpak/runtime/org.gnome.Platform/x86_64/'
EDIT
I've found if I go down the rabbit hole of runtime dirs, I can use your previous Medium post to cp my theme into that and it works, for now; however, as you've pointed out, an update will likely break it.
Interesting... So when you go to /home/bryan/.local/share/flatpak/runtime/org.gnome.Platform/x86_64
, it's there?
That runtime dir doesn't even exist.
Are you on a 32-bit OS?
Interesting. I actually just checked my f32 VM and I experienced the same problem. The user specific runtime directory is just not there either. I guess Fedora just does it a little differently? Let me look into it some more.
I believe this is a user vs system flatpak thing. Check /var/lib/flatpak/runtime/
There's plenty in that dir @macowie; any suggestions on getting the script to work?
There's plenty in that dir @macowie; any suggestions on getting the script to work?
In the python script you need to replace homedir + "/.local/share/flatpak/runtime/org.gnome.Platform/x86_64/"
with "/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/"
(also needs root for the copy command as you are editing a system folder)
That is where flatpak stores its Gnome themes (on my Pop OS 20.10 at least), there is no .local gnome folder
There's a pull request for it @crnisamuraj already did, clone that instead for now: #1
Thanks, @double-u-a, your response is much appreciated. I've returned to my Solus install for now, but will use this (for sure) if I return to Fedora in the future...