May I ask where's the Favorite folder located.
[img]file:///home/oem/Pictures/2023-01-24_20-30.png[/img]
The path is to 'favorites:///' which I cannot use in script for keyboard shortcut, which I'd like to do. If I right click it and open in terminal, it opens in root folder where 'Favorites' are not there. Please, what's the path to the Favorites?
[SOLVED] Location of Favorites folder?
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Topics in this forum are automatically closed 6 months after creation.
[SOLVED] Location of Favorites folder?
Last edited by LockBot on Tue Jul 25, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Location of Favorites folder?
That a file is a favorite is stored in its metadata and in a list in user settings.
To start with the latter you can get the list of favorites with command
and that will get you a nicer one file per line output though you still will need some further processing to cut off the ::mimetype part and probably convert the URI to a plain file path. Exercise for the reader. The
To get the metadate of a file you can run
To start with the latter you can get the list of favorites with command
gsettings get org.x.apps.favorites list
or dconf read /org/x/apps/favorites/list
. The output isn't directly usable in bash but we can get much closer by using jq. First, apt install jq
to get it. Then you can run the command like so
Code: Select all
gsettings get org.x.apps.favorites list | tr "'" '"' | jq -rM '.[]'
tr "'" '"'
is needed because jq expects double quotes but the gsettings/dconf output has single quotes.To get the metadate of a file you can run
gio info metadata::xapp-favorite /path/to/file
but you'd have to run that on each file so this is probably not useful to what you're trying to do.Re: Location of Favorites folder?
Sorry regarding the image, here it is:
Thank you, I did not expect to be so complicated just to do a keyboard shortcut to Favorites but will try to do some workaround.
Thank you, I did not expect to be so complicated just to do a keyboard shortcut to Favorites but will try to do some workaround.
Last edited by xenopeek on Wed Jan 25, 2023 4:42 am, edited 1 time in total.
Reason: fixed image link
Reason: fixed image link
Re: Location of Favorites folder?
What do you want to do with favorites on the keyboard shortcut?
Re: Location of Favorites folder?
With keyboard shortcut, I'd just like to open the folder Favorites
Re: Location of Favorites folder?
Okay. From your screenshot, this command works to open favorites:
That opens a new Nemo window on favorites. Use
nemo favorites:///
That opens a new Nemo window on favorites. Use
nemo --existing-window favorites:///
if you want to open it in a tab in an existing Nemo window.Re: Location of Favorites folder?
Thank you kindly