!rGlCMuXgAhgEpdvJUz:nixos.org

NixOS KDE

136 Members
45 Servers

Load older messages


SenderMessageTime
5 Sep 2024
@k900:0upti.meK900Looking 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.meK900We 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
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.meK900It won't though?07:06:10
@outfoxxed:outfoxxed.meoutfoxxedwhy not?07:06:17
@k900:0upti.meK900Because the path will be different every time07:06:18
@k900:0upti.meK900Because it's a store path07:06:23
@outfoxxed:outfoxxed.meoutfoxxedyou misunderstand07:06:31
@k900:0upti.meK900And 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
@outfoxxed:outfoxxed.meoutfoxxed when the application updates and its store path changes, the cache is invalidated and the old files are also replaced 07:07:49
@outfoxxed:outfoxxed.meoutfoxxedas opposed to just leaving them there like the patch set does currently07:07:59
@k900:0upti.meK900But how would you know which files to replace07:08:35
@outfoxxed:outfoxxed.meoutfoxxedbecause they would have the same name07:08:48
@outfoxxed:outfoxxed.meoutfoxxedwhich is the hashed qrc path07:08:59
@k900:0upti.meK900Oh wait07:09:04
@k900:0upti.meK900Yeah I think I see what you mean07:09:09
@k900:0upti.meK900But I'm not sure about that07:09:12
@k900:0upti.meK900 Because having two store paths with the same qrc name but different versions installed at the same time is not that unlikely 07:09:39

Show newer messages


Back to Room ListRoom Version: 9