-
Notifications
You must be signed in to change notification settings - Fork 159
Description
Add 'Set as Desktop Background' context menu item to images
Motivation
Users currently have no quick way to set an image as their desktop background directly from the file system. They must navigate through settings or other indirect methods to change their wallpaper. Adding a context menu option when right-clicking on image files would provide a convenient, intuitive way for users to personalize their desktop environment.
This feature enhances the user experience by reducing friction in a common personalization task. It follows familiar desktop environment patterns where users expect to be able to right-click images and set them as backgrounds, making the interface more intuitive and user-friendly.
Current Behavior
When users right-click on image files in the file system, they see various context menu options like Open, Download, Copy, etc., but there is no option to set the image as their desktop background.
Reproduction Steps:
- Navigate to any folder containing image files (PNG, JPG, etc.)
- Right-click on an image file
- Observe the context menu that appears
- Observe: No "Set as Desktop Background" option is present
- Issue: Users must use alternative methods to change their desktop background
Expected Behavior
When users right-click on image files, they should see a "Set as Desktop Background" option in the context menu. Clicking this option should immediately apply the image as the desktop background and persist this preference to their user settings.
Acceptance Criteria:
- A "Set as Desktop Background" menu item appears in the context menu when right-clicking on image files
- The menu item only appears for image file types (not for folders, text files, or other non-image files)
- Clicking the menu item immediately updates the desktop background to the selected image
- The desktop background preference is saved to the user's account and persists across sessions
- The menu item does not appear for items in the trash or for trashed items
Verification
Manual Testing:
- Right-click on various image files (PNG, JPG, GIF, etc.) and verify the "Set as Desktop Background" option appears
- Click the option and confirm the desktop background changes immediately
- Right-click on non-image files (text files, folders, etc.) and verify the option does NOT appear
- Set an image as background, refresh the page or log out/in, and verify the background persists
- Right-click on images in the trash folder and verify the option does not appear
Automated Testing:
- Run existing test suites to ensure no regressions were introduced
- Verify that the internationalization system properly displays the menu item text
Submission
Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.
Guide to submitting pull requests: https://hackmd.io/@timothy1ee/Hky8kV3hlx