disable-screenshot-sound.patch 894 B

12345678910111213141516171819202122
  1. --- a/js/ui/screenshot.js
  2. +++ b/js/ui/screenshot.js
  3. @@ -2393,8 +2393,7 @@ export async function captureScreenshot(texture, geometry, scale, cursor) {
  4. if (cursor === null)
  5. cursor = {texture: null, x: 0, y: 0, scale: 1};
  6. - global.display.get_sound_player().play_from_theme(
  7. - 'screen-capture', _('Screenshot taken'), null);
  8. + // patched: do not play a sound when taking a screenshot
  9. const pixbuf = await Shell.Screenshot.composite_to_stream(
  10. texture,
  11. @@ -2557,8 +2556,7 @@ export class ScreenshotService {
  12. const flashspot = new Flashspot(area);
  13. flashspot.fire(resolve);
  14. - global.display.get_sound_player().play_from_theme(
  15. - 'screen-capture', _('Screenshot taken'), null);
  16. + // patched: do not play a sound when taking a screenshot
  17. });
  18. });
  19. }