Le Fri, Apr 06, 2012 at 04:14:49PM -0800, Christopher Howard a écrit :
> Hi. I have source code that comes with a freedesktop-style .desktop file
> and svg icon. I know they need to go in /usr/share/applications and
> /usr/share/pixmaps (respectively). In the deb package which I am making,
> what should I put in the deb's "rules" file so that these are properly
> installed?

Dear Christopher,

thanks to dpkg triggers, everything needed is run when dpkg detects that it
adds a file in /usr/share/applications.

$ grep applications /var/lib/dpkg/triggers/File 
/usr/share/applications gnome-menus
/usr/share/applications desktop-file-utils

You only need to install the files like any other files.  Developers using
debhelper would for instance use dh_install(1) for this.  Note that since
/usr/share/applications and /usr/share/pixmaps are standard directories, it
would be best that "make install" simply install them at the same time as the
other files.

Have a nice week-end,

-- 
Charles Plessy
Tsurumi, Kanagawa, Japan


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120407003246.gb3...@falafel.plessy.net

Reply via email to