Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Howto add DBUS call flags in qtdbus (eg. ALLOW_INTERACTIVE_AUTHORIZATION)
Forum Update on Monday, May 27th 2025

Howto add DBUS call flags in qtdbus (eg. ALLOW_INTERACTIVE_AUTHORIZATION)

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtdbusdbus
1 Posts 1 Posters 936 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jjacobsohn
    wrote on 11 Mar 2016, 12:04 last edited by jjacobsohn 3 Nov 2016, 12:04
    #1

    I'm trying to send a method call from an unprivileged process to systemd using qtdbus. Unfortunately I get an InteractiveAuthorizationRequired error:

    QDBusMessage(type=Error, service="", error name="org.freedesktop.DBus.Error.InteractiveAuthorizationRequired", error message="Interactive authentication required.", signature="", contents=([]) )
    

    That is because I did not send a ALLOW_INTERACTIVE_AUTHORIZATION flag with the message. Trying the same request with busctl with --allow-interactive-authorization=false and --allow-interactive-authorization=true yields the same result.

    How can I set the ALLOW_INTERACTIVE_AUTHORIZATION flag with qtdbus? I know there is a sd_bus_message_set_allow_interactive_authorization method in sd-bus, is there something similar in qtbus?

    1 Reply Last reply
    0

    1/1

    11 Mar 2016, 12:04

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved