开发者

Opening a folder locating a specific file in Ubuntu Nautilus Browser

My requirement is simple, I hope some intelligent geeks can help me here out.

I am working on a project[LINUX-UBUNTU], I have a c program, in which I have a char array having a path to a file, an want to open that folder in Ubuntu nautilus browser, also I want that file to get selected automatically possible.

Any help or guidance will be great.开发者_如何学编程

--

Thanks

Alok Kr.


You can use popen (or any from its family) to call nautilus. On one hand, if the argument is a directory, then nautilus will open a window with that directory. On the other hand, if the argument is a file, then nautilus will open a window in that directory with that file selected.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜