From owner-freebsd-gnome@FreeBSD.ORG Thu Apr 19 11:20:54 2012 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3AAFA106566B for ; Thu, 19 Apr 2012 11:20:54 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward13.mail.yandex.net (forward13.mail.yandex.net [IPv6:2a02:6b8:0:801::3]) by mx1.freebsd.org (Postfix) with ESMTP id 3FD7F8FC0C for ; Thu, 19 Apr 2012 11:20:53 +0000 (UTC) Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [95.108.130.68]) by forward13.mail.yandex.net (Yandex) with ESMTP id 8E356142AAD; Thu, 19 Apr 2012 15:20:51 +0400 (MSK) Received: from smtp13.mail.yandex.net (localhost [127.0.0.1]) by smtp13.mail.yandex.net (Yandex) with ESMTP id 6EA76E40447; Thu, 19 Apr 2012 15:20:51 +0400 (MSK) Received: from 87.249.28.58.tel.ru (87.249.28.58.tel.ru [87.249.28.58]) by smtp13.mail.yandex.net (nwsmtp/Yandex) with ESMTP id KoASo8gk-KpAS98uo; Thu, 19 Apr 2012 15:20:51 +0400 Message-ID: <4F8FF512.9090302@passap.ru> Date: Thu, 19 Apr 2012 15:20:50 +0400 From: Boris Samorodov User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:10.0.1) Gecko/20120214 Thunderbird/10.0.1 MIME-Version: 1.0 To: Jeremy Messenger , gnome@freebsd.org References: <201204181931.q3IJVB9S020602@repoman.freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: cvs commit: ports/devel/xdg-utils Makefile X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2012 11:20:54 -0000 (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