URI scheme for actors without a .desktop file

Bug #683847 reported by Mikkel Kamstrup Erlandsen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zeitgeist Framework
Opinion
Wishlist
Unassigned

Bug Description

What should actors that don't have a .desktop file use as their actor URI? Currently we use application://$desktop_file_id which is very nice to wrok with because one can do g_desktop_app_info_new($desktop_file_id).

I propose we define a similar scheme in our API docs where services and daemons without .desktop files can use the basename of their DBus .service file instead and put that in a dbus:// URI scheme ala dbus://$dbus_service_id.

Consider the example of the Ubuntu One syncdamon. The DBus service files are normally stored in /usr/share/dbus-1/services/ and it has indeed com.ubuntuone.SyncDaemon.service stored there. This daemon would then have actor URI dbus://com.ubuntuone.SyncDaemon.service.

This is useful because it allows me to obtain both the executable name of the daemon process as well as the DBus name it claims. Together with the service file this gives me 3 pieces of crucial metadata on the actor.

Revision history for this message
Markus Korn (thekorn) wrote :

completely agree, 'officially' adding a 'dbus://'-scheme would also solve the issue of the telepathy dataprovider where we (until now) are not sure which value to use in the actor field.

Changed in zeitgeist:
importance: Undecided → Wishlist
milestone: none → 0.7.0
status: New → Triaged
Revision history for this message
Seif Lotfy (seif) wrote : Re: [Bug 683847] Re: URI scheme for actors without a .desktop file

This opens up topic where subject uri is a mail address for a contact logged
by telepathy
I would like to use "person://" prefix so <email address hidden> will be person://
<email address hidden>

On Sun, Dec 5, 2010 at 7:20 PM, Markus Korn <email address hidden> wrote:

> completely agree, 'officially' adding a 'dbus://'-scheme would also
> solve the issue of the telepathy dataprovider where we (until now) are
> not sure which value to use in the actor field.
>
> ** Changed in: zeitgeist
> Importance: Undecided => Wishlist
>
> ** Changed in: zeitgeist
> Status: New => Triaged
>
> ** Changed in: zeitgeist
> Milestone: None => 0.7.0
>
> --
> You received this bug notification because you are subscribed to
> Zeitgeist Framework.
> https://bugs.launchpad.net/bugs/683847
>
> Title:
> URI scheme for actors without a .desktop file
>
> Status in Zeitgeist Framework:
> Triaged
>
> Bug description:
> What should actors that don't have a .desktop file use as their actor URI?
> Currently we use application://$desktop_file_id which is very nice to wrok
> with because one can do g_desktop_app_info_new($desktop_file_id).
>
> I propose we define a similar scheme in our API docs where services and
> daemons without .desktop files can use the basename of their DBus .service
> file instead and put that in a dbus:// URI scheme ala
> dbus://$dbus_service_id.
>
> Consider the example of the Ubuntu One syncdamon. The DBus service files
> are normally stored in /usr/share/dbus-1/services/ and it has indeed
> com.ubuntuone.SyncDaemon.service stored there. This daemon would then have
> actor URI dbus://com.ubuntuone.SyncDaemon.service.
>
> This is useful because it allows me to obtain both the executable name of
> the daemon process as well as the DBus name it claims. Together with the
> service file this gives me 3 pieces of crucial metadata on the actor.
>
>
>

--
This is me doing some advertisement for my blog http://seilo.geekyogre.com

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

On 5 December 2010 19:32, Seif Lotfy <email address hidden> wrote:
> This opens up topic where subject uri is a mail address for a contact logged
> by telepathy
> I would like to use "person://" prefix so <email address hidden> will be person://
> <email address hidden>

As discussed on IRC I think we should stick to existing standards when
they are there. In this case there are two. The mailto: and tel:
schemes defined in the IANA URI schemes.

This leaves open the case where we don't have an email address or a
telephone number, but let's consider that a special case.

Seif Lotfy (seif)
Changed in zeitgeist:
status: Triaged → Opinion
Revision history for this message
Morten Mjelva (mortenmjelva) wrote :

Not having an email address is not a special case when it comes to IM service identifiers. Many of the most popular services, such as Skype and AIM, use other types of identifiers.

As mailto:// is only to be used for valid email addresses, I'd say it's insufficient for our needs.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.