FS#21337 - [system-config-printer-gnome] does not work

Attached to Project: Arch Linux
Opened by Daniel Apolinario (dapolinario) - Tuesday, 19 October 2010, 13:54 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 19 October 2010, 17:26 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
system-config-printer does not work. The program is looking for a GUI / usr / local / share / system-config-printer / ui / AboutDialog.glade instead of / usr / share / system-config-printer / ui / AboutDialog.glade (the local directory not part of the way).

Additional info:
* package version(s): system-config-printer-gnome 1.2.5-2; system-config-printer-common 1.2.5-2.

Steps to reproduce:
[daniel@daniel-laptop ~]$ system-config-printer
Traceback (most recent call last):
File "/usr/share/system-config-printer/system-config-printer.py", line 7209, in <module>
focus_on_map)
File "/usr/share/system-config-printer/system-config-printer.py", line 7157, in main
print_test_page, focus_on_map)
File "/usr/share/system-config-printer/system-config-printer.py", line 363, in __init__
domain=domain)
File "/usr/share/system-config-printer/gui.py", line 39, in getWidgets
bld.add_from_file (os.path.join (ui_dir, xmlfile + ".glade"))
glib.GError: Falha ao abrir arquivo "/usr/local/share/system-config-printer/ui/AboutDialog.glade": Arquivo ou diretório não encontrado

This task depends upon

Closed by  Andrea Scarpino (BaSh)
Tuesday, 19 October 2010, 17:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  system-config-printer-common 1.2.5-3
Comment by Andrea Scarpino (BaSh) - Tuesday, 19 October 2010, 14:45 GMT
this is because into the 1.2.5 package, /usr/share/system-config-printer/config.py looks in this way:
prefix="/usr/local"
datadir="/usr/local/share"
localedir="/usr/local/share/locale"
pkgdatadir="/usr/local/share/system-config-printer"

...and I don't know why
Comment by Rémy Oudompheng (remyoudompheng) - Tuesday, 19 October 2010, 16:05 GMT
You get the correct file if you replace "python2 setup.py build" in build() by just "make".
Comment by Daniel Apolinario (dapolinario) - Tuesday, 19 October 2010, 16:15 GMT
Apparently "python2 setup.py build" and "python2 setup.py install - root =" $ {PKGDIR} "" is not doing the job correctly, but the "make DESTDIR =" $ {PKGDIR} "install" yes. Try to keep the config.py file in the package "system-config-printer-gnome", it is created correctly.

Loading...