Backgrounds - Recursive Folders

Questions about applications and software
Forum rules
Before you post please read how to get help
User avatar
~FLOW~
Level 2
Level 2
Posts: 82
Joined: Tue Mar 12, 2013 3:23 am

Backgrounds - Recursive Folders

Post by ~FLOW~ » Mon Oct 07, 2019 7:29 am

Hello all,
In Backgrounds, when adding a new folder it does not search for pictures recursively.
For example if the folder Documents has another 5 folders with photos it does not display any photos.
Without a configurable depth option it makes this awesome tool, very very restrictive.
And for it to work I have to copy all my photos into a single folder, like a barbarian.
Does anyone have to power and time to implement this ?

I made this as a suggestion long long time ago but it was closed, no ideea why.
https://github.com/linuxmint/cinnamon/issues/3923
Attachments
Backgrounds.png
Linux Mint 19.2
Cinnamon 4
Kernel 5

Be patient !!
What seams easy for you now, for a newbie might be a monumental helping hand.
An efficient pack will move as fast as the slowest member.

Hoser Rob
Level 15
Level 15
Posts: 5591
Joined: Sat Dec 15, 2012 8:57 am

Re: Backgrounds - Recursive Folders

Post by Hoser Rob » Mon Oct 07, 2019 8:23 am

Why was it closed? See this quote from the linked bugzilla: "it isn't a bug. It's that way intentionally. With recursive search it's way too easy to get into situation where you are trying to generate hundreds or even thousands of thumbnails in the settings gui."

If it isn't a bug it doesn't belong there.

User avatar
Flemur
Level 17
Level 17
Posts: 7305
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Backgrounds - Recursive Folders

Post by Flemur » Mon Oct 07, 2019 8:35 am

... deleted...

Can you "set background" in a file browser ? ...and use that as the wallpaper setter.
Last edited by Flemur on Tue Oct 08, 2019 10:17 am, edited 1 time in total.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

User avatar
smurphos
Level 13
Level 13
Posts: 4541
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Backgrounds - Recursive Folders

Post by smurphos » Tue Oct 08, 2019 2:33 am

~FLOW~ wrote:
Mon Oct 07, 2019 7:29 am
And for it to work I have to copy all my photos into a single folder, like a barbarian.
A slightly less barbaric workaround is to set up a specific backgrounds folder and then symlink to your images from it. A fairly onerous task via GUI or you could adapt this sample one liner terminal command which will make the folder, populate the symlinks and add the new folder to backgrounds.

E.g. Assuming your images are in ~/Pictures and it's subfolders and are all jpg or png.

Code: Select all

mkdir -p ~/MyBackgrounds/ ; find ~/Pictures/ -type f -iname "*.*p*g" -exec ln -s "{}" ~/MyBackgrounds/ \; ; echo "$HOME/MyBackgrounds" >> ~/.cinnamon/backgrounds/user-folders.lst
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
~FLOW~
Level 2
Level 2
Posts: 82
Joined: Tue Mar 12, 2013 3:23 am

Re: Backgrounds - Recursive Folders

Post by ~FLOW~ » Tue Oct 08, 2019 3:41 am

you can add any other folder, but it will only look in the root of that folder.
Attachments
aaaaaaa.jpg
Linux Mint 19.2
Cinnamon 4
Kernel 5

Be patient !!
What seams easy for you now, for a newbie might be a monumental helping hand.
An efficient pack will move as fast as the slowest member.

User avatar
Flemur
Level 17
Level 17
Posts: 7305
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Backgrounds - Recursive Folders

Post by Flemur » Tue Oct 08, 2019 10:16 am

~FLOW~ wrote:
Tue Oct 08, 2019 3:41 am
you can add any other folder, but it will only look in the root of that folder.
I'm going to delete my dumb post.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

User avatar
BG405
Level 7
Level 7
Posts: 1900
Joined: Fri Mar 11, 2016 3:09 pm
Location: England

Re: Backgrounds - Recursive Folders

Post by BG405 » Sat Oct 19, 2019 1:59 pm

A bit late to the party but (why?) wouldn't adding symlinks to those wanted subdirectories work ..? I haven't actually tried this but have thought about putting together a collection of backgrounds & having them change periodically, so would be interested to know if that does work.
Dell Inspiron 1525 - LM17.3 CE 64-------------------Lenovo T440 8GB - Manjaro KDE with Mint VMs
Toshiba NB250 - Manjaro KDE------------------------K7S5A AMD 1.2GHz - LM17.3 Xfce 32 & WinXP-Pro
Acer Aspire E11 ES1-111M - LM18.2 KDE 64 ----Dell PII 350 64MB - Puppy 4.3 & Win98-SE

User avatar
~FLOW~
Level 2
Level 2
Posts: 82
Joined: Tue Mar 12, 2013 3:23 am

Re: Backgrounds - Recursive Folders

Post by ~FLOW~ » Sat Oct 19, 2019 3:29 pm

symlinks to other folders do not work.
I guess it searches only for files in the folder that I set
Linux Mint 19.2
Cinnamon 4
Kernel 5

Be patient !!
What seams easy for you now, for a newbie might be a monumental helping hand.
An efficient pack will move as fast as the slowest member.

User avatar
AndyMH
Level 9
Level 9
Posts: 2629
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Backgrounds - Recursive Folders

Post by AndyMH » Sat Oct 19, 2019 6:25 pm

My backgrounds are all photos taken locally and displayed in a random slideshow. I have two sets, basically summer and winter, each in their own folder. I just swap folders at the right time in the year.
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 3 x Thinkpad T430 Cinnamon 19.0, i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate

User avatar
smurphos
Level 13
Level 13
Posts: 4541
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Backgrounds - Recursive Folders

Post by smurphos » Sat Oct 19, 2019 11:19 pm

BG405 wrote:
Sat Oct 19, 2019 1:59 pm
A bit late to the party but (why?) wouldn't adding symlinks to those wanted subdirectories work ..?
Having a directory set in the backgrounds settings modules with symlinks to images in other directories works just fine. It's how I've managed my user added backgrounds on Cinnamon for years.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
~FLOW~
Level 2
Level 2
Posts: 82
Joined: Tue Mar 12, 2013 3:23 am

Re: Backgrounds - Recursive Folders

Post by ~FLOW~ » Sun Oct 20, 2019 1:25 am

smurphos wrote:
Sat Oct 19, 2019 11:19 pm
BG405 wrote:
Sat Oct 19, 2019 1:59 pm
A bit late to the party but (why?) wouldn't adding symlinks to those wanted subdirectories work ..?
Having a directory set in the backgrounds settings modules with symlinks to images in other directories works just fine. It's how I've managed my user added backgrounds on Cinnamon for years.
can you make a print screen of the background's folder ??
Linux Mint 19.2
Cinnamon 4
Kernel 5

Be patient !!
What seams easy for you now, for a newbie might be a monumental helping hand.
An efficient pack will move as fast as the slowest member.

User avatar
smurphos
Level 13
Level 13
Posts: 4541
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Backgrounds - Recursive Folders

Post by smurphos » Sun Oct 20, 2019 1:44 am

Sure -

Image

The folder full of symlinks - note the small disk space used.

Image

The folder containing the sub-folders holding the images.

Image

The command line to make this set-up in about 3 seconds...

Code: Select all

mkdir -p ~/Pictures/Wallpapers/My_Backgrounds/ ; find ~/Pictures/Wallpapers/Desktop/ -type f -iname "*.*p*g" -exec ln -s "{}" ~/Pictures/Wallpapers/My_Backgrounds/ \; ; echo "$HOME/Picture~/Pictures/Wallpapers/My_Backgrounds" >> ~/.cinnamon/backgrounds/user-folders.lst
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
Spearmint2
Level 16
Level 16
Posts: 6874
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Backgrounds - Recursive Folders

Post by Spearmint2 » Sun Oct 20, 2019 2:01 am

You can hilite the folders, right clk on them and choose to open them in "new tabs". Then you only have to clk between the tabs to quickly view them. You could open them all in new windows if you wished.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

User avatar
smurphos
Level 13
Level 13
Posts: 4541
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Backgrounds - Recursive Folders

Post by smurphos » Sun Oct 20, 2019 2:29 am

Spearmint2 wrote:
Sun Oct 20, 2019 2:01 am
You can hilite the folders, right clk on them and choose to open them in "new tabs". Then you only have to clk between the tabs to quickly view them. You could open them all in new windows if you wished.
I hate tabs... :mrgreen:
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
Spearmint2
Level 16
Level 16
Posts: 6874
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Backgrounds - Recursive Folders

Post by Spearmint2 » Sun Oct 20, 2019 2:53 am

smurphos wrote:
Sun Oct 20, 2019 2:29 am
Spearmint2 wrote:
Sun Oct 20, 2019 2:01 am
You can hilite the folders, right clk on them and choose to open them in "new tabs". Then you only have to clk between the tabs to quickly view them. You could open them all in new windows if you wished.
I hate tabs... :mrgreen:
Well, when it's all you have....
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

User avatar
smurphos
Level 13
Level 13
Posts: 4541
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Backgrounds - Recursive Folders

Post by smurphos » Sun Oct 20, 2019 3:16 am

Spearmint2 wrote:
Sun Oct 20, 2019 2:53 am
Well, when it's all you have....
I'm not entirely sure of the relevance of using the file manager in tabbed mode or not is to this thread to be honest? Its about the limitations of Cinnamon's backgrounds settings module.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
~FLOW~
Level 2
Level 2
Posts: 82
Joined: Tue Mar 12, 2013 3:23 am

Re: Backgrounds - Recursive Folders

Post by ~FLOW~ » Sun Oct 20, 2019 3:29 am

I tried a test ...
1. I made a "test" folder
2. and outside folder "1" and "2" with a couple of pictures.
3. Inside "test" I made shortcuts from "1" and "2"
Test.png
4. In Backgrounds I have added the folder "test" but it does not show any photos.
back.png
Linux Mint 19.2
Cinnamon 4
Kernel 5

Be patient !!
What seams easy for you now, for a newbie might be a monumental helping hand.
An efficient pack will move as fast as the slowest member.

User avatar
smurphos
Level 13
Level 13
Posts: 4541
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Backgrounds - Recursive Folders

Post by smurphos » Sun Oct 20, 2019 3:37 am

Symlinks to the folders doesn't work as I've already stated - it's no different to having the actual subfolders inside test. You need symlinks to the images inside the subfolders.

All I've offered it a workaround that's light on diskspace, doesn't involve actually moving images and an example command line way to set it up in a few seconds even with thousands of images.

Image
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
~FLOW~
Level 2
Level 2
Posts: 82
Joined: Tue Mar 12, 2013 3:23 am

Re: Backgrounds - Recursive Folders

Post by ~FLOW~ » Sun Oct 20, 2019 5:46 am

I understand now !!
I will try
Linux Mint 19.2
Cinnamon 4
Kernel 5

Be patient !!
What seams easy for you now, for a newbie might be a monumental helping hand.
An efficient pack will move as fast as the slowest member.

User avatar
~FLOW~
Level 2
Level 2
Posts: 82
Joined: Tue Mar 12, 2013 3:23 am

Re: Backgrounds - Recursive Folders

Post by ~FLOW~ » Sun Oct 20, 2019 6:06 am

I'm almost there :shock:
but don't really understand how to use ln -s {} ./{} \; and find type in the same line.
Would you be so kind to write a comand line to symlink all the jpeg files in folders 1 and 2,
all in the folder Test ?
I will adjust the path after.
Thank you !
Linux Mint 19.2
Cinnamon 4
Kernel 5

Be patient !!
What seams easy for you now, for a newbie might be a monumental helping hand.
An efficient pack will move as fast as the slowest member.

Post Reply

Return to “Software & Applications”