! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
PATCH: Add Next background option
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfdesktop
Component:
General

Comments

Description Andre Miranda editbugs 2015-10-14 19:10:24 CEST
Created attachment 6480 
Patch

The title says it all.
Useful for users addicted to this option of Windows and too lazy to run xfdesktop --next.
Comment 1 Theo Linkspfeifer editbugs 2019-05-03 14:12:24 CEST
*** Bug 13674 has been marked as a duplicate of this bug. ***
Comment 2 Andre Miranda editbugs 2019-05-14 02:08:34 CEST
Created attachment 8518 
updated patch

This option only works if "Change the background" is enabled, perhaps it should be wise to hide or disable its menu item accordingly.
Comment 3 Andre Miranda editbugs 2019-05-14 02:19:25 CEST
The backdrop-cycle-enable prop is not global, but per screen/monitor/workspace.
The prop string is generated by xfdesktop_settings_generate_per_workspace_binding_string, idk if it's easy/possible to get this info at xfdesktop_file_icon_manager_populate_context_menu.
Comment 4 Theo Linkspfeifer editbugs 2019-05-15 19:18:12 CEST
Created attachment 8527 
proposed patch

How about this?
Comment 5 Andre Miranda editbugs 2019-05-17 00:12:43 CEST
(In reply to Theo Linkspfeifer from comment #4)
> Created attachment 8527 
> proposed patch
> 
> How about this?

Doesn't work as expected:
1 - Backdrop cycle is disabled
2 - Enable backdrop cycle
3 - Right click on desktop, there is no menu item to change the backdrop
4 - Restart xfdesktop
5 - Right click on desktop, now the menu item is there
6 - Disable backdrop cycle
7 - Right click on desktop,  the menu item is still there
8 - Restart xfdesktop
9 - Right click on desktop, now the menu item is gone
Comment 6 Andre Miranda editbugs 2019-05-17 00:19:36 CEST
This can be accomplished with Thunar Custom Actions:
Name: Next background
Command: xfdesktop --next
Icon: Actions Icons -> go-next
File Pattern: Desktop
Appears if selection contains: Directories

The drawbacks are:
- xfdesktop has to be restarted
- This changes the background of all monitors with cycle enabled
- The action is shown regardless of if any monitor has cycle enabled
Comment 7 Theo Linkspfeifer editbugs 2019-05-18 01:33:35 CEST
Created attachment 8532 
proposed patch

New try.
Comment 8 Theo Linkspfeifer editbugs 2019-05-18 01:44:27 CEST
Created attachment 8533 
Do not cycle backdrop twice

This patch eliminates an unneeded cycle event which also triggered a warning while spamming the cycle command via cli or menu.

(xfdesktop:11260): xfconf-WARNING **: 01:32:47.585: Failed to set property "xfce4-desktop::/backdrop/screen0/monitorVGA-1/workspace0/last-image": Operation was cancelled
Comment 9 Andre Miranda editbugs 2019-05-19 18:12:41 CEST
(In reply to Theo Linkspfeifer from comment #8)
> Created attachment 8533 
> Do not cycle backdrop twice
> 
> This patch eliminates an unneeded cycle event which also triggered a warning
> while spamming the cycle command via cli or menu.
> 
> (xfdesktop:11260): xfconf-WARNING **: 01:32:47.585: Failed to set property
> "xfce4-desktop::/backdrop/screen0/monitorVGA-1/workspace0/last-image":
> Operation was cancelled

I launched xfdesktop in a terminal and in another one ran "repeat 100 xfdesktop --next" (zsh), no warnings were printed. Is there another a way to reproduce?
Comment 10 Git Bot editbugs 2019-05-19 19:59:16 CEST
Theo Linkspfeifer referenced this bugreport in commit 1967da03f68984dcf3e24e51df4e0005f37b162e

Add Next Background option (Bug #12261)

https://git.xfce.org/xfce/xfdesktop/commit?id=1967da03f68984dcf3e24e51df4e0005f37b162e
Comment 11 Andre Miranda editbugs 2019-05-19 20:00:58 CEST
Working as expected for multiple monitors and workspaces, good job, thanks!
The second patch was also merged as discussed on #xfce-dev.

Bug #12261

Reported by:
Andre Miranda
Reported on: 2015-10-14
Last modified on: 2019-05-19
Duplicates (1):
  • 13674 [enh] Next Wallpaper Option

People

Assignee:
Eric Koegel
CC List:
2 users

Version

Version:
4.13.4

Attachments

Patch (1.96 KB, patch)
2015-10-14 19:10 CEST , Andre Miranda
no flags
updated patch (1.69 KB, patch)
2019-05-14 02:08 CEST , Andre Miranda
no flags
proposed patch (4.34 KB, patch)
2019-05-15 19:18 CEST , Theo Linkspfeifer
no flags
proposed patch (3.97 KB, patch)
2019-05-18 01:33 CEST , Theo Linkspfeifer
no flags
Do not cycle backdrop twice (731 bytes, patch)
2019-05-18 01:44 CEST , Theo Linkspfeifer
no flags

Additional information