Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 am trying to dig into qdbus for nautilus to get a list of opened tabs; I managed to do this so far:

sites=(`qdbus |grep nautilus -i`);
for siteSrc in ${sites[@]};do
  list=(`qdbus $siteSrc`);
  for path in ${list[@]}; do
    qdbus $siteSrc $path |sed -r "s|.*|$siteSrc $path &|";
done |sort -u #|grep paths -i

for ex.: I was able to get a list of selected files with

qdbus org.gnome.NautilusApplication /org/nautilus_actions/DBus/Tracker/0 org.nautilus_actions.DBus.Tracker.Properties1.GetSelectedPaths

but I cant find a clue for opened tabs locations? (so we can use on scripts to restore them later)

share|improve this question

From this answer, I got to this

gdbus introspect -r --session -o / --only-properties -d org.gnome.Nautilus |grep "OpenLocations ="

easier one

qdbus org.gnome.Nautilus /org/freedesktop/FileManager1 org.freedesktop.FileManager1.OpenLocations

Tho to open tabs in nautilus thru command line, to the date, seem impossible.

share|improve this answer

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.