Replies: 5 comments 2 replies
-
|
Sorry what you've gone through to diagnose the actual issue. And thanks for sharing your experience here! It sounds like something we could bring up at libsfdo, failure to parse a theme should not prevent all other themes to be parsed. |
Beta Was this translation helpful? Give feedback.
-
Could you elaborate on "various sources"? Which |
Beta Was this translation helpful? Give feedback.
-
|
Of course, yes. Sorry, I forgot about reproducability - didn't mean to make it sound more mysterious than it is and did not want to put blame on a single theme pack. 😅 Download the zip file of this theme's master branch here: https://github.com/B00merang-Artwork/Windows-XP |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, I reproduced the issue. I filed a MR in libsfdo to allow falling back to |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the report. Should be fixed on the master branch (and therefore the upcoming release). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Having spent 3 hours getting to the bottom of why my labwc install refused to show any icons in all menus, and finding no information about this on the internet, I'd like to both document this here so that others may save time, and also raise this issue as something that poorly communicates to the user what is going on, and should/could be improved.
The other discussions pertaining to missing icons did not indicate a total fail of this subsystem, so the matter here is different.
Take this case:
index.themefile.Other applications do not get bothered by the broken theme since they have no business in dealing with it. So there are no other problems on the system.
Unlike other applications, labwc very much deals with this corrupt inactive theme.
Labwc uses
libsfdoto do the heavy lifting of looking for the xdg user folders, and apparently also validating the available themes therein.libsfdoloads up every singleindex.themefile it finds in those folders. The moment it runs across a file that is not valid, it completely stops working and throws an error, and returnsNULL! (libsfdo/sfdo-basedir/basedir.c)The only hint at what is going on would be a system journal entry like this:
Oct 07 07:37:02 grid10 uwsm_labwc[138746]: 00:00:00.159 [ERROR] [../labwc/src/desktop-entry.c:131] Failed to initialize icon loaderLABWC_DEBUG_LIBSFDOdoes the brokenindex.themefile and the offending theme get identified, and listed in the log output.That a single file in an inactive icon theme can break labwc's icon display is unfortunate from a user perspective.
It is not your fault, yet you're the only project (that I'm aware of) which uses
libsfdofor this purpose.🙏 Could you possibly alter the error message you're emitting into the system journal?
Simply telling the user what happened, that they might have a corrupt theme, and that they should delete all their custom themes or something along those lines would be a huge improvement.
Alternatively perhaps you could consider not letting
libsfdotouch any inactive theme files, or make this portion of your code more robust, maybe with a simple fallback that does a last-resort hard-coded loading of Adwaita or somesuch, while emitting a warning into the log.Just wanted to bring this to your attention, I'm enjoying labwc greatly so thanks for your hard work! 😁
Beta Was this translation helpful? Give feedback.
All reactions