I did some checking into this in
https://bugs.launchpad.net/ubuntu/+source/gdk-pixbuf/+bug/926019

It turns out that the copyright notice in the svg format icon is
preventing the icon from being recognized as svg by gdk-pixbuf -- that's
why it works when you load it by specifying a type, but can't just use
gdk_pixbuf_new_from_file.  Removing the copyright notice from
/usr/share/icons/hicolor/scalable/apps/gdecrypt.svg with a text editor
also makes gdecrypt work.

Nonetheless, as I said on that bug, the root of this issue is the way
gdk detects whether a file is an svg image -- I believe it is looking
for an <svg tag in the first few bytes of the file, and the long comment
at the top breaks the format detection even though it's perfectly valid
content in an svg file.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to librsvg in Ubuntu.
https://bugs.launchpad.net/bugs/872967

Title:
  gdecrypt won't start: picture format unknown

Status in “gdecrypt” package in Ubuntu:
  Confirmed
Status in “gdk-pixbuf” package in Ubuntu:
  Confirmed
Status in “librsvg” package in Ubuntu:
  Confirmed

Bug description:
  When I wanna start gdecyrpt on terminal I only see the following
  message:

  Traceback (most recent call last):
    File "./main.py", line 609, in <module>
      gdc = gdecrypt()
    File "./main.py", line 127, in __init__
      pixbuf128 = gtk.icon_theme_get_default().load_icon("gdecrypt",128,0)
  glib.GError: Format der Bilddatei unbekannt

  
  It translate to someting like "picture format unknown".

  I think there is some missing dependency?!

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: gdecrypt 0.7.2.2-0ubuntu6
  ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
  Uname: Linux 3.0.0-12-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 1.23-0ubuntu3
  Architecture: amd64
  Date: Wed Oct 12 18:40:51 2011
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110921.2)
  PackageArchitecture: all
  SourcePackage: gdecrypt
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdecrypt/+bug/872967/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to