system-config-printer: fix "Print Test Page"
Wrap s-c-p with CUPS_DATADIR=${cups-filters}/share/cups so that it finds the "testprint" file needed for "Print Test Page" functionality. Without this change, s-c-p tries to open /usr/share/cups/data/testprint (fails).
This commit is contained in:
parent
59f04899aa
commit
90de10b3ee
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, fetchurl, udev, intltool, pkgconfig, glib, xmlto
|
{ stdenv, fetchurl, udev, intltool, pkgconfig, glib, xmlto
|
||||||
, makeWrapper, gtk3, docbook_xml_dtd_412, docbook_xsl
|
, makeWrapper, gtk3, docbook_xml_dtd_412, docbook_xsl
|
||||||
, libxml2, desktop_file_utils, libusb1, cups, gdk_pixbuf, pango, atk, libnotify
|
, libxml2, desktop_file_utils, libusb1, cups, gdk_pixbuf, pango, atk, libnotify
|
||||||
|
, cups-filters
|
||||||
, pythonPackages
|
, pythonPackages
|
||||||
, withGUI ? true
|
, withGUI ? true
|
||||||
}:
|
}:
|
||||||
@ -39,7 +40,9 @@ in stdenv.mkDerivation rec {
|
|||||||
giTypelibPath = stdenv.lib.makeSearchPath "lib/girepository-1.0" [ gdk_pixbuf.out gtk3.out pango.out atk.out libnotify.out ];
|
giTypelibPath = stdenv.lib.makeSearchPath "lib/girepository-1.0" [ gdk_pixbuf.out gtk3.out pango.out atk.out libnotify.out ];
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
export makeWrapperArgs="--set prefix $out --set GI_TYPELIB_PATH ${giTypelibPath}"
|
export makeWrapperArgs="--set prefix $out \
|
||||||
|
--set GI_TYPELIB_PATH ${giTypelibPath} \
|
||||||
|
--set CUPS_DATADIR ${cups-filters}/share/cups"
|
||||||
wrapPythonPrograms
|
wrapPythonPrograms
|
||||||
# The program imports itself, so we need to move shell wrappers to a proper place.
|
# The program imports itself, so we need to move shell wrappers to a proper place.
|
||||||
fixupWrapper() {
|
fixupWrapper() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user