Hi Trevor, I need to create shortcuts to only HTML files (startup files for installed application). I have KDE and GNOME installed. I searched for the directories and found that KDE Desktop shortcuts are in Desktop directory in user's home. The K menu items are in /usr/share/applnk/. I was able to create Desktop shortcuts for KDE. But... On our system, the "users" group doesn't have write permission on menu directory. Also for GNOME its files are in /usr/share/gnome/apps/ where "users" don't have write permission.
My client will be a normal user who will use the installer and should be able to create shortcuts for him without needing special access previlages. I tried to create files in user's home directory but they didn't reflected in start menu. For GNOME I could not create Desktop shortcuts also. If I create them manullay (right click desktop and select new link item) the corresponding files that are created have some generated names like "url13546" etc. and contain a single line like URL: file:/home/kshitij/myfile.htm
If I create similar file (say testlink) it doesn't work. Also no HTML icon is displayed.
You talked about some project pages. Can you forward me links to them?
Thnaks for help. -Kshitij
a newbie for GUI programming on Unix/Linux. Can anybody help me to accomplish this? I am ready for using any native code if required.
[snip]
You won't need any native code to create shortcuts on KDE/Gnome desktops.
It will be great if I can get insight with respect to nature and structure of shortcut (link) files. Is there any readymade library (docs) of APIs like we have MSDN for windows?
[snip]
You can check out the respective projects pages where you will find tons of documentation of the same.
I suggest you install KDE and Gnome and then go through the directories it creates for all system users in their home directories. This will tell you where to just create those shortcuts.
This is rocket science pal...Just try out what i just said.
Bye for now.
Trevor
-Kshitij
kshitijv e-mail: kshitijv@forindia.com
kshitijv e-mail: kshitijv@forindia.com