开发者

Message box in C in Linux

I want to disp开发者_JS百科lay a "SUCCESSFUL" pop-up message after executing my program in C in Linux.

It should run on both KDE and GNOME. How can I do this?


You are looking for desktop notifications. I believe both KDE and GNOME support them. Here is a (Gtk+-based) library you can use for your program's end.


Zenity (GNOME) and kdialog (KDE) are similar in a lot of respects. Both will let you pop up a GUI notification. If you just want to send something to the notification area in gnome notify-send does the trick. I believe that kdialog will allow you to do something similar in KDE. I don't know of a common tool between the two UIs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜