Skip to content

Commit

Permalink
Change the wallpaper to save to the system wallpaper location.
Browse files Browse the repository at this point in the history
Makes it easier to switch between previously set wallpapers.
  • Loading branch information
fiferboy committed Oct 17, 2012
1 parent 4a79b77 commit 5567eff
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions wallpaper.h
Expand Up @@ -61,14 +61,13 @@ class Wallpaper : public QObject {
painter->fillRect(image.rect(), QBrush(pattern));
delete painter;

QDir dir(QDir::home().filePath(".config/mustr"));
QDir dir(QDir::home().filePath("MyDocs/.wallpapers"));
dir.mkpath(".");

QString filename = dir.filePath(base + ".png");
QString filename = dir.filePath("mustr_" + base + ".png");
image.save(filename);
m_backgroundItem.set(filename);

emit done();

}

signals:
Expand Down

0 comments on commit 5567eff

Please sign in to comment.