[Pkg-chromium-maint] Bug#805654: chromium: Please set CHROME_DESKTOP env variable in the wrapper
Dmitry Shachnev
mitya57 at debian.org
Fri Nov 20 18:02:47 UTC 2015
Package: chromium
Version: 46.0.2490.71-1
Dear chromium maintainers,
Chromium calls xdg-settings with its desktop name as the argument to check if it
is the default browser.
To get its desktop name, it uses the following code (function GetDesktopName()
in chrome/browser/shell_integration_linux.cc):
#else // CHROMIUM_BUILD
// Allow $CHROME_DESKTOP to override the built-in value, so that development
// versions can set themselves as the default without interfering with
// non-official, packaged versions using the built-in value.
std::string name;
if (env->GetVar("CHROME_DESKTOP", &name) && !name.empty())
return name;
return "chromium-browser.desktop";
#endif
On Debian, the desktop name is chromium.desktop, not chromium-browser.desktop,
so we need to export CHROME_DESKTOP env variable in /usr/bin/chromium wrapper
to make the above code work.
According to the debian/changelog entry for version 9.0.597.83~r72435-1,
there used to be such code there, but it looks like it was removed later.
--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-chromium-maint/attachments/20151120/8a7e61f1/attachment.sig>
More information about the Pkg-chromium-maint
mailing list