Le jeudi 2 août 2007, Dmitry Suzdalev a écrit : > Hello, kopete devs! :-) > > While trying to fix a bug that no chatwindow style is picked by default > (until it get's set explicitely),
Yeah, thanks for fixing this bug :-)
> kopetechatwindowconfig.kcfg specifies that default style path is:
> KStandardDirs::locate("appdata", "styles/Kopete")
>
> and I found that this call returns an empty string even in case
> when "styles/Kopete" directory exists (and it does).
> Also I found that if I append a slash, i.e. try to locate "styles/Kopete/",
> things magically start to work and KStandardDirs returns a valid path.
That solution looks good from my point of view.
> I asked about this issue on k-c-d and got reply from coolo (who mainains
> KStandardDirs), that this class isn't supposed to be used to find DIRS -
> it's supposed to be used to search for files.
>
> He suggested to put some file in directory that needs to be found and then
> use KStandardDirs::foundResourseDir() method.
>
> This seems to be a valid solution and all others will be more or less hacks
> around standard KStandardDirs usage IMO
And this looks like a hack in Kopete :-)
> Well, I writing this so you, the devs, can discuss what that file might
> look like - will it be a dummy one, or perhaps there's some (meta-)info
> about style that it can contain?
> (for example, in kdegames we use .desktop file to hold various
> svgtheme-related settings for our games aka number of animation frames,
> author's name & email etc etc)
A .desktop file which would also contains the name translation would maybe be
ok.
Anyway, what we use here is not that important since it only concern the
default style. Personally, I would just go to keep that '/'
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ kopete-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/kopete-devel
