Opened 11 years ago

Closed 10 years ago

#1019 closed enhancement/feature request (Incomplete/Missing infos)

Displaying message sent from external application

Reported by: bino Owned by: Singesang
Priority: minor Milestone: want patch / contribution
Component: osd/core Version: git master
Severity: Keywords: dbus, cli, IPC


Bassicaly, I need Navit to also display a Message sent/generated by external application.

I try dbus as posted at pastebin : But it faild, that script generate 'a{sv}' as signature while according line 1595 of binding_dbus.c it have "sv" AFAIK to change attribute to an OSD item we need to set at leat :

  • item name (string ?)
  • attribute name (string ?)
  • attribute value (string ?)

But How ?

Another try : I'm thinking of changing the content of a single PNG file (i.e mylogo.png), and let navit to refresh it. I try this using type=cmd_filter with update_period=1 , but it also didn't work.

<osd name="refreshthis" enabled="yes" x="0" y="0" 
    command='osd[@name==refreshthis].src="mylogo.png"' />

It fails, since the file name is always the same anytime that osd item triged, any lookslike navit don't re-read .

request for enhancement : Add a new osd type , i.e : refresh_image, that will called by something like :

<osd name="refreshthis" enabled="yes" x="0" y="0" 
    src='toberead.png' />

And when it triged, it will re-read the file stated by 'src', and place it on screen.

With this kind of solution, any one can display on-demand message as long as he/she can play with imagemagick's 'convert' or it's libs.

Change History (1)

comment:1 Changed 10 years ago by usul

  • Keywords dbus cli IPC added; ondemand text from external removed
  • Priority changed from major to minor
  • Resolution set to Incomplete/Missing infos
  • Status changed from new to closed

Please recheck your request against this docs:
IMHO this could be realized with sendmessage?

If not, please give us more details on your specific usecase and try to describe what you want to realize.

Note: See TracTickets for help on using tickets.