Bug 416108 - More user-friendly and discoverable terminal interface for changing wallpaper
Summary: More user-friendly and discoverable terminal interface for changing wallpaper
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Image & Slideshow wallpaper plugins (show other bugs)
Version: master
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-11 06:07 UTC by accounts
Modified: 2022-08-11 13:41 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.24
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description accounts 2020-01-11 06:07:17 UTC
It would be nice if a sane terminal interface for changing the background/lockscreen image was provided, since the current solution requires the user to know plasmashell scripting which can't be expected of new users.

Examples:
ksetbg --display-x --stretch image.jpeg
ksetbg --lockscr --fit image.jpeg

Old way:
dbus-send --session --dest=org.kde.plasmashell --type=method_call /PlasmaShell org.kde.PlasmaShell.evaluateScript 'string:
var Desktops = desktops();                                                                                                                       
for (i=0;i<Desktops.length;i++) {
        d = Desktops[i];
        d.wallpaperPlugin = "org.kde.image";
        d.currentConfigGroup = Array("Wallpaper",
                                    "org.kde.image",
                                    "General");
        d.writeConfig("Image", "file:///PATH/TO/IMAGE.png");
}'
Comment 1 Nate Graham 2020-01-12 16:34:50 UTC
> which can't be expected of new users.
Well, new users don't use the terminal to change their wallpaper, they use the GUI. :)

Still, seems like a valid request.
Comment 2 Nate Graham 2022-05-06 18:43:42 UTC
We have the plasma-apply-wallpaperimage tool now! That should do the trick.
Comment 3 Roke Julian Lockhart Beedell 2022-08-11 13:41:30 UTC
(In reply to Nate Graham from comment #2)
> We have the plasma-apply-wallpaperimage tool now! That should do the trick.

I don't believe that that tool entirely remediates this problem, because it solely allows the user to apply an image, rather than merely colour or the additional options that the graphical interface does. I believe that such a tool should really possess feature-parity with its graphical counterpart.