Score:2

Using Ubuntu's built in screenshotting in a software?

cn flag

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

I'm on 21.10 if it matters

Score:0
ro flag

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.

us flag
This does not answer the question, "where the screenshots are stored?"
cn flag
Edit: In addition to your 'gnome-screenshot -w', there's an option -f which specifies the file name. I did not know it could be triggered that way. Thank you so much for helping me out, man. Also, don't see why Panjeet is being a hater here. I left you an upvote, I hope you have a nice day generous sir.
MikroPower avatar
ro flag
I was locking at the Man-Page of gnome-screenshot (https://linux.die.net/man/1/gnome-screenshot) and could not find any possibility to specify the path or filename. :-/ Because of this I want to point you at the other possibility, you can try this xfce4 program, try to install and use it. With "gnome-screenshot --interactive" a user-interface will pop up and ask you for the path and filename. But do you want this or do you only want to make a full-screen picture with out any additional user activity?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.