Date: Sat, 19 Jan 2013 17:30:01 GMT From: The BSD Dreamer <beastie@tardisi.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/175369: Chromimum Desktop Integration doesn't open URLs Message-ID: <201301191730.r0JHU1hm062970@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/175369; it has been noted by GNATS. From: The BSD Dreamer <beastie@tardisi.com> To: bug-followup@FreeBSD.org, beastie@tardisi.com Cc: Subject: Re: ports/175369: Chromimum Desktop Integration doesn't open URLs Date: Sat, 19 Jan 2013 11:24:40 -0600 Didn't quite fully solve the desktop integration, and reading http://www.freebsd.org/gnome/docs/porting.html decided the better course of action would be to provide a 'chromium-browser.desktop'. This fixes chromium seeing that its the default browser, and should allow it make itself the default browser. It also makes the "Create Application Shortcut" work. --- Makefile.orig 2013-01-10 19:50:26.000000000 -0600 +++ Makefile 2013-01-19 08:42:45.893220392 -0600 @@ -50,9 +50,6 @@ USE_PKGCONFIG= build MAN1= chrome.1 -DESKTOP_ENTRIES="Chromium" "${COMMENT}" "${DATADIR}/product_logo_48.png" \ - "chrome" "Application;Network;WebBrowser;" true - ALL_TARGET= chrome # See build/common.gypi for all the available variables. @@ -187,6 +184,9 @@ .endfor cd ${WRKSRC}/out/${BUILDTYPE} && \ ${COPYTREE_SHARE} "locales resources" ${DATADIR} + ${MKDIR} ${PREFIX}/share/applications + ${INSTALL_DATA} ${FILESDIR}/chromium-browser.desktop \ + ${PREFIX}/share/applications ${LN} -sf ${DATADIR}/chrome ${PREFIX}/bin post-install: @@ -194,5 +194,6 @@ @${ECHO_MSG} "For best performance please enable shared memory support" @${ECHO_MSG} "in chromium by setting kern.ipc.shm_allow_removed=1" @${ECHO_MSG} "========================================================" + -@update-desktop-database .include <bsd.port.post.mk> --- pkg-plist.orig 2013-01-10 19:50:26.000000000 -0600 +++ pkg-plist 2013-01-18 09:58:10.615220943 -0600 @@ -1,4 +1,5 @@ bin/chrome +share/applications/chrome.desktop %%DATADIR%%/chrome %%DATADIR%%/chrome-wrapper %%DATADIR%%/chrome.pak @@ -256,3 +257,5 @@ @dirrm %%DATADIR%%/resources/extension @dirrm %%DATADIR%%/resources @dirrm %%DATADIR%% +@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true +@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true --- files/chromium-browser.desktop.orig 1969-12-31 18:00:00.000000000 -0600 +++ files/chromium-browser.desktop 2013-01-19 08:42:30.244793302 -0600 @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Version=1.0.0 +Encoding=UTF-8 +Name=Chromium +Comment=A mostly BSD-licensed web browser based on WebKit and Gtk+ +Icon=/usr/local/share/chromium/product_logo_48.png +Exec=chrome %U +Categories=Application;Network;WebBrowser; +MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp; +StartupNotify=true
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301191730.r0JHU1hm062970>