User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 FirePHP/0.3 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 FirePHP/0.3
for the working mime types i tried, the generic orange-gnome-foot-on-sheet-icon was shown, for invalid names, the foot was white.
Reproducible: Always
Steps to Reproduce: enter url like moz-icon://.pdf?size=16 Actual Results: generic icon is shown on kde
Expected Results: compare with gnome or windows: pdf icon shows up.
simple pseudocode-patch:
mime = url.substring(firstIndexOf(".")+1, firstIndexOf("?")) + ".png"
size = url.parse("size") if size <= 16: sizestr = "16x16" else if size <= 24: #kde uses 22² pixel icons, windows 24² for the same purposes sizestr = "22x22" else if size <= 32: . . . sizestr = "265x265"
if desktop == "kde": while line != "[Icons]" line = readline(~/.kde/share/config/kdeglobals) theme = readline(~/.kde/share/config/kdeglobals).substring(firstIndexOf("=")) iconpath = "/usr/share/icons/" + theme + sizestr + "mimetypes" + prefix + mime
i cheated: you have to try out every prefix ("application-","text-",...) and use other sizes if one is not available, but it’s not complicated...
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 FirePHP/0.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 FirePHP/0.3
for the working mime types i tried, the generic orange- gnome-foot- on-sheet- icon was shown, for invalid names, the foot was white.
Reproducible: Always
Steps to Reproduce: //.pdf? size=16
enter url like moz-icon:
Actual Results:
generic icon is shown on kde
Expected Results:
compare with gnome or windows: pdf icon shows up.
simple pseudocode-patch:
mime = url.substring( firstIndexOf( ".")+1, firstIndexOf("?")) + ".png"
size = url.parse("size")
if size <= 16:
sizestr = "16x16"
else if size <= 24: #kde uses 22² pixel icons, windows 24² for the same purposes
sizestr = "22x22"
else if size <= 32:
.
.
.
sizestr = "265x265"
if desktop == "kde": ~/.kde/ share/config/ kdeglobals) ~/.kde/ share/config/ kdeglobals) .substring( firstIndexOf( "="))
while line != "[Icons]"
line = readline(
theme = readline(
iconpath = "/usr/share/icons/" + theme + sizestr + "mimetypes" + prefix + mime
i cheated: you have to try out every prefix ("application- ","text- ",...) and use other sizes if one is not available, but it’s not complicated...