--- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -2385,8 +2343,7 @@ export async function captureScreenshot(texture, geometry, scale, cursor) { if (cursor === null) cursor = {texture: null, x: 0, y: 0, scale: 1}; - global.display.get_sound_player().play_from_theme( - 'screen-capture', _('Screenshot taken'), null); + // patched: do not play a sound when taking a screenshot const pixbuf = await Shell.Screenshot.composite_to_stream( texture, @@ -2548,9 +2505,7 @@ export class ScreenshotService { shooter.connect('screenshot_taken', (s, area) => { const flashspot = new Flashspot(area); flashspot.fire(resolve); - - global.display.get_sound_player().play_from_theme( - 'screen-capture', _('Screenshot taken'), null); + // patched: do not play a sound when taking a screenshot }); }); } }