Bug 126640 - system-config-printer crashes after intalling Samsung CLP500 printer driver
Summary: system-config-printer crashes after intalling Samsung CLP500 printer driver
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer (Show other bugs)
(Show other bugs)
Version: 2
Hardware: i686 Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2004-06-24 03:56 UTC by James Tidman
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-12-20 12:13:21 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description James Tidman 2004-06-24 03:56:16 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6)
Gecko/20040206 Firefox/0.8

Description of problem:
Installed Samsung CLP500 driver (CLP-500 i386 Linux Driver
(ver.1.1.2-7)).  system-config-printer then fails to load.  Determined
that it was an exception when parsing the output of
"/usr/sbin/alternatives --display print".  On my system it returns "
link currently points to /usr/local/linuxprinter/bin/llpr" and causes
an exception when this is parsed by the line of code "which = l.split
('.')[1].strip ()".  Adding a try block which assigns a default to
"which" allows the program to continue:

        f = os.popen ('/usr/sbin/alternatives --display print')
        for l in f.readlines ():
            if l.startswith (" link currently points to"):
                # JT
                    which = l.split ('.')[1].strip ()
                    which = "cups"

This issue occurs in three source codes:


Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Install Samsung CLP500 printer driver
2. run system-config-printer

Actual Results:  Get python exceptions.

Expected Results:  The configuration window should have opened.

Additional info:

Comment 1 Tim Waugh 2004-06-28 09:59:45 UTC
llpr is not a spooler that system-config-printer knows how to
configure.  Use the configuration tool that came with your 3rd party

Comment 2 James Tidman 2004-06-29 02:45:43 UTC
I understand your point of view.  But if I install any valid software
that causes a system-application to crash with an exception, its a
bug, plain and simple.  

Comment 3 Edward Kuns 2004-12-16 16:52:59 UTC
The fix above works for me.  I also have a Samsung printer.  The
default python code breaks all printing.  The fix above allows all
printers to work, so far as I have tested.  I've had this problem with
FC1 and FC3 (I skipped FC2 on this box).

Comment 4 Tim Waugh 2004-12-20 12:13:21 UTC
I think this should work with the Fedora development code, since that section of
Python is no longer executed.

Note You need to log in before you can comment on or make changes to this bug.