Banned
|
What must I do to create desktop icons with kwriteconfig?
|
Administrator
|
I assume you are referring to *.desktop files? In any case, you need to write a file similar to this:
To do this, the following would be needed:
For icon names, you can run "kdialog --geticon apps" to get a dialog which will allow you to choose an icon. It will then print the name of that icon out to the console - that is what must be contained in the Icon key of a *.desktop file. As for the Categories, this controls where it will be in the menu system. To appear in the network section for instance, one would set "Qt;KDE;Network;". Make sure to specify a trailing semi-colon to comply with the XDG specification.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Banned
|
I refer too... See http://cdn.linuxforu.com/wp-content/upl ... esktop.png Mozila Firefox, Picasa, Google Earth are what I refer with desktop icons.
I tested this but no new icon on the desktop appears. Also not after reboot. |
Administrator
|
If you open the created file with a text editor, what do you see?
Bear in mind, you do need to change the "<icon name>" in what I wrote to either the name of the application icon or the path to the application icon. You can check the name of the icon using "kdialog --geticon apps".
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Banned
|
How I create it:
Resulting test.desktop file:
It appears in start menu. It does not appear on desktop. I think we have to add something to the ~/.kde/share/config/plasma-desktop-appletsrc file? For test I manually added:
And it did work. How can I do it with the kwriteconfig tool? |
Administrator
|
It would not be recommended to use kwriteconfig to alter the Plasma configuration - as one would have to restart Plasma for it to take effect - if Plasma were not to overwrite your changes that is...
It would be recommended to use Plasma Javascript execution instead. Please refer to the documentation on KDE Techbase for information on how to do this. I will note that this is not necessary if you write your files to ~/Desktop instead and Plasma is configured to use a Folder View applet showing ~/Desktop. You will still need to write the file under ~/.local/share/applications/ however to get it to show in the applications menu though.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Banned
|
Yes, I made a symlink from ~/.local/share/applications/ (actually from my stacked kde settings folder) to ~/Desktop and activated folderview. Works great!
|
Administrator
|
Marked as solved, to make it easier for others to find later if they are looking for something similar.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot]