Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gThumb gThumb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 129
    • Issues 129
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • gThumbgThumb
  • Merge requests
  • !37

feat: "Set as Background" for KDE

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Surya Teja K requested to merge shanmukhateja/gthumb:feat-set-bg-kde into master May 13, 2022
  • Overview 0
  • Commits 1
  • Changes 1

First time contributor here! MR inspired from #158 but for KDE.

Proposed Solution:

In KDE, we need to use D-Bus with JS code to update wallpaper for desktops. I noticed this technique is being used in several projects.

Please note that, I tried g_dbus APIs for this but although the request went through, the wallpaper wasn't being updated for unknown reasons. Hence, I resorted to g_spawn_command_line_async + dbus-send.

Quirks:

I have hidden "Undo" and "Preferences" buttons from Info bar after setting the wallpaper in KDE for the following reasons:

  1. Unable to trigger Undo action after setting wallpaper because we can't read old_style from Plasma programatically. Please find reference here from KDE Contributor's comment here

  2. Couldn't find a way to show Wallpaper Settings from terminal. Hence, Preferences button had to go for KDE.

I don't know C at all and my GTK skills are equally bad.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: feat-set-bg-kde