!rGlCMuXgAhgEpdvJUz:nixos.org

NixOS KDE

217 Members
59 Servers

Load older messages


SenderMessageTime
5 Sep 2024
@outfoxxed:outfoxxed.meoutfoxxedQCoreApplication::applicationFilePath would be good enough except there isn't really a way to determine if the resource is from the application or a library it pulled in. That could be an issue in kde especially.00:36:46
@outfoxxed:outfoxxed.meoutfoxxedI'll make a compromise and have it re-cache qml files in shared libraries used across applications. Better than a false positive match.00:37:38
@outfoxxed:outfoxxed.meoutfoxxedI was going to test the patch with some kde applications and hit something interesting03:43:16
@outfoxxed:outfoxxed.meoutfoxxedimage.png
Download image.png
03:43:27
@outfoxxed:outfoxxed.meoutfoxxedwhy does kirigami not use qmlcachegen03:43:28
@outfoxxed:outfoxxed.meoutfoxxedits going directly to file paths, not even trying for an AOT cache03:43:52
@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
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.meK900To 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.meK900Yeah probably07:01:47
@k900:0upti.meK900Also need to figure out how to clear out old caches07:01:53
@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

Show newer messages


Back to Room ListRoom Version: 9