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.

kismet

Beginner

  • "kismet" started this thread

Posts: 6

Location: Livorno - Italy

Occupation: Student

  • Send private message

1

Tuesday, July 5th 2005, 6:58am

Konqueror and Servicemnu

Hi All,
I'm a begginer and I have some question releted to .desktop:
1 - I'd like to know if there is a way to use .dekstop file to add item to the servicemenu on the first level and not under "Actions".
2 - Also I'd like to know if there is a way to change the icon for some directory that contain special file(e.x.: .cvs, .svn, etc..)
3 - Also I'd like to know if there is a way to change the icon for some file without creating a new mimeType.

I'm asking that beacuse my goal is to create a linux version of TortoiseSVN and TortoiseCVS.

Finally, I'm using the .desktop extension system because I don't know how to create a program that ca be integrated in the servicemenu(like ark)

Thank you for the help

P.S.: If you can't help with my question even developer documentation related to Konqueror will be usefull

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Tuesday, July 5th 2005, 9:06am

RE: Konqueror and Servicemnu

Quoted

Originally posted by kismet
1 - I'd like to know if there is a way to use .dekstop file to add item to the servicemenu on the first level and not under "Actions".


Hmm, as far as I remember service menu actions are on the top level of the context menu unless you specifiy a submenu in the servicemenu file.

Quoted


2 - Also I'd like to know if there is a way to change the icon for some directory that contain special file(e.x.: .cvs, .svn, etc..)


Could be possible to add a .directory file to that directory and specifiy an icon there.
Or when the majority of the files in there have a certain type, an icon associated with that type would be displayed like on other folders with common content.

Quoted


3 - Also I'd like to know if there is a way to change the icon for some file without creating a new mimeType.


Don't think so.
What kind of file do you have in mind?

Quoted


Finally, I'm using the .desktop extension system because I don't know how to create a program that ca be integrated in the servicemenu(like ark)

I am pretty sure ark uses a service menu as well.

Cheers,
_
Qt/KDE Developer
Debian User

kismet

Beginner

  • "kismet" started this thread

Posts: 6

Location: Livorno - Italy

Occupation: Student

  • Send private message

3

Thursday, July 7th 2005, 11:11am

Quoted


Originally posted by anda_skoa
I am pretty sure ark uses a service menu as well.


I'm reading some documentation that I found, and I think that Ark use something like services

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

4

Thursday, July 7th 2005, 5:33pm

It can be used as a view plugin as well, but if invoked as a stand alone application it doesn't do any thing different than one specified by a servicemenu.

The Ark .desktop file contains an Exec entry for running it as an application an a ServiceType + X-KDE-Library entry for using it as a view plugin/embedded viewer.

Cheers,
_
Qt/KDE Developer
Debian User