Re: CLI interface in the works, anyone interested?



On 2010-03-11 04:40, Debarshi Ray wrote:
>> So, for detection, we could call get_object for both tomboy and gnote,
>> verify if they raise an exception and base our guess on this.
>> Does anyone know enough about dbus to confirm that doing this is a sane
>> thing way to use get_note?
> 
> This is what I would do if I had to make a guess when the user did not
> specify anything.
> 

I asked about this around the #dbus channel over on irc but they just
ignored my questions .. So I didn't get any technical validation on
doing application discovery through dbus.

But! I've made the modification to add autodetection in Tomtom. After a
quick test, it seemed like it was working well.

Tomtom now automatically determines which one of Tomboy and Gnote to
use. In fact, it simply verifies their prensence and chooses an
application if there is only one. If 0 or both applications are present,
an error will be given to the user.

There is one quirk with my implementation: If both applictions are
installed, the call to get the application objects (with which I
validate presence of an application) will start up both Tomboy and Gnote
before outputting an error message.

So now that it's becoming easier to use for people who use Gnote, I
would need some volunters to test it out and report any issues you find.

Enjoy! [and now, on to the configuration file addition...]

-- 
Gabriel Filion


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]