You are not logged in.

#21 2016-03-22 05:40:31

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: Background image install paths.

@xaos52 I sort-of see what you mean. @anyone try

find /usr/share -type d -name 'images' -print0 | xargs -0 ls

In those "images" subdirs there's nothing but... images.

The only exception is the higher level directory /usr/share/images.

OTOH there's certainly no requirement that imagefiles have to go in "images" subdirectories.
See:

find /usr/share -iname '*.png' -o -iname '*.jpg'

/usr/share/bunsen/wallpapers/bgpack_ututo/images/1920x1080a.png
is only one directory shorter than the current "dragon":
/usr/share/backgrounds/bunsen/bunsen-images/wallpapers/bl_bgpack_ututo/bl_1920x1080a.png

The proposal with support from several people earlier was:
/usr/share/images/bunsen/wallpapers/ututo/1920x1080a.png    (removing redundant name prefixes)

In the case of "wallpapers" there would be no ambiguity even if put directly under /usr/share/bunsen, but other image files under "login" or "grub" would need another subdirectory to establish that they weren't config files etc, ie:
/usr/share/bunsen/images/login
or
/usr/share/bunsen/backgrounds/login
or
/usr/share/bunsen/login/images    (just like xaos's suggestion)
etc

To see the directory paths above /usr/share currently holding (jpg or png) image files:

find /usr/share -iname '*.png' -o -iname '*.jpg' | sed -r 's|^/usr/share/(.*/).*$|\1|' | sort -u

So the most common practice seems to be to put them under /usr/share/<appname>
(And relatively few image files are in directories called "images".)

Even so, and even though the only app to use /usr/share/images atm is desktop-base, I still feel there's a certain appeal to /usr/share/images/bunsen...

---------------------------
As to the system-wallpapers link we put in ~/Pictures/wallpapers, since there doesn't seem to be any universal standard, and packages are likely to put wallpaper images not only in /usr/share/wallpapers or /usr/share/backgrounds but also under their own personal subfolders, let's drop the link to /usr/share/backgrounds and just put one to wherever we finally decide the BunsenLabs wallpapers are going to go. icon_rolleyes.gif

---------------------------
This is a lot of fuss, but it's really our last chance to get all our install paths optimized before the main release. Changing file paths later causes disruption when people upgrade and scripts (user scripts too) get broken...

Last edited by johnraff (2016-03-23 01:49:50)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#22 2016-03-22 10:08:14

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Background image install paths.

OTOH there's certainly no requirement that imagefiles have to go in "images" subdirectories.

No requirement, no.
We have almost total freedom to choose our paths. 
Which makes every bit of organization in the chaos count.
I don't see it as a requirement either, say a 'recommendation'?

/usr/share/bunsen/wallpapers/bgpack_ututo/images/1920x1080a.png
is only one directory shorter than the current "dragon":
/usr/share/backgrounds/bunsen/bunsen-images/wallpapers/bl_bgpack_ututo/bl_1920x1080a.png

Yes. But does not have the repetitions that the "dragon" has.

In the case of "wallpapers" there would be no ambiguity even if put directly under /usr/share/bunsen, but other image files under "login" or "grub" would need another subdirectory to establish that they weren't config files etc, ie:
/usr/share/bunsen/images/login
or
/usr/share/bunsen/backgrounds/login
or
/usr/share/bunsen/login/images    (just like xaos's suggestion)
etc

Slight preference to my own suggestion here.

As to the system-wallpapers link we put in ~/Pictures/wallpapers, since there doesn't seem to be any universal standard, and packages are likely to put wallpaper images not only in /usr/share/wallpapers or /usr/share/backgrounds but also under their own personal subfolders, let's drop the link to /usr/share/backgrounds and just put one to wherever we finally decide the BunsenLabs wallpapers are going to go.

OK

Decision time?

Offline

#23 2016-03-22 11:46:34

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: Background image install paths.

johnraff wrote:

...
Even so, and even though the only app to use /usr/share/images atm is desktop-base, I still feel there's a certain appeal to /usr/share/images/bunsen...

As I said before, this is also what appeals to me.
---------------------------

As to the system-wallpapers link we put in ~/Pictures/wallpapers, since there doesn't seem to be any universal standard, and packages are likely to put wallpaper images not only in /usr/share/wallpapers or /usr/share/backgrounds but also under their own personal subfolders, let's drop the link to /usr/share/backgrounds and just put one to wherever we finally decide the BunsenLabs wallpapers are going to go

+1


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#24 2016-03-22 13:54:42

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Background image install paths.

Yea..I'm still of the mind that this layout would work well:

/usr/share/bunsen/login/images/  <login-wallpapers>
/usr/share/bunsen/grub/images/  <grub-wallpapers>
/usr/share/bunsen/images/  <desktop-wallpapers>
/usr/share/bunsen/wallpapers/<wallpaper-pack>/ <wallpapers>


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#25 2016-03-22 17:24:57

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Background image install paths.

Wallpapers are a personal thing - beyond the "default installed distro wallpapers".

After every install since my first #! install, I have 'copied' the default walls to my personal data partition:
/media/5/wallpapers

and that way there is no root access needed.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#26 2016-03-22 17:31:18

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Background image install paths.

^ @Sector11,
I suppose you change the nitrogen configuration file then, so that it points to /media/5/wallpapers?

Or do you have a custom script in 'miramar' or 'thunar' that allows you to set the wallpaper?

Offline

#27 2016-03-23 02:25:59

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: Background image install paths.

Sector11 wrote:

...I have 'copied' the default walls to my personal data partition:
/media/5/wallpapers

and that way there is no root access needed.

You don't need root access anyway, just to use a file as wallpaper, even if it is in the system zone. As long as its permissions are giving "others" read access, which they should be for wallpapers. (Of course if you want to modify the files then they have to be copied into your own space.)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#28 2016-03-23 02:43:59

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: Background image install paths.

OK there are basically two main options:
1) /usr/share/bunsen holds all the bunsen stuff, with "images" or "backgrounds" subdirectories to identify images.

2) /usr/share/bunsen holds docs and skel.. and maybe other stuff in the future, while
   /usr/share/images/bunsen holds backgrounds, wallpapers asciiart etc.

(2) seems to have a bit more general support, and that's what I'm tentatively suggesting here.
Linux systems always end up with stuff splattered around here and there, and even with (1) we'd still have BL files in /usr/share/icons, /usr/lib etc. etc.

Can everyone live with that basic setup (2)?
If so I'll go on to post a suggested detailed folder structure for comment/suggestions.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#29 2016-03-23 02:59:42

tknomanzr
BL Die Hard
From: Around the Bend
Registered: 2015-09-29
Posts: 1,057

Re: Background image install paths.

I think that looks good.

Offline

#30 2016-03-23 03:41:07

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Background image install paths.

+1 to option 2. would there be different directories for the backgrounds for grub and the login?
Ex:  /usr/share/images/bunsen/login/    and   /usr/share/images/bunsen/grub/   or would a combined dir work:   /usr/share/images/bunsen/walls/?   ...or was that what we were trying to avoid in the first place?


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#31 2016-03-23 10:05:46

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Background image install paths.

Can everyone live with that basic setup (2)?

Yes

Offline

#32 2016-03-23 13:40:14

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: Background image install paths.

Can everyone live with that basic setup (2)?

Yes +1


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#33 2016-03-23 17:35:27

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,067
Website

Re: Background image install paths.

Me too, looks good.

Offline

#34 2016-03-23 19:22:56

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: Background image install paths.

Can everyone live with that basic setup (2)?

Proxy vote for consensus.


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#35 2016-03-24 02:32:05

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: Background image install paths.

Before moving on, I just did a check of all the install paths our packages currently use, filtering for only the ones containing "bunsen":

john@raffles4:~/git/bunsen$ cat bunsen-{common,configs,conky,docs,images,pipemenus,themes,utilities,welcome}/debian/*.install | cut -d' ' -f2 | sort -u | grep 'bunsen'
usr/lib/bunsen
usr/lib/bunsen/bunsen-common
usr/lib/bunsen/bunsen-configs
usr/share/backgrounds/bunsen/bunsen-images
usr/share/bunsen
usr/share/bunsen/bunsen-docs
usr/share/bunsen/bunsen-images
usr/share/bunsen/skel/.config

So, we've already decided to reorganize images, but that leaves:

usr/lib/bunsen/bunsen-welcome/<scripts>
usr/lib/bunsen/bunsen-common/<include files>
usr/lib/bunsen/bunsen-configs/<user setup script>
and
usr/share/bunsen/bunsen-docs/<helpfiles>
usr/share/bunsen/skel

Do those paths need changing too? And, if so, in what way?
As I said, it's perhaps our last chance to get things perfect and I don't mind doing it, but it would mean a lot of paths in scripts and config files would have to be changed to match (in bunsen-configs, bunsen-utilities and bunsen-pipemenus mostly) and "Breaks: bunsen-something (< someversion)" lines have to be added to control files.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#36 2016-03-24 03:12:17

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Background image install paths.

I honestly see nothing wrong with these?  /usr/lib/bunsen/...  and /usr/share/bunsen/... aren't huge complex paths. and their both pretty inuitive as to what goes where.  The *only* thing I'd question is why does the user-setup-script need it's own dir. and could it share directory with the equally loneseome welcome script. If not, what other config scripts could/would be in /usr/lib/bunsen-configs ?


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#37 2016-03-24 06:59:07

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: Background image install paths.

Horizon_Brave wrote:

why does the user-setup-script need it's own dir.

It doesn't really but I put it there because it's installed by bunsen-configs.

could it share directory with the equally loneseome welcome script.

bl-welcome goes in /usr/bin because it's a script that users can run. What goes in /usr/lib/bunsen/bunsen-welcome/ is a whole bunch of files that that script sources. They shouldn't be accessed directly by users so they go in /usr/lib. And it would be confusing if other unrelated scripts went in the same directory.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#38 2016-03-24 10:32:27

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Background image install paths.

xaos52 wrote:

^ @Sector11,
I suppose you change the nitrogen configuration file then, so that it points to /media/5/wallpapers?

Or do you have a custom script in 'miramar' or 'thunar' that allows you to set the wallpaper?

Sorry, missed this.

Yes, nitrogen points to /media/5/wallpapers here.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#39 2016-03-24 10:34:08

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Background image install paths.

johnraff wrote:

(Of course if you want to modify the files then they have to be copied into your own space.)

Modifying or adding / deleting files requires root access.

Don't get me wrong, the default should go there.  I made a personal choice to move them.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#40 2016-03-24 10:51:19

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Background image install paths.

Personally, I would remove the repetition, so

usr/lib/bunsen/common
usr/lib/bunsen/configs
usr/share/bunsen/docs
usr/share/bunsen/skel/.config

Offline

Board footer

Powered by FluxBB