wallpaper

The wallpaper permission allows a ChromeOS extension to change the user's desktop wallpaper.

This is a ChromeOS-only permission. It will have no effect on other operating systems.

What it does

  • Grants access to the chrome.wallpaper API.
  • Allows an extension to set the desktop wallpaper from an image URL or from binary image data.
  • The extension can specify the layout of the wallpaper (e.g., stretched, centered).

When to use it

This is for extensions that provide wallpaper customization features on ChromeOS.

Examples:

  • A "daily wallpaper" extension that sets a new wallpaper each day from a service like Bing or Unsplash.
  • An extension that lets the user create a slideshow of their favorite photos as a wallpaper.
  • A corporate branding extension that sets the company logo as the wallpaper on managed devices.

Manifest Declaration

{
  "name": "My Daily Wallpaper",
  "version": "1.0",
  "manifest_version": 3,
  "permissions": [
    "wallpaper"
  ]
}

Security & Privacy

Why is it not risky?

This permission (only for ChromeOS) allows an extension to change your desktop wallpaper.

This is a safe, cosmetic permission. It cannot access your files or any personal data. The worst an extension could do is set an ugly wallpaper.

API Usage Example

This example sets the wallpaper to a random image from an online source.

// background.js

chrome.action.onClicked.addListener(setRandomWallpaper);

async function setRandomWallpaper() {
  if (!chrome.wallpaper) {
    console.log('Wallpaper API is only available on ChromeOS.');
    return;
  }
  try {
    const imageUrl = 'https://picsum.photos/1920/1080';

    // First, fetch the image data as an ArrayBuffer
    const response = await fetch(imageUrl);
    const image_data = await response.arrayBuffer();

    // Now, set the wallpaper using that data
    await chrome.wallpaper.setWallpaper({
      data: image_data,
      layout: 'STRETCH',
      filename: 'random_wallpaper.jpg'
    });

    console.log('Wallpaper has been changed.');

  } catch (error) {
    console.error('Failed to set wallpaper:', error);
  }
}

Extensions with the wallpaper permission

Here are some popular browser extensions that use the "wallpaper" permission. To explore more, try our Advanced search.

Firefox Firefox add-ons with "wallpaper" permission

References


Related Permissions

  • This is a standalone permission.

Permission Metrics

Popularity

Security Risk


Usage by Platform