You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "chickenblood" started this thread

Posts: 4

Location: Mountain View, CA

Occupation: Data Monkey

  • Send private message

1

Wednesday, October 27th 2004, 9:01pm

Application icons

I have an application deployment question:

What are the 'correct' desktop icon sizes for KDE applications?

How do you configure them when your app is installed, so that one appears on the desktop and launches your application?

Thanks in advance.

seb

Professional

Posts: 622

Location: Sydney

Occupation: Student

  • Send private message

2

Thursday, October 28th 2004, 1:07am

Re: Application icons

Quoted

Original von chickenblood


What are the 'correct' desktop icon sizes for KDE applications?

The correct icon sizes are
16x16
22x22
32x32
48x48
64x64
128x128

Regarding desktop icon sizes, that is up to the user. This can be set in
kcontrol > Appearances > Icons > Advanced

Quoted

Original von chickenblood


How do you configure them when your app is installed, so that one appears on the desktop and launches your application?

You have to create a .desktop file. Just take a look at another one, or look here
http://freedesktop.org/Standards/desktop…spec-0.9.4.html

  • "chickenblood" started this thread

Posts: 4

Location: Mountain View, CA

Occupation: Data Monkey

  • Send private message

3

Thursday, October 28th 2004, 3:47pm

That's great thanks!

Unfortunately, it doesn't say where this .desktop file should be created. Is it the users home directory, the application installation directory or somewhere else? How will the DE know where to find it?

Thanks.

4

Thursday, October 28th 2004, 4:01pm

Quoted

Original von chickenblood

That's great thanks!

Unfortunately, it doesn't say where this .desktop file should be created. Is it the users home directory, the application installation directory or somewhere else? How will the DE know where to find it?

Thanks.

Here are two other specs that may be of interest to you:
http://freedesktop.org/Standards/basedir-spec
http://freedesktop.org/Standards/menu-spec

I found them on the page http://freedesktop.org/Standards/ under the headline: "Here are draft specifications that are new and not yet widely used, though they may be used by one or more desktops or desktop applications"

IIRC they are supported by KDE but I don't know first-hand.

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

5

Thursday, October 28th 2004, 4:17pm

Quoted

Original von cmbofh


IIRC they are supported by KDE but I don't know first-hand.


They are since KDE 3.2

As for the icon on the desktop: I wouldn't install an icon there at application install time, but you could offer an option in your program or at first startup to create such an icon.
If the users likes this, create a similar desktop file (copy the file) to the user's desktop path.
See http://api.kde.org/3.3-api/kdecore/html/classKGlobalSettings.html#e11

But usually programs don't do that, a user can always drag&drop the "link" from the menu to his/her desktop if needed.

Cheers,
_
Qt/KDE Developer
Debian User