Hi,
firstly, sorry for my poor English.
Qt-lxshortcut Assistant 0.2some explanation before:
On Unity, Gnome-shell, cinnamon, gnome2, xfce:
There is a folder for user to add shortcuts and find then automatically in menus sections.
This is /home/$user/.local/share/applications
When you install an application, it requests an root access and files are in
/usr/share/applications
The mechanism of automatically adding icons in menus sections, is managed by /etc/xdg and probably bamf daemon.
For custom made OS this is another story because /home/$user/.local/share/applications is not all time referenced into /etc/xdg config files.
here 2 links :
http://forum.kde.org/viewtopic.php?f=17&t=87957http://markmail.org/message/3tdve37nbeacvcny (If the mechanisme is well configured and /home/$user/.local/share/applications dont do is job, after the .desktop creation,sometime, just logout, login again and bamf make is job.)
Additional research may be useful, about bamf and xdg.
Now the Qt-lxshortcut Assistant mechanism itself:1* Search after the folder /home_path/.local/share/applications/, if does not exist create it.
2* Run the command lxshortcut + parameters when the "start" button is pressed. (Parameters is combobox folder location + name of .desktop).
3* Waiting lxshortcut is stopped, to edit the .desktop, and insert "Categories= + comboBox2 choice" at the end of file.
4* If target is /home/$user/Desktop, set execute permission on .desktop file created.
This is just a little hack in gui, over lxshortcut, if you have ideas for change or improvement, thank you for giving them.
I have sent the sources and compiling in 32 and 64 bit to mélodie.
This is made with Qt 4.8.3 gcc 4.7.2