!rGlCMuXgAhgEpdvJUz:nixos.org

NixOS KDE

221 Members
60 Servers

Load older messages


SenderMessageTime
5 Sep 2024
@outfoxxed:outfoxxed.meoutfoxxedone of them even managed to not be a url03:44:55
@outfoxxed:outfoxxed.meoutfoxxedimage.png
Download image.png
03:44:56
@outfoxxed:outfoxxed.meoutfoxxedit looks like elisa does, but kirigami doesn't03:46:56
@k900:0upti.meK900 (Old)
In reply to@outfoxxed:outfoxxed.me
K900: just went and looked at the cache paths and we have an issue with just getting the paths of the qml files we're working with. All we have is qrc paths and there doesn't seem to be a way to get the binary a resource is part of to find its path.
Yeah, you might need to dig in QResource guts
06:51:24
@k900:0upti.meK900 (Old)To actually get that06:51:31
@outfoxxed:outfoxxed.meoutfoxxed
In reply to @k900:0upti.me
To actually get that
I think its solved reasonably well by using the application path, since applications have individual qml caches
07:01:15
@outfoxxed:outfoxxed.meoutfoxxedthats whats here at least https://github.com/NixOS/nixpkgs/pull/33970607:01:27
@k900:0upti.meK900 (Old)Yeah probably07:01:47
@k900:0upti.meK900 (Old)Also need to figure out how to clear out old caches07:01:53
@k900:0upti.meK900 (Old)Looking at the code I'm not sure if this is actually ever addressed on other distros which is scary07:02:14
@outfoxxed:outfoxxed.meoutfoxxedit doesn't appear to but its also not something that can be done very well genericly07:02:39
@outfoxxed:outfoxxed.meoutfoxxedbecause applications can load whatever paths at whatever time07:02:49
@k900:0upti.meK900 (Old)We could do a tmpfiles rule07:02:50
@outfoxxed:outfoxxed.meoutfoxxedI don't think we want to clear any other caches the application might have07:03:15
@outfoxxed:outfoxxed.meoutfoxxedwhat I do think we should do is change the save format of qmlc on disk to include the application path instead of putting it in the hashed name07:03:50
@outfoxxed:outfoxxed.meoutfoxxedsimilarly to the tag07:03:58
@outfoxxed:outfoxxed.meoutfoxxedsome care needs to be taken to only do it to disk cached qml files but that shouldn't be very hard07:04:20
@outfoxxed:outfoxxed.meoutfoxxedit would avoid endless creation of new qml caches whenever there's an update but probably require more maintainance07:04:43
@k900:0upti.meK900 (Old)
In reply to@outfoxxed:outfoxxed.me
what I do think we should do is change the save format of qmlc on disk to include the application path instead of putting it in the hashed name
How would that help?
07:05:42
@outfoxxed:outfoxxed.meoutfoxxedit would allow qtdeclarative to invalidate caches from old derivations07:06:00
@outfoxxed:outfoxxed.meoutfoxxedlike what it tries to do with the timestamp07:06:06
@outfoxxed:outfoxxed.meoutfoxxedexcept working on nix07:06:09
@k900:0upti.meK900 (Old)It won't though?07:06:10
@outfoxxed:outfoxxed.meoutfoxxedwhy not?07:06:17
@k900:0upti.meK900 (Old)Because the path will be different every time07:06:18
@k900:0upti.meK900 (Old)Because it's a store path07:06:23
@outfoxxed:outfoxxed.meoutfoxxedyou misunderstand07:06:31
@k900:0upti.meK900 (Old)And also we don't want to just yeet any "old" store path07:06:31
@outfoxxed:outfoxxed.meoutfoxxedwhen the application writes a qml cache to a temp directory then the store path of the application should be encoded in the cache file07:06:59
@outfoxxed:outfoxxed.meoutfoxxedso qtdeclarative can discard mismatched ones07:07:10

Show newer messages


Back to Room ListRoom Version: 9