BLKFSH
Members-
Posts
8 -
Joined
-
Last visited
Everything posted by BLKFSH
-
Oh, I think I originally tried it as a shell-script, but then switched to the Python version instead... I guess in the end the file extension could be omitted anyway since there's that shebang in the first line and there's no need to call the file through the python command, which is what I'd expect from a .py file, but an actual Python dev might disagree on that. In the end this was just a quick and dirty solution that turned out to work well, I might still make some changes when I add everything to the repo...
-
Yeah, it's not always the most reliable but I've found that for small tasks it usually gets the job done if you specify it precisely enough. As for existing solutions, the only thing I was able to find was this thumbnail generator for .afphoto files for Nextcloud, which is pretty cool too!
-
Oops! I was so busy researching how Affinity saves thumbnails that I didn't even consider someone had made a script for it already! I guess it's easier having ChatGPT write a script in 30 seconds than it is to search for an existing solution... Either way, unless someone also uploaded the thumbnailer file that works with that script as well I at least added something I guess? And if someone did that as well already I'll just sit in the corner and shut up
-
Hey! Long time no see... I'm glad to see all the progress being made here and I have a little something to add: Thumbnails! 🥳 Basically I looked for different image types in .afphoto files and it turns out that Affinity simply saves thumbnails as PNGs contained within the project files (as long as saving thumbnails is enabled in the settings). So I wrote a little python script (okay I had ChatGPT write one because I was too lazy lol but it works really well) that simply scans a file for PNG data and saves the resulting image. All you need to do then is add a mime-type XML to /usr/share/mime/packages/, call sudo update-mime-database /usr/share/mime add a .thumbnailer file to /usr/share/thumbnailers and put the script in some place like /usr/bin/ (and make it executable). After all the data is in place you simply need to quit Nautilus nautilus -q and then delete your thumbnail cache rm -r ~/.cache/thumbnails Once all that is done you can reopen Nautilus and all your .afphoto files should have thumbnails like so! I didn't test this for Affinity Designer and Publisher files, but I assume it's about the same, just with a different extension. I will add a bit about this to @Wanesty's repo on Codeberg in the next few days and maybe I'll do it for the other file types as well but feel free to try it yourself, I attached the three needed files to this post And while I did check through the script and while with my limited python knowledge it does look good, keep in mind this was written by an AI and I'm not responsible if you burn your house down, so read through everything first and make sure you understand it! afphoto.xml afphoto-thumb.thumbnailer afphoto-thumbnailer.sh
-
Created a PR
-
I found out a nice little trick to get the applications working with icon-packs in the dock. This is purely a cosmetic change and it seems to apply to all apps (especially wine applications), but it lets me rest easy at night because now my shell looks nice and slick again 😜 In your .desktop-file you simply need to add StartupWMClass=photo.exe or "designer.exe"/"publisher.exe" for the other applications. That way the dock knows to associate any application with that WM-class under that .desktop entry. To get the class of an application you simply call the following command in a terminal: xprop WM_CLASS and then click on the window of the application you wanna know the class of. For wine-applications this should be the name of the exe you're running. To get a better idea of what I'm talking about, here's an example: On the left side you can see Affinity Photo 2 showing under a custom icon since I added said line to the .desktop while Designer still uses the blurry default icon since that line is not added there yet. To get the specific icon showing of course you need to add Icon=[application-name] to your .desktop and make sure your icon pack has an icon with that name. Since the icon pack I'm using didn't, I decided to make my own and add them as "affinity-photo-2" and so on. Another added benefit is that even if you're not using some fancy icon pack the application will still show up under the shortcut of the .desktop instead of adding a second icon to the dock like so: @Wanestymaybe you could add this to the .desktop example in the git-repo?
-
That worked, thank you! One more question, how would I go about adding the affinity suite to the "open with"-menu in Gnome? I know usually you would add a %F to the Exec-attribute in the .desktop-file, but I'm not quite sure how one would go about doing that with Wine (or with Affinity specifically). I found some hints here but I haven't been able to get it running yet, maybe someone here has got it figured out
-
Thanks so much for this, I've been searching for a Photosop/Illustrator altnerative for a while now and this seems to be an option, so I'll definitely be buying the Suite! (I tried installing the 30 day trial and it's working like a charm) One small thing I've noticed is that reordering the layout still seems to cause issues, can anyone else confirm this? If I drag a panel away from its place it gets popped out into another window, but I'm unable to put it back somewhere. I got it to pop back in once, but this seems to be a part that's still behaving a bit strangely.
