unresolvable problem with .desktop files? they can't be renamed
David Faure
faure at kde.org
Tue Feb 18 17:26:31 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 18 February 2003 15:52, listas at bluesock.net wrote:
> well, they can, the file can be renamed.
>
> But what about the name inside the file ? This is the name that is shown to
> the user. When the user renames a .desktop file the file is not renamed
> because it displays his .desktop name.
Weird. Both the properties dialog and kdesktop have code to update
the Name field of the desktop file.
> The obvious solutions seems to change the name, but what about the
> translations? The name is translated to a lot of languages, so that name in a
> language won't be the same name of another language....
We write out the Name= field (without [lang]) so that it's being used in
all languages.
Ah, well, kpropertiesdialog does that but not kdesktop yet.
- --- kdiconview.cc~ Sun Feb 9 23:38:16 2003
+++ kdiconview.cc Tue Feb 18 18:23:42 2003
@@ -901,6 +901,7 @@
if ( cfg.readName() == _item->text() )
return;
+ cfg.writeEntry( "Name", _item->text() );
cfg.writeEntry( "Name", _item->text(), true, false, true );
cfg.sync();
}
- --
David FAURE, faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
"The last good thing written in C was Franz Schubert's Symphony No. 9."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+UmzI72KcVAmwbhARAqj9AKCTtqaRjuQyERoUVPFolssMm/aMuwCffd/P
+Nru5IwwR/wYdneu9gXBwso=
=akdF
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list