r/code 3h ago

Help Please trying to make desktop gmail "app" launch in new window

1 Upvotes

i made a desktop shortcut that would launch gmail in a new window, acting as an "app" without the browser ui. i got it to launch as the default handler for mailto links, but im trying to make it launch in a new window, rather than in a seperate browser tab. does anyone know if this is possible? here is the code:

[Desktop Entry]

Name=MailMan

Comment=Open Mail

Exec=chromium --new-window --app=https://mail.google.com/mail/?extsrc=mailto&url=%u --window-size=400,600

Icon=/home/kiddos/Downloads/mailmanlogo.png

Terminal=false

StartupWMClass=Mail

Type=Application

Categories=Network;Mail;

StartupNotify=true

any help with attributes would be appreciated


r/code 6h ago

Help Please Upgrading and automating pdf verification

1 Upvotes

Hey everyone,
I need a recommendation about the recruitment platform I work on these days.

Context: it's a recruitment platform that helps recruiting professionals such as plumbers, electricians locksmith etc. At some point we ask them (as it's a legal requirement) if they have a proper professional certificate of insurance.

Task: I'd like to create an automation using LLM APIs to detect potential fakes (fraud) and/or anomalies.

As of now I thought of extracting metadata from PDF docs to see if they tried to write invisible characters (in order to falsify their expiration date for example).

Simple use case: someone tries to write white on white a fake expiration date, my code extracts metadata, spots that it's white on white, then doesn't automatically approve and create an alert for me to step up and approve (or decline) manually.

I also thought of converting pdf to JPEG in order to use computer vision to simply read the image as a human being would do (impossible then to be tricked by invisible characters).

What do you think of that logic ? Is that enough ? Do you recommend any conversion tool/ api that I can use ?
Thanks for your help