Date: Thu, 19 Apr 2012 15:20:50 +0400 From: Boris Samorodov <bsam@passap.ru> To: Jeremy Messenger <mezz.freebsd@gmail.com>, gnome@freebsd.org Subject: Re: cvs commit: ports/devel/xdg-utils Makefile Message-ID: <4F8FF512.9090302@passap.ru> In-Reply-To: <CADLFtteK%2BK5GwtEv3hbFsvbbrmTtU023qoCAkYYfnMLK_sF2Vg@mail.gmail.com> References: <201204181931.q3IJVB9S020602@repoman.freebsd.org> <CADLFtteK%2BK5GwtEv3hbFsvbbrmTtU023qoCAkYYfnMLK_sF2Vg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
(adding gnome@ to CC: list) On 19.04.2012 00:07, Jeremy Messenger wrote: > Here's my logical. I look at xdg-icon-resource like make, gmake, > install and other build/install tool. So when one of application needs > something then add dependency in application, not gmake/install/etc. > It's same idea as with xdg-icon-resource, because it only does is > install stuff for applictions in the theme folder. If I understand this correctly then smth like INSTALL_DEPENDS may DTRT? > What if application want to install in the different theme? This is > where xdg-utils installs wrong dependency, which it should be taken > care of upper level (ie: djview4). I'm not sure if djview4 installs a different scheme. It installs it's icons, desktop file at a non-standard directory (this is done at current djview4 port) and than those icons and desktop files should be "registered" -- i.e. should be copied to a standard directory (this is the part missing at the current djview4 port). But registering is aborted because a standard directory is missing. > The xdg-icon-resource really should have create directories. You mean "If the directory does not exist the xdg-..."? I think that the directory is not created since there is no _one_ standard. I.e. /usr/, /usr/local/, /opt/, etc. are all different among unixes and linuxes. > I think > the xdg-utils stuff are a bit flawed. I got acquainted to xdg-utils for the fist time so do not have a strong opinion. > But..... The xdg-utils isn't wide use, so I don't really care at this > moment to have xdg-utils depends on hicolor-icon-theme. It's unlike we > will have application that want xdg-icon-resource installs in > different theme. Well, this is too hard for my English to parse. ;-) The goal -- to get an icon menu (at my fluxbox wm) after djview4 is installed. The overview -- the port installs all needed file but does not run a command to register it's attributes to an icon, a desktop database. OK, I did it. At my workstation all was OK. But testing at a tinderbox resulted with error. [1] Further investigation showed that a directory is missing. That directory at my workstation was installed by hicolor-icon-theme. So we have two ways. Either depends upon hicolor-icon-theme or create that directory while installing xdg-utils. BTW, maybe xdg-hier may be committed to create needed system-wide (unlike user's) directories? [1] After committing the path to xdg-utils I've got a new error for djview4 installing: ----- Run /usr/local/share/djvu/djview4/desktop/register-djview-menu install to register the djview3 menu entries. xdg-desktop-menu: No writable system menu directory found. *** Error code 3 ----- The full log is here: https://redports.org//~bsam/20120418194919-96537-20561/djview-4.8_1.log xdg-desktop-menu in system mode uses /usr/local/share/desktop-directories. Which directory is standard for desktop entries for FreeBSD? I mean not gnome, not kde, etc. but actually FreeBSD. As for me I use fluxbox as a wm. Sure I can create that directory while installing djview4, but I rather not to. -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F8FF512.9090302>