You are not logged in.

#1 2003-03-30 20:37:02

Greg
Member
From: Geneva, Switzerland
Registered: 2002-12-07
Posts: 22
Website

can't start gtk2 apps anymore

...since my last pacman -Syu which updated gtk2.
This is what i get:

[greg@poseidon greg]# switch2 

** (switch2:1011): WARNING **: Cannot open font file for font Verdana 10

** (switch2:1011): WARNING **: Cannot open fallback font, nothing to do

and i already tried a fc-cache, but with no luck sad

Offline

#2 2003-03-30 22:26:52

jlvsimoes
Member
From: portugal
Registered: 2002-12-23
Posts: 392
Website

Re: can't start gtk2 apps anymore

take a look at /etc/fonts/fonts.config and maybe this if it can help you out http://bbs.archlinux.org/viewtopic.php? … ight=xfree


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU/ d- s: a- C L U P+ L+++ E--- W+
N 0+ K- W-- !O !M V-- PS+ PE- V++ PGP T 5 Z+ R* TV+ B+
DI-- D- G-- e-- h! r++ z+ z*
------END GEEK CODE BLOCK------

Offline

#3 2003-03-30 22:52:38

Greg
Member
From: Geneva, Switzerland
Registered: 2002-12-07
Posts: 22
Website

Re: can't start gtk2 apps anymore

How should this help me? I mean, everything worked fine until I upgraded gtk2. And I have this problem only with gtk2-apps while everything else works fine.

Offline

#4 2003-03-31 06:56:22

Blaasvis
Member
Registered: 2003-01-17
Posts: 467

Re: can't start gtk2 apps anymore

first did you run fc-cach as root, next try running it with fc-cache -v now you can see if any fonts are found....

if not check you /etc/fonts/fonts.conf , and read the manual on fontconfig.org


Freedom is what i love

Offline

#5 2003-03-31 10:23:47

Greg
Member
From: Geneva, Switzerland
Registered: 2002-12-07
Posts: 22
Website

Re: can't start gtk2 apps anymore

[root@poseidon greg]# fc-cache 
[root@poseidon greg]# fc-cache -v
fc-cache: "/usr/X11R6/lib/X11/fonts": skipping, 0 fonts, 13 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/CID": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/TTF": skipping, 12 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/ttf": skipping, 72 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/misc": skipping, 55 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/util": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": skipping, 397 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": skipping, 29 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/local": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/Speedo": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/encodings": skipping, 0 fonts, 1 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/encodings/large": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/artwiz-fonts": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/100dpi": skipping, 397 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/cyrillic": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/share/fonts": no such directory, skipping
fc-cache: "/root/.fonts": no such directory, skipping
fc-cache: succeeded
[root@poseidon greg]#

And I kinda can't see why you're insisting on the fonts.conf. I havn't changed it since the pacman -Syu. And in all other applications the fonts are okay!

Offline

#6 2003-03-31 14:01:27

Blaasvis
Member
Registered: 2003-01-17
Posts: 467

Re: can't start gtk2 apps anymore

well fonts are found try recompiling gtk2 and pango


Freedom is what i love

Offline

#7 2003-03-31 15:48:22

sinister
Member
From: Edmonton, Alberta
Registered: 2003-02-15
Posts: 61

Re: can't start gtk2 apps anymore

Just to point out.. recompiling pango and gtk2 did indeed work for me when i experienced this problem..

Good luck!


I bought a dog the other day...I named him Stay. It's fun to call him...  "Come here, Stay! Come here, Stay!" He went insane. Now he just ignores me and drools.

Offline

#8 2003-03-31 21:06:31

Greg
Member
From: Geneva, Switzerland
Registered: 2002-12-07
Posts: 22
Website

Re: can't start gtk2 apps anymore

[greg@poseidon greg]# switch2 

** (switch2:30580): WARNING **: Cannot open font file for font Verdana 10

** (switch2:30580): WARNING **: Cannot open fallback font, nothing to do

But it actually works for root! So it may be something with permissions, but I have no idea with which permissions. Any ideas?

Edit: This is after recompiling gtk2 & pango.

Offline

#9 2003-03-31 22:39:49

BluPhoenyx
Member
Registered: 2002-12-23
Posts: 239

Re: can't start gtk2 apps anymore

This is interesting as this subject came up on the Rox filer mailing list also. That user was running Debian and had the same problem with the same particular font. Does this happen for you with any other fonts? I ask because I use primarily gtk2 apps and haven't noticed any problems.

I'm also wondering if it my be theme/engine related. Which gtk2 theme and display engine are you using, if any?


BluPhoenyx

Offline

#10 2003-03-31 23:10:36

BluPhoenyx
Member
Registered: 2002-12-23
Posts: 239

Re: can't start gtk2 apps anymore

So far I can't duplicate this problem. I don't know if this is due to my setup or what. FWIW, I still keep the various xft settings in place. You can try this to see if it helps any.

In the environment I have these two.
export GDK_USE_XFT = 1
export QT_XFT = 1

in my ~/.gtkrc-2.0 file I have this setting,

gtk-use-xft = 1


BluPhoenyx

Offline

#11 2003-04-01 06:44:10

Blaasvis
Member
Registered: 2003-01-17
Posts: 467

Re: can't start gtk2 apps anymore

if that doesn't work try disabling XFT for gtk2 by

export GDK_USE_XFT = 0


Freedom is what i love

Offline

#12 2003-04-01 16:11:31

Greg
Member
From: Geneva, Switzerland
Registered: 2002-12-07
Posts: 22
Website

Re: can't start gtk2 apps anymore

GDK_USE_XFT=0 works, but then of course the fonts doesn't look very nice, but it may be a temp solution. So where would I have to put it to make it a global variable?

Offline

#13 2003-04-02 07:33:55

Blaasvis
Member
Registered: 2003-01-17
Posts: 467

Re: can't start gtk2 apps anymore

you could put it in your /etc/profile.d/gnome.sh

try resinstalling gtk2 and pango, maybe even X


Freedom is what i love

Offline

#14 2003-04-02 19:56:31

Greg
Member
From: Geneva, Switzerland
Registered: 2002-12-07
Posts: 22
Website

Re: can't start gtk2 apps anymore

reinstalled these 3 things, but it didn't help... frustrating hmm

can't it be something with the permissions as it works perfectly for root?

Offline

#15 2003-04-02 21:12:58

Arielext
Member
From: Amersfoort, the Netherlands
Registered: 2002-08-12
Posts: 362
Website

Re: can't start gtk2 apps anymore

sure it can smile
do you have access to the font folder?


apt-get install arch

Offline

#16 2003-04-03 08:46:49

Greg
Member
From: Geneva, Switzerland
Registered: 2002-12-07
Posts: 22
Website

Re: can't start gtk2 apps anymore

i'm quite new to linux, but all fonts have the following permissions, and i don't think that this is correct:

-r--r-----    1 root     root         168k Nov 16 19:44 verdana.ttf

What are the correct permissions?

Offline

#17 2003-04-03 10:32:44

Arielext
Member
From: Amersfoort, the Netherlands
Registered: 2002-08-12
Posts: 362
Website

Re: can't start gtk2 apps anymore

r-r-- means that the user who created it and the other users in his group can access the file (Read)
so this means that root and all other users in the group root can read the file. Your normal account wont be in the root group I guess, so you have to change the permissions to r--r--r--.

Be *sure* that the direcotries have the executable flag set for user,group and others to that will read rwxrwxrwx, otherwise normal users are unable to access the directory.

You can set the permissions for the files with the chmod commando like this:

chmod 444 *.*

and for the direcotries its

chmod 777 [directoryname]

hope this helps


apt-get install arch

Offline

#18 2003-04-03 11:01:19

Greg
Member
From: Geneva, Switzerland
Registered: 2002-12-07
Posts: 22
Website

Re: can't start gtk2 apps anymore

It works! Great! You're my hero for today smile

Offline

#19 2003-04-03 14:39:11

Arielext
Member
From: Amersfoort, the Netherlands
Registered: 2002-08-12
Posts: 362
Website

Re: can't start gtk2 apps anymore

Hooray I'm usefull smile


apt-get install arch

Offline

#20 2003-04-03 22:57:00

BluPhoenyx
Member
Registered: 2002-12-23
Posts: 239

Re: can't start gtk2 apps anymore

Arielext wrote:

and for the direcotries its

chmod 777 [directoryname]

Are you sure you want to allow anyone write access to the fonts directories? I think this should be 755 which allows the user read and entry only and root has full access.


BluPhoenyx

Offline

#21 2003-04-04 09:50:35

Arielext
Member
From: Amersfoort, the Netherlands
Registered: 2002-08-12
Posts: 362
Website

Re: can't start gtk2 apps anymore

That's ther same for logging in as root

It's easy, it works but it isn't safe
Well most of the time the computer fears me, so why should I fear "no no don't use root!"
So I root, and I chmod 777
and I have a router/firewall pc smile


apt-get install arch

Offline

Board footer

Powered by FluxBB