![]() Registered Member ![]()
|
Hi,
I'm trying to create a function for a bash script which generates the menu entires by variables. Those variables are stored in a file called .vlc-phone.conf which looks like
I've added a function which reads the variables into a line which looks like:
Now this should send to kdialog to display the menu. I've tried many posibilities but only this brings up a menu
But unforunaly all option in one menu entry. So, I have 2 questions: 1. How to create " in the script so that I get a text like MENU=' 1 "server1" 2 "server2" ' sot that I may use entries with more spaces. 2. How to parse this line to kdialog, that it displays a menu with the given number of options. I would be very glad if someone could give me a hint. Thanks hans |
![]() Administrator ![]()
|
Testing on Trunk confirms that the --menu switch is currently broken, as the item selected isn't what the command returns. Can you please file a bug report at bugs.kde.org?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Hi bcooksley,
thank you for your answer. I did some further tests. Question Nr. 1 is solved by adding \" to the string function. So it looks lile this.
For question #2 I will follow your answer and file a bug report. Just for your understanding I use the following call:
Kind Regards Hans |
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]