Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wrote an QT-application, which shows a "QTreeWidget" of a certain directory and its sub-directories. Now I would like to make unity open a folder e.g. /home/Username/, by clicking one of the applications "QTreeWidgetItems".

Unfortunately i don't know how the communication between Unity and the Qt-app works.
Can somebody tell me how that could be done ?

Thank you,

share|improve this question
There's no such thing as a Unity folder. Can you update your answer to explain exactly what you want to happen? I don't understand what you mean by making Unity open a folder. – Jo-Erlend Schinstad Mar 5 '12 at 15:33
I mean the usual folder from the filemanager. – DocCruiser Mar 5 '12 at 16:25

The default manager is Ubuntu is nautilus. You can open a folder with nautilus with this command

nautilus /path/to/folder

But this will only work when nautilus is installed (i.e. in gnome or plain Ubuntu). You can also use this command:

xdg-open /path/to/folder

This should open the folder with the default file-manager of the user. It will work the same way that the above command for plain Ubuntu, but will open Konkeror in Kubuntu or Thunar in Xubuntu.

share|improve this answer
Thank you Javier. I solved the problem allready yesterday after reading an article about nautilus. Thank you for your help. – DocCruiser Mar 6 '12 at 14:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.