LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can anyone use system-config-printer-applet? (https://www.linuxquestions.org/questions/slackware-14/can-anyone-use-system-config-printer-applet-4175596992/)

Didier Spaier 01-07-2017 05:33 PM

Can anyone use system-config-printer-applet?
 
Installation of the package system-config-printer installs /etc/xdg/autostart/system-config-printer.desktop, which is supposed to run system-config-printer-applet but in KDE.

In turn this exec a python app: /share/system-config-printer/applet.py that is supposed to handle print jobs communicating with cups through DBus.

But I can't get this to work.

I would expect to see a printer icon in the tray at startup and don't.

If I run system-config-printer-applet as regular user I get:
Code:

didier[/usr/share/icons]$ system-config-printer-applet: failed to start NewPrinterNotification service
system-config-printer-applet: failed to start PrinterDriversInstaller service: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.116" is not allowed to own the service "com.redhat.PrinterDriversInstaller" due to security policies in the configuration file

This is probably due to a wrong setting in the cups config file. A process is running though:
Code:

didier[/usr/share/icons]$ ps -AF |grep system-config-printer
didier    4461  4383  2 72242 36968  1 00:27 pts/4    00:00:00 /usr/bin/python /usr/share/system-config-printer/applet.py

but I see no icon in the tray.

If I start X as root I do not get the error message but I still see no icon.

Any clue appreciated.

USUARIONUEVO 01-07-2017 05:57 PM

slackware version ?

Didier Spaier 01-07-2017 06:00 PM

14.2

bassmadrigal 01-07-2017 07:12 PM

According to this bug report that error can occur when the PrinterDriverInstaller dbus service is not installed. But I don't know much about dbus, so I don't know how to find out if it is installed.

Might be worth seeing if it is just an issue in the version of system-config-printer that is included in 14.2 (1.3.13). They have 1.5.8 out now. I just tried building it and it built fine (with just a regular ./bootstrap && ./configure && make), but I didn't try installing it since I don't have any printer hooked up to the machine. I imagine using the actual SlackBuild should work fine by just overriding the version number.

https://github.com/zdohnal/system-config-printer

system-config-printer-1.5.8.tar.gz

ChuangTzu 01-07-2017 07:24 PM

Didier,

Its working fine here (system-config-printer) on Salix 14.2 and Slackware 14.2. Did you make sure cups/cupsd is running?

USUARIONUEVO 01-07-2017 07:37 PM

stable or current ?

cause in "stable" , python-2.7.13 is bugged ....

bassmadrigal 01-07-2017 07:43 PM

Quote:

Originally Posted by USUARIONUEVO (Post 5651854)
stable or current ?

cause in "stable" , python-2.7.13 is bugged ....

14.2 is stable.

USUARIONUEVO 01-07-2017 08:08 PM

rebuild python , no need modify nothing, only build on your system, some problem detected with python in systems with more than one core cpu.


https://slackbuilds.org/mirror/slack...source/python/

Didier Spaier 01-08-2017 12:54 AM

Thanks for your answers.

So far, no luck.
  • Rebuilding && reinstalling python 2.7.13: no icon
  • Downgrading to python 2.7.11: no icon
  • Upgrading system-config-printer to 1.5.8: didn't work because /usr/share/system-config-printer/applet.py is now a python3 applet and pycups shipped in Slackware 14.2 only installs a python2 module, so importing the cups module fails.
I will investigate further later today.

What puzzles me is that it works for ChuangTzu. But to be sure:

@ChuangTzu: when you say "system-config-printer works" do you mean the full application (that also works here) or more specifically the applet? What happens if you type in a terminal system-config-printer-applet?

gmgf 01-08-2017 03:10 AM

system-config-printer-1.5.8 need python3 and python gtk+3 binding,

Didier Spaier 01-08-2017 03:18 AM

Yes Gérard, so I won't upgrade system-config-printer to 1.5.8.

gmgf 01-08-2017 03:23 AM

it work perfectly here, but i have all personal packages who are needed. ;)

Didier Spaier 01-08-2017 04:43 AM

Paquets perso ... Lesquels?

gmgf 01-08-2017 04:51 AM

sorry it's 1.5.7 here, i have trying to build 1.5.8, it seem that it need systemd.

des paquets que je fais pour moi ;)

bassmadrigal 01-08-2017 04:54 AM

Quote:

Originally Posted by gmgf (Post 5651980)
sorry it's 1.5.7 here, i have trying to build 1.5.8, it seem that it need systemd.

I was able to build it without systemd on 14.2, but I didn't try installing/running it. But, I just manually ran ./bootstrap && ./configure && make with no options. The make completed successfully.


All times are GMT -5. The time now is 09:54 PM.