elementary / switchboard-plug-useraccounts

Switchboard User Accounts Plug
GNU Lesser General Public License v3.0
12 stars 13 forks source link

Allow to assign profile picture by taking a picture with the laptops camera #190

Open spotlesscoder opened 1 year ago

spotlesscoder commented 1 year ago

Problem

Users might want to use a real life picture of their own as profile picture for their user account. But they might not have one available as file to import at that moment.

Proposal

When clicking the profile picture in the user management view, the menu should have an additional option "use camera" in the menu that opens up. When pressing that option, a camera app should open. Then, when the user presses the "take photo" button, the picture taken should be displayed to the user for review. When the user declines, he should have another attempt to take a new photo in the still open camera app. When the user accepts, the file should be saved and automatically assigned as profile picture.

Prior Art (Optional)

No response

danirabbit commented 1 year ago

Thinking about this from a technical perspective, what we probably want here is a photo portal so that any app can launch the camera in a portal/dialog mode, the camera can take a photo, and then pass back the photo much in the same way the file chooser portal works. Opened https://github.com/elementary/camera/issues/255 to discuss such a camera feature

spotlesscoder commented 1 year ago

Very good idea, always good to have something suitable for more than one use case :)