From owner-freebsd-desktop@FreeBSD.ORG Sat Jun 2 18:01:28 2012 Return-Path: Delivered-To: desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31072106566B; Sat, 2 Jun 2012 18:01:28 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3E2238FC15; Sat, 2 Jun 2012 18:01:23 +0000 (UTC) Received: by bkvi18 with SMTP id i18so3462757bkv.13 for ; Sat, 02 Jun 2012 11:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=vPBfJniSxpeWvIGeWZdK9kZeRj0qqs3l/N+aNysUlGA=; b=qj413bUwsfkOYddfZj9VXQENxzB/46MPQXEGvYAmDnMrNPJSJ0ce/Z64KJEOu/pLgp 0GoD5xRiY2NMyAjRAWhIcBljyknkC4uq+QVNTMSqqZUYGY++r92tQp8uUCwzUBaxYvDa piqAi+IoADk/oIXW8Pn7mpdsbw0row3Gm5oAGoTfL5SUvJUxBGPwfVeoxHrQXMlb/3nh 4nTxDKlN3pM1OEX3Y434ZeTXzPquzPFQy6smbDzOT1MF4PXRGQHrgjzdQfnpbwfD0BuA 5N9v0c7tldO3Lm8XmKCb92EEVmoLOxy6f1vg3A9ip25fpE/MPl8jR1uSScMwXow04Lzy NvRg== Received: by 10.205.133.13 with SMTP id hw13mr3916135bkc.30.1338660083001; Sat, 02 Jun 2012 11:01:23 -0700 (PDT) MIME-Version: 1.0 Sender: villa.alberto@gmail.com Received: by 10.205.38.14 with HTTP; Sat, 2 Jun 2012 11:01:02 -0700 (PDT) In-Reply-To: <4FC8ECE7.6070608@neo-zeon.de> References: <4FC8ECE7.6070608@neo-zeon.de> From: Alberto Villa Date: Sat, 2 Jun 2012 20:01:02 +0200 X-Google-Sender-Auth: bdxd3KfiYEGDV_C9E-byBdw-T_8 Message-ID: To: Cameron Berkenpas Content-Type: text/plain; charset=ISO-8859-1 Cc: Koop Mast , desktop@freebsd.org, kde@freebsd.org Subject: Re: [kde-freebsd] kde4 related bug X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jun 2012 18:01:28 -0000 On Fri, Jun 1, 2012 at 6:25 PM, Cameron Berkenpas wrote: > I'm not sure if this is the correct place to report bugs (this is my 1st > time reporting an issue relating to FreeBSD) so feel free to direct me to > the correct place. It's OK. Reporting a bug would have been fine too: http://www.freebsd.org/support/bugreports.html > I'm seeing an issue where if I drag entries from the Applications menu to > the desktop in KDE 4.8.3 (I've seen this issue with KDE 4.7.x in FreeBSD > too), I get an icon with an exclamation point. If I double click on the > icon, it attempts to run the application directly from my home directory and > I get 2 popup windows. > > The 1st window states: > "This will start the program: > /home/username/pidgin > If you do not trust this program, click Cancel" > > Then when I click continue I get: > "Unable to make the service Pidgin executable, aborting execution" > > Note that the exclamation point remains. > > I did some digging and the issue is that the icons are being created in > /home/username/Desktop with 444 permissions (and sometimes 644). To fix the > issue, the permissions need to be 755 (presumably 555 would work too). > > I found that the permissions are being copied along with the icons from > /usr/local/share/applications/ (so my umask of 022 is ignored). All the > icons in /usr/local/share/applications/ are 444 (except for 2 which were > 644). I "fixed" the issue by setting the permissions of > /usr/local/share/applications/*.desktop to 755. Now I can copy icons from > the applications menu without issue. This is a problem with the pidgin port (and presumably others), which uses ${INSTALL_DATA} to install the file manually, and that doesn't obviously add the execution bit. > Note: Icons from other directories where the icons already have 755 > permissions work with no changes (ie > /usr/local/kde4/share/applications/kde4). Rules for their installation are inside the tarball, not our own. > Not sure if the bug is that the icons under /usr/local/share/applications/ > need to be created with 755 permissions or if KDE needs to not require > executable permissions on files it doesn't directly execute (*.desktop > files). I wouldn't call this a bug. Anyway, *.desktop files should probably be installed with execution bit. KDE behaves just fine warning you with the exclamation mark. I agree that a more useful error message could be reported, but that's not the point here. I'm forwarding this to desktop@ as it's something to be discussed with other parties. kwm@, especially. Should we use ${INSTALL_SCRIPT} for *.desktop files? -- Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla