LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-28-2005, 07:02 AM   #1
iwen
LQ Newbie
 
Registered: Jul 2004
Location: Melbourne
Distribution: Arch Linux
Posts: 22

Rep: Reputation: 15
cant use svg icons


hi guys,

I am using fluxbox and I can't use any svg icons for Rox-filer icons theme. I installed librsvg already... Any ideas on how to make it works?

thx.

Last edited by iwen; 03-28-2005 at 11:32 AM.
 
Old 03-28-2005, 01:42 PM   #2
dj-tj
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
Hi.

I have the same problem. It occurred directly after the latest Slackware-current upgrade with swaret.
gtk+2 was also updatet to version 2.6.4. I think it has to do something with this gtk package, quote from the rox-filer page: "The filer uses GTK to load images. As long as you have SVG support in GTK, ROX-Filer will load them fine."

Sorry that I can't give a solution. I only wanted to say that another one has this problem.
Anyone else? Or anyone has already a solution?

dj-tj
 
Old 03-29-2005, 08:02 AM   #3
iwen
LQ Newbie
 
Registered: Jul 2004
Location: Melbourne
Distribution: Arch Linux
Posts: 22

Original Poster
Rep: Reputation: 15
anyone?

.............
 
Old 03-29-2005, 02:26 PM   #4
ayoli
LQ Newbie
 
Registered: Mar 2005
Distribution: slackware current
Posts: 3

Rep: Reputation: 0
re: cant use svg icons

yep
since last update in current, with gtk+2.6.4 you need to edit /etc/gtk-2.0/gdk-pixbuf.loaders, and add the fellowing lines:

Code:
    "/usr/lib/gtk-2.0/2.4.0/loaders/svg_loader.so"
    "svg" 0 "gtk20" "Scalable Vector Graphics"
    "image/svg" "image/svg+xml" ""
    "svg" "svgz" ""
    "<?xml" "" 50
    "<svg" "" 100
    "<!DOCTYPE svg" "" 100
dunno why theses lines have been removed, it works fine for me

------------------------------------------------------------------
http://ayo.blogsite.org
 
Old 03-29-2005, 03:25 PM   #5
dj-tj
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
Thanks!!!
It worked for me too.

But I had to add one further line:
Code:
"/usr/lib/gtk-2.0/2.4.0/loaders/svg_loader.so"
"svg" 0 "gtk20" "Scalable Vector Graphics"
"image/svg" "image/svg+xml" ""
"svg" "svgz" ""
"<?xml" "" 50
"<svg" "" 100
"<!DOCTYPE svg" "" 100
"\037\213" "" 50
The last line was not in your example. With it, it works again
 
Old 03-29-2005, 08:49 PM   #6
iwen
LQ Newbie
 
Registered: Jul 2004
Location: Melbourne
Distribution: Arch Linux
Posts: 22

Original Poster
Rep: Reputation: 15
ah thanx...it worked for me too....cheers
 
Old 03-30-2005, 12:47 PM   #7
frank_endres
LQ Newbie
 
Registered: Mar 2005
Location: France
Distribution: Slackware
Posts: 12

Rep: Reputation: 0
I had the same problem: I have just updated to slackware-current.
I spent to much time until I read Your solution ... Thanks.

I think where is an "error" in the gtk-2.6 install script: the following instruction is missing:
Code:
gdk-pixbuf-query-loaders >  /etc/gtk-2.0/gdk-pixbuf.loaders
(Of course, it gives the same result as editing the file "by hand" as you tell it before)
 
Old 04-29-2005, 09:57 AM   #8
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Rep: Reputation: 30
I addes the lines but Rox still won't use the svg icons... rsvg works. I had it working before (prev. install) but I can't remember how.... Any suggestions?

edit. Ok, I got it working now. Some sort of dependency problem I think.

Last edited by Haiyadragon; 04-29-2005 at 10:02 AM.
 
Old 04-30-2005, 11:37 PM   #9
LiNuCe
Member
 
Registered: Apr 2004
Location: France
Distribution: Slackware Linux 10.2
Posts: 119

Rep: Reputation: 15
Re: cant use svg icons

Quote:
Originally posted by iwen
hi guys,

I am using fluxbox and I can't use any svg icons for Rox-filer icons theme. I installed librsvg already... Any ideas on how to make it works?

thx.
With the recent GNOME removal, Patrick Volkerding also removes the lbrsvg library which was in gnome/. So a current, fully installed slackware-current system lacks this library : when building the GTK+ package tree, the SVG loader does not get register to GTK+ and you can't use SVG icons with GTK+ anymore. It means that current GTK+/GNOME icon themes with SVG icons can not load SVG icons.

To solve the problem, install librsvg after gtk+2 & gdk-pixbuf, then run as root :
Code:
gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders
--
LiNuCe
 
Old 05-01-2005, 12:23 PM   #10
iwen
LQ Newbie
 
Registered: Jul 2004
Location: Melbourne
Distribution: Arch Linux
Posts: 22

Original Poster
Rep: Reputation: 15
thx LiNuCe, u did the trick.
 
Old 05-01-2005, 05:55 PM   #11
LiNuCe
Member
 
Registered: Apr 2004
Location: France
Distribution: Slackware Linux 10.2
Posts: 119

Rep: Reputation: 15
Quote:
Originally posted by frank_endres
I had the same problem: I have just updated to slackware-current.
I spent to much time until I read Your solution ... Thanks.

I think where is an "error" in the gtk-2.6 install script: the following instruction is missing:
Code:
gdk-pixbuf-query-loaders >  /etc/gtk-2.0/gdk-pixbuf.loaders
(Of course, it gives the same result as editing the file "by hand" as you tell it before)
In fact, a well-designed package would execute the gdk-pixbuf-query-loaders command at install time.

However it seems that Patrick Volkerding prefers to take a kind of snapshop of installed files to avoid using a post-install script (install/doinst.sh). IMHO, it is really a bad solution unless you only use official Slackware packages : the next time you will upgrade your gtk+2 package with a new Slackware one, it will overwrite your gdk-pixbuf.loaders file. And obviously, you will have to run (again) the gdk-pixbuf-query-loaders command to register the pixbuf loaders which were not installed on Patrick Volkerding's computer : it would not be the case if a proper post-installation script (install/doinst.sh) is used.

And you guess it, it will be so until Patrick Volkerding decides to do "the right thing", as there is no technical reason against it. Even when installing from the install disks (or cdrom) which use a relocated root directory with "installpkg -root root_fs", he could use "chroot . command_to_run" from the install/doinst.sh script to run the command_to_run on the being installed Slackware system. At least, provided that "ldconfig -r root_fs" (or "chroot root_fs ldconfig" since ldconfig is not present on the installation system) is used by installpkg to update the libraries cache and links of the being installed Slackware system. But installpkg does not currently run ldconfig that way...

Another issue : the gtk+2 package does not generate icons cache files for improved memory managment with GTK+ > 2.6.x (see the gtk-update-icon-cache man page). You have to build them manually with gtk-update-icon-cache to used this feature. And you should run it every time you install or upgrade a new GTK (or GNOME) icon theme.

And the gtk+2 package is not the only one in that case ...
 
Old 05-01-2005, 07:53 PM   #12
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
Quote:
Originally posted by LiNuCe


And you guess it, it will be so until Patrick Volkerding decides to do "the right thing", as there is no technical reason against it.
well, you might send Pat an email with a link to this thread.........so he can do the right thing.............but he may just blow it off since he does not support using "swaret" at all...........you never know.......
 
Old 05-01-2005, 11:01 PM   #13
LiNuCe
Member
 
Registered: Apr 2004
Location: France
Distribution: Slackware Linux 10.2
Posts: 119

Rep: Reputation: 15
Quote:
Originally posted by freakyg
well, you might send Pat an email with a link to this thread.........so he can do the right thing.............but he may just blow it off since he does not support using "swaret" at all...........you never know.......
Sorry, I'm not talking about Swaret or other third party package managers for Slackware Linux. I am really talking about the official Slackware's package managment tools, the PkgTools (installpkg, removepkg and upgradepkg) which are the only tools I used to manage packages for years. Installpkg does support a post-installation script (install/doinst.sh in the TGZ package) : this is a standard feature of the PkgTools ... for years
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fla/swf to svg salahuddin_66 Linux - Software 2 04-19-2016 01:03 AM
svg icons don't work Haiyadragon Slackware 0 02-14-2005 06:44 PM
what is svg really? ZaphyR Linux - General 2 01-10-2005 02:09 PM
SVG with firefox devinWhalen Linux - Software 1 04-20-2004 10:52 AM
gnome & svg files shadowhunter Linux - Software 1 12-29-2003 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration