Re: installing GUI launchers and mimes

2017-07-31 Thread Narcis Garcia
At user level there is this command to set an application as default for a file type: $ xdg-mime default MyProgram.desktop my/type (not useful for system wide action) System wide defaults I see that are registered at some of these files: /usr/share/applications/mimeapps.list /usr/share/application

Re: installing GUI launchers and mimes

2017-07-31 Thread Narcis Garcia
__ I'm using this express-made address because personal addresses aren't masked enough at this mail public archive. Public archive administrator should fix this against automated addresses collectors. El 31/07/17 a les 03:23, Charles Plessy ha escrit: > Le Sun, Jul 30, 2017 at 11:55:20AM +0

Re: installing GUI launchers and mimes

2017-07-31 Thread Andrey Rahmatullin
On Mon, Jul 31, 2017 at 10:10:29AM +0200, Filip Hroch wrote: > I encountered the problem some time ago in my Munipack  > package.  What problem? -- WBR, wRAR signature.asc Description: PGP signature

Re: installing GUI launchers and mimes

2017-07-31 Thread Filip Hroch
Dear Narcis, I encountered the problem some time ago in my Munipack  package. I followed the recommendations on: https://wiki.debian.org/MimeTypesSupport If debhelper is used, the file 'transmission-gtk.install' in debian/ with the content like: ... usr/share/applications/xxx.desktop usr/share/

Re: installing GUI launchers and mimes

2017-07-31 Thread Andrey Rahmatullin
On Mon, Jul 31, 2017 at 09:46:40AM +0200, Narcis Garcia wrote: > I suppose "Debian menu system" is not the same as what xdg-desktop-menu > manages Yes, the former needs .menu files while the latter uses .desktop. -- WBR, wRAR signature.asc Description: PGP signature

Re: installing GUI launchers and mimes

2017-07-31 Thread Narcis Garcia
__ I'm using this express-made address because personal addresses aren't masked enough at this mail public archive. Public archive administrator should fix this against automated addresses collectors. El 31/07/17 a les 03:23, Charles Plessy ha escrit: > Le Sun, Jul 30, 2017 at 11:55:20AM +0

Re: installing GUI launchers and mimes

2017-07-30 Thread Charles Plessy
Le Sun, Jul 30, 2017 at 11:55:20AM +0200, Narcis Garcia a écrit : > > Do you mean that with only having at the package: > ./usr/share/applications/xxx.desktop > ./usr/share/mime/packages/xxx.xml > triggers are automatically run? Hello Narcis, yes they will: $ grep usr/share/applications

Re: installing GUI launchers and mimes

2017-07-30 Thread Andrey Rahmatullin
On Sun, Jul 30, 2017 at 11:55:20AM +0200, Narcis Garcia wrote: > Do you mean that with only having at the package: > ./usr/share/applications/xxx.desktop > ./usr/share/mime/packages/xxx.xml > triggers are automatically run? They should (I mean the triggers for update-mime-database and update-mime).

Re: installing GUI launchers and mimes

2017-07-30 Thread Narcis Garcia
El 30/07/17 a les 10:52, Andrey Rahmatullin ha escrit: > On Sun, Jul 30, 2017 at 10:30:46AM +0200, Narcis Garcia wrote: >> I'm observing how is transmission-gtk packaged and it seems that it's >> not enough with including files as >> ./usr/share/applications/xxx.desktop >> ./usr/share/mime/packages

Re: installing GUI launchers and mimes

2017-07-30 Thread Andrey Rahmatullin
On Sun, Jul 30, 2017 at 10:41:29AM +0200, Narcis Garcia wrote: > A question about my way before packaging: Is a good practice to use this > in postinst script? > echo "..." > /tmp/MyType.xml > xdg-mime install --mode system /tmp/MyType.xml > echo "..." > /tmp/My-Program.desktop > xdg-desktop-menu i

Re: installing GUI launchers and mimes

2017-07-30 Thread Andrey Rahmatullin
On Sun, Jul 30, 2017 at 10:30:46AM +0200, Narcis Garcia wrote: > I'm observing how is transmission-gtk packaged and it seems that it's > not enough with including files as > ./usr/share/applications/xxx.desktop > ./usr/share/mime/packages/xxx.xml > > but postinst script should run update-menus and

Re: installing GUI launchers and mimes

2017-07-30 Thread Narcis Garcia
A question about my way before packaging: Is a good practice to use this in postinst script? echo "..." > /tmp/MyType.xml xdg-mime install --mode system /tmp/MyType.xml echo "..." > /tmp/My-Program.desktop xdg-desktop-menu install --mode system /tmp/My-Program.desktop El 30/07/17 a les 10:30, Na

installing GUI launchers and mimes

2017-07-30 Thread Narcis Garcia
I'm observing how is transmission-gtk packaged and it seems that it's not enough with including files as ./usr/share/applications/xxx.desktop ./usr/share/mime/packages/xxx.xml but postinst script should run update-menus and update-mime (or update-mime-database) if available. It seems also that the