Libertà di conoscenza

Qualche tempo fa mi capitò una cosa interessante, mentre leggevo in giro qualcosa da fare con il mio Nokia N9: capitai su un blog, EveryThingN9, e inizia a leggere di un’applicazione (contactLaunch) che permetteva di aggiungere dei contatti al menù delle applicazioni.

screenshot
screenshot

Il post è questo.

In realtà il programma già lo conoscevo, ma ero più che altro curioso, dato che è a pagamento, di sapere come avesse fatto il programmatore ad aggiungere il collegamento, sapendo che gli elementi del menù si trovano in due posizioni: quelli di sistema nella cartella /usr/share/applications, quelli personali in /home/user/.local/share/applications (vedi qui).
Fondamentalmente non stavo chiedendo nulla di strano/segreto, dato che se avessi installato l’applicazione (magari senza pagarla) avrei avuto risposta alla mia domanda!! Il mio scopo ovviamente era quello di riuscire a gestire file di questo tipo a mano, senza usare l’applicazione a pagamento. 😛

Dato che la struttura dei file .desktop (i file dei link) è più o meno nota, basta digitare nel terminale ad esempio cat simatk.desktop per ottenere

[Desktop Entry]
Version=1.0
Name=WIND Servizi
Comment=Manage SIM services
Exec=/usr/bin/simatkmenu
Icon=icon-l-sim-services
Terminal=false
Type=Application

a me serviva solamente da sapere cosa avesse messo nella riga che iniziava con Exec= (quella evidenziata in grassetto).

Riporto qui la discussione che ho avuto con l’autore dell’articolo, Shaun:

andynaz: I’d like to know what file are created by this application. if it is a launcher it should be in one of the forlders with the laucher, /usr/share/applications/ or /home/user/.local/share/applications/
is it possible to have the code of the file created? 🙂

Shaun: it is a file in /home/user etc, but as it is a paid app, I’m not too sure if the author of the program would want his method getting out. Too much of a morality issue, sorry!

andynaz: well, as it is an open system, I don’t think it was a top secret, also because the link is a text readable file… also the structure of this file is known… actually I only need to know the line which began with Exec=, which is the path of the address book application…
I don’t think it is a secret, even if the application is sold in the Ovi Store 🙁

Shaun: I understand your point, but as it wasn’t myself that created the app, I don’t know how the author would feel if I gave somebody else his work. It’s not something I want to get involved in.

Maybe get in contact with him directly? http://talk.maemo.org/showthread.php?t=79968 the first poster in that thread. Otherwise you may have to pay for the app

andynaz: I feel like Stallman against the printer vendor, as I think that knowledge should be free (and free of charge). 🙁

However, thank you for the above link to the discussion, in which the author gave the first release of the app with the source code, I’ve found the answer to my question… thanks 🙂

Intendiamoci, la sua obbiezione è, in un certo senso, capibile: non sono io che ho fatto l’applicazione, per cui non rilevo informazioni “riservate”. Quello che è secondo me assurdo è che non c’è nessun segreto, dato che, come ho risposto (ad uso e consumo di altri), l’autore permette ancora il download della prima versione compilata e ha addirittura rilasciato il suo codice sorgente (che peraltro ho trovato grazie al link dell’autore del post), per cui ho potuto trovare quello che mi serviva:

Exec=dbus-send --type=method_call --dest=com.nokia.contacts / com.nokia.maemo.meegotouch.ContactsInterface.openContactCard int32:" << number << "

Ora, di sicuro non ho capito nulla di quello che c’è scritto (me lo devo ancora studiare, soprattutto il numerino che identifica l’utente), ma almeno ora lo so!! Che segreto è una cosa che tutti possono scoprire??? 😀

Praticamente è una funzione che si trova da qualche parte nella documentazione di chissà quale componente!!
Quello che mi ha lasciato l’amaro in bocca, oltre al fatto di dover girovagare per i forum per capire cosa ci fosse scritto in quel cavolo di comando, è stato soprattutto il fatto che molti non capiscono il concetto di “filosofia open“, per cui è la conoscenza che deve girare senza limiti!!

Ora sono pronto a capire come si trova il numero identificativo del contatto, e metterlo in quel posto!!! 😀

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *