Printing to Google Cloud Print from GTK+

January 31st, 2014

I’ve been working on a Google Cloud Print GTK+ print module.

Google Cloud Print is a web service provided by Google that allows people to share their printers. In addition to being able to print to printers shared that way, there is a cloud equivalent of “Print to file” in the form of “Save to Google Drive”.

Here is a screenshot of the print dialog (from gedit) with this module included:


The cloudprint module uses gnome-online-accounts to obtain the OAuth 2.0 access token for the Google account, which is why the Google goa backend needs an additional scope.

Currently it can discover available printers, get simple details about them such as display name and status, and submit jobs without any special options. I plan to add options-setting based on the capabilities advertised by the printer.

To try it out you’ll need to patch gnome-online-accounts and gtk+.

Typing breaks in GNOME

November 14th, 2013

input-keyboard-100For quite a while now I’ve used the drwright application to configure typing breaks. Once every so often, the desktop would refuse keyboard input and tell me to go and walk around for a few minutes instead. This helps to prevent RSI and other problems.

Since Fedora 19, though, drwright is no longer usable. No matter, I switched to Workrave as that is a similar application although with more tweakable options than I needed.

But now in Fedora 20 (currently in Beta) the problem of not being able to adjust configuration settings has affected Workrave as well! This time it’s a different bug, but not being able to right-click and get a context menu on the icon makes it pretty hard to use.

Doesn’t anyone else set typing breaks?

lp on bonfire (Printing Test Day)

October 30th, 2013

test-day-100Next Tuesday (5th of November — should be easy to remember) is the Printing Test Day for Fedora 20. Let’s all try to break printing at the same time in strange and unusual ways!

If you have access to a printer that day, take a look at the Test Day page for instructions on the sorts of things to try. This time we’ll be using the Testday App for submitting results rather than making people have to edit the wiki page.

Read the rest of this entry »

CUPS: adding support for system journal

October 25th, 2013

I’ve added a patch to CUPS in Fedora rawhide which uses the system journal for logging. I did this after watching Lennart’s devconf talk, which reminded me how awesome the systemd Journal is.

The changes are very simple at the moment: any log message relating to a particular job has a field “CUPS_JOB_ID” to say which one. Additionally, page log messages include the page number as “CUPS_PAGE_NUMBER”. This support is in rawhide, starting with cups-1.7.0-1.fc21.

To enable it, adjust /etc/cups/cups-files.conf and set “ErrorLog journal”. You can also set AccessLog and PageLog to “journal”.

Read the rest of this entry »

Did someone say… “Alpha”?

October 11th, 2013

installdvdFedora 20 Alpha has been released, and I’d been putting off installing it because I know how troublesome an alpha release can be. This one, though, is the best alpha release of Fedora I can remember!

It actually seems incrementally better than Fedora 19, rather than the traditional break-everything-and-fix-it-again-later alpha releases we’ve seen in the past.

Great job!