I am in need to open the default file manager of the user's system (not a dialog, but the file manager used by the system) using gtk and C.
meaning, when a user chooses a directory, file manager will open and not a dialog. is there any way to achieve this?
You should launch xdg-open, e.g. with ordinary fork & exec.
E.g. this will open default file manager at /
:
if(fork() == 0) {
system("xdg-open /");
}