how to list opened nautilus tabs with qdbus?
Posted
by
Aquarius Power
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Aquarius Power
Published on 2013-06-09T22:29:09Z
Indexed on
2014/05/31
22:01 UTC
Read the original article
Hit count: 270
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;
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)
© Ask Ubuntu or respective owner