这是我的代码:如何使用bash存储编辑过的文本文件?
Edit_Record(){
zenity --width=600 --height=300 --text-info --title="Records" --filename=$FILE --editable
if [ "$?" = 0 ]; then
kdialog --title "Saving the Data" --warningyesnocancel "Do you want to save the changes?"
if [ "$?" = 0 ]; then
kdialog --msgbox "The changes have been added!"
Home;
elif [ "$?" = 1 ]; then
kdialog --msgbox "No changes has been added!"
Home;
else
Home;
fi;
else
zenity --info --text "You chose to Cancel."
exit
fi;
}
我不知道该怎么把后面“kdialog --msgbox “已添加的变化” :( 请帮助
?
混合zenity和kdialog?为什么? – choroba
只是想在一次编程中体验不同的gui's – Furabells