Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Using Ubuntu's built in screenshotting in a software?

I’m wondering if it’s possible to access these functions:

screenshot

Basically – My (C#) software triggers one of these screenshot functions and I want it to know where it’s stored so I can use those pictures in my program

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I’m on 21.10 if it matters

>Solution :

Ubuntu uses this command.
$ gnome-screenshot -w

With the dconf-editor you should be able to set an other path.
(/org/gnome/gnome-screenshot/auto-save-directory)

Under XUbuntu 21.10 you can use this command in a script to make screenshots:

xfce4-screenshooter -f -s /home/billy/Screenshots/"$(date +"%Y-%m-%d_%I-%M_%S").png"

You should be able to install and use this xfce4 program for Ubuntu (gnome) too.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading