Open qpdfview from commandline into presentation mode

Asked by Michael Becker

Hi,

i'll try open qpdfview from commandline into presentation mode.
In the Question 404154 https://answers.launchpad.net/qpdfview/+question/404154 is a Python script. But the script dosn't work.

Error:
python pdf_open.py /home/pi/Desktop/FILENAME.pdf
Traceback (most recent call last):
  File "pdf_open.py", line 14, in <module>
    proxy = bus.get_object('local.qpdfview', '/MainWindow')
  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name local.qpdfview was not provided by any .service files

OS: Raspbian Buster

Any Idea?

Question information

Language:
English Edit question
Status:
Expired
For:
qpdfview Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Adam Reichold (adamreichold) said :
#2

Hello Michael,

sorry for the late repy: The exceptions seems to indicate that qpdfview is not registered on the session D-Bus, did you start it using the --unique command line option? Otherwise it will not register the local bus name.

Best regards,
Adam