Ancestors

Toot

Written by Hemera :nixos: :ms_snow_leopard: on 2025-01-25 at 13:02

Thank you #nixos <3

simple-scan doesn't have a great default filename when saving a scan. Its always the same (something like, "New scan"), and I don't really care about the name (paperless does the rest).

Upstream has an issue open for 4 years, so I'm not super confident it will appear anytime soon. So I went and just patched it myself locally :D

Here's roughly how I did it:

The patch itself:

index 402065a..5b03250 100644

--- a/src/app-window.vala

+++ b/src/app-window.vala

@@ -403,7 +403,8 @@ public class AppWindow : Adw.ApplicationWindow

         /* Default filename to use when saving document. */

         /* To that filename the extension will be added, eg. "Scanned Document.pdf" */

     }

     var filters = new ListStore (typeof (Gtk.FileFilter));

@@ -1637,4 +1638,4 @@ private class CropActions

     else

         crop_set.set_state (crop_name);

 }

-}

\ No newline at end of file

+}

=> More informations about this toot | More toots from Hemera@meow.social

Descendants

Written by Hemera :nixos: :ms_snow_leopard: on 2025-01-25 at 13:04

Thinking about it, I feel that it should be even easier to just add some stuff so that you can just quickly say "save and new scan" and it will just use this default filename, so I can finally digitize the mountain of letters I have.

=> More informations about this toot | More toots from Hemera@meow.social

Written by Atemu on 2025-01-26 at 03:54

@Hemera

Have you proposed the patch upstream?

=> More informations about this toot | More toots from Atemu@darmstadt.social

Written by Sam Lehman :nixos: on 2025-01-26 at 06:17

@Hemera wait you can use nix develop on arbitrary packages in nixpkgs? This is going to be a massive game changer for me. Thank you for sharing this!

=> More informations about this toot | More toots from Lehmanator@fosstodon.org

Written by Acid Bong on 2025-01-26 at 08:20

@Hemera is there no pull request to download the patch from?

=> More informations about this toot | More toots from acidbong@cupoftea.social

Written by Hemera :nixos: :ms_snow_leopard: on 2025-01-26 at 15:18

@acidbong Nope, I wrote it haha

=> More informations about this toot | More toots from Hemera@meow.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113889124840032320
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
281.799254 milliseconds
Gemini-to-HTML Time
1.969966 milliseconds

This content has been proxied by September (3851b).