You are not logged in.

#81 2017-03-27 06:05:30

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,036
Website

Re: ISO building notes

I'm on a phone, quoting is a pain... no EFI needed on the CD (you had asked that earlier, too. Sorry for the silence!)

Yes, include libreoffice-gtk in the standard ISO and leave the CD pipemenu alone for now. We can move that Tip to Getting Started for better visibility.


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#82 2017-03-27 06:09:02

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,036
Website

Re: ISO building notes

re: bl-exit, minus 480 from screen width... will that work with an 800px wide netbook?

Last edited by hhh (2017-03-27 06:09:53)


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#83 2017-03-27 06:16:39

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

Re: ISO building notes

^No. That would only leave 320px for the box - it needs at least 540.

https://forums.bunsenlabs.org/viewtopic … 818#p47818

johnraff wrote:

Meanwhile, can we assume that the minimum screen width a BL user is likely to have would be 1024px?

800px netbooks wasn't something I thought of at all. But, do they have CD drives?


...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

#84 2017-03-27 06:43:48

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,036
Website

Re: ISO building notes

Lol, no! Good catch, let's go with that bl-exit config.  smile


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#85 2017-03-27 06:52:36

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,036
Website

Re: ISO building notes

I had an Acer netbook as my main rig for a year, and others here use them, but it shouldn't be many people. It's not hard to exit the config at all.

8G slow SSD, I do not miss you.

Last edited by hhh (2017-03-27 06:53:50)


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#86 2017-03-27 07:01:29

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

Re: ISO building notes

hhh wrote:

I'd vote yes on adding hard-info unless there's something more useful we could add. What did Imbecil request many months ago?

I've done some some searching, but couldn't track it down.

No-one objects if I add hardinfo to the various package lists and add a menu entry under "Accessories"?


...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

#87 2017-03-27 07:49:35

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,036
Website

Re: ISO building notes

No objection here. I'd take silence for approval right now, everyone is either busy or distracted, I guess.

iMBeCil suggested make, brought in by bl-welcome dev tools if needed, and bash-completion.

"Ass face", not my proudest moment and yet completely satisfying. Hot-head Has, I love me.


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#88 2017-03-27 08:04:31

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

Re: ISO building notes

OK

I fixed the linebreak in welcome-live-cd and will add some bl-exit config and build CD10 in a moment...


...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

#89 2017-03-27 08:10:31

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,036
Website

Re: ISO building notes

Was there any change to the volume config? My multimedia volume-up isn't doing anything, but the keyboard is nearly shot so that might be it.


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#90 2017-03-27 08:37:29

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

Re: ISO building notes

^No haven't touched volume recently. I'll do a check with the laptop I've installed the CD on.
It'll take a few min, this box has a MOBO issue and takes ~5min to wake up...

EDIT: volume keys working OK here. It must be your keyboard I guess.


...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

#91 2017-03-27 10:24:14

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

Re: ISO building notes

My clumsy python coding has managed to get bl-exit to use screen width percentage, and stops it getting too small and causing the icons to overlap. I will try and tidy it up and post the relevant section here.


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

#92 2017-03-27 10:43:21

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

Re: ISO building notes

CD10 built but not tested. Have to go, and away for 3 days so just putting it up here for now.
Should have memtest boot entry, bl-exit smaller and linebreaks fixed.

https://drive.google.com/file/d/0B7BNzo … sp=sharing
sha256: 8bc898e6d9a1c99e3bc5065aff18a2f135c527cd5a970bac8393eef06ab41880 
live-image-i386-CD10.hybrid.iso


...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

#93 2017-03-27 11:48:25

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

Re: ISO building notes

damo wrote:

My clumsy python coding has managed to get bl-exit to use screen width percentage, and stops it getting too small and causing the icons to overlap. I will try and tidy it up and post the relevant section here.

OK, so this works on screen width and height percentage. Max values can't exceed screen size, min values can't go below icon size.
In class BlexitMerlin(Blexit)

        def construct_ui(self):
            # get width of the monitor where the cursor is
            try:
                display=gtk.gdk.Display(gtk.gdk.get_display())
                screen, x, y, flags=display.get_pointer()
                curmon = screen.get_monitor_at_point(x, y)
                _, _, screen_width, screen_height = screen.get_monitor_geometry(curmon)
            except:
                self.bl_exit.on_error('Error in construct_ui: Not running under X')
            finally:
                del x, y, display, screen, curmon

            try:
                _width_adjustment = int(self.configured_theme.settings.get('windowWidthPercent', 0))
                width = (screen_width * _width_adjustment)/100
                if width > screen_width:
                    width = screen_width
                if width < 0:
                    width = -1
            except:
                self.on_debug('Problem with windowWidthPercent')
                
            try:
                _height_adjustment = int(self.configured_theme.settings.get('windowHeightPercent', 0))
                height = (screen_height * _height_adjustment)/100
                if height > screen_height:
                    height = screen_height
                
                if height < 0:
                    height = -1
            except:
                self.on_debug('Problem with windowHeightPercent')

            # self.icon_heights is initialized here, and appended to in add_button
            # Delay setting window dimensions until after building self.bva
            try:
                self.icon_heights = [int(self.configured_theme.settings.get('windowHeightPercent'))]
                self.icon_ht = []
            except:
                self.on_debug("windowHeightPercent is not set or is not an int")
                self.icon_heights = []
                pass

            # Cancel key (Escape)
            accelgroup = gtk.AccelGroup()
            key, mod = gtk.accelerator_parse('Escape')
            accelgroup.connect_group(key, mod, gtk.ACCEL_VISIBLE, gtk.main_quit)
            self.window.add_accel_group(accelgroup)

            self.button_box = gtk.HBox()
            self.button_box.set_spacing(0)

            try:
                self.button_box.set_size_request(-1, int(self.configured_theme.settings.get('windowHeightPercent', -1)))
            except:
                self.on_debug("windowHeightPercent is not set or is not an int")
                pass

            try:
                self.button_box.set_spacing(int(self.configured_theme.settings.get('buttonSpacing', 0)))
            except:
                self.on_debug("windowHeightPercent is not set or is not an int")
                pass

            self.build_button_visibility_array()
            num_buttons = 0
            for button in self.bva:
                (action, label, actionfunc, method, show, onError) = button
                if not show == 0:
                    self.add_button(show, actionfunc, label=label, btype=actionToMethod[action])
                    num_buttons +=1
            self.status = gtk.Label()
            if len(self.icon_heights) > 0:
                self.windowHeightPercent = max(self.icon_heights)
                min_width =  max(self.icon_ht) * num_buttons
                min_height = max(self.icon_ht)
            else:
                self.windowHeightPercent = -1
            spaces = self.configured_theme.settings.get('buttonSpacing') * (num_buttons + 1)
            if min_width + spaces > width:
                width = min_width + spaces
            if min_height > height:
                height = min_height
            self.window.set_size_request(width, height)
            vbox = gtk.VBox()
            vbox.pack_start(self.button_box)
            self.window.add(vbox)
            self.window.set_opacity(0)
            self.window.show_all()
            try:
                for o in range(1, int(self.configured_theme.settings.get('overallOpacity'))):
                    sleep(float(self.configured_theme.settings.get('sleepDelay')))
                    while gtk.events_pending():
                        gtk.main_iteration(False)
                        self.window.set_opacity(float(o)/100.0)
            except:
                self.on_debug("Opacity is not fully configured")
                pass
            self.window.set_keep_above(True)

In bl-exitrc I have changed "dialogHeight" to "windowHeightPercent", and "windowWidthAdjustment" to "windowWidthPercent"


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

#94 2017-03-31 06:31:28

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

Re: ISO building notes

@damo, yet again I have to shut down and go elsewhere, so too brief, but I'm wavering on whether to do an immediate upgrade of bunsen-utilities (containing your bl-exit code) for the isos right now, or not...

Of course the closer we can get the new-user experience to perfection, without requiring a post-install upgrade, the better, and I'm in two minds myself. One small point: backwards compatibility for users who are already using the old "dialogHeight" and "windowWidthAdjustment" settings... (not many probably)
Percentage sizing would certainly be a big improvement in appearance for users with very wide/narrow screens.

---

OTOH with pipemenus, I think I've got a fix (bit of work while I was offline last 3 days) for the "Mirage Image Viewer" menu thing that frees us from having to update the code later. It looks possible to have whatever app the user has chosen as "bl-image-viewer" marked in that way, and put at the top of the menu. Likewise for "bl-media-player"...

---

Has, how long before the new isos are slipping into Too Late territory?


...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

#95 2017-03-31 09:37:34

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

Re: ISO building notes

@damo I'm getting some errors with that code. I pasted it into bl-exit to replace
def construct_ui(self)
Right?

In my bl-exitrc I have 'windowHeightPercent=20'
but it's reporting: 'DEBUG bl-exit windowHeightPercent is not set or is not an int'

john@bunsen1:~$ bl-exit
DEBUG bl-exit theme config option windowWidthAdjustment is not set for theme dark
DEBUG bl-exit theme config option dialogHeight is not set for theme dark
Loading theme 'Dark Theme' by MerlinElMago
DEBUG bl-exit windowHeightPercent is not set or is not an int
DEBUG bl-exit config section default not present
DEBUG bl-exit config section cancel show=1
DEBUG bl-exit config section cancel onerror=0
DEBUG bl-exit config section default not present
DEBUG bl-exit config section logout show=1
DEBUG bl-exit config section logout onerror=0
DEBUG bl-exit config section default not present
DEBUG bl-exit config section suspend show=1
DEBUG bl-exit config section suspend onerror=0
DEBUG bl-exit config section default not present
DEBUG bl-exit config section hibernate show=0
DEBUG bl-exit config section hibernate onerror=0
DEBUG bl-exit config section default not present
DEBUG bl-exit config section hybridsleep show=0
DEBUG bl-exit config section hybridsleep onerror=0
DEBUG bl-exit config section default not present
DEBUG bl-exit config section reboot show=1
DEBUG bl-exit config section reboot onerror=0
DEBUG bl-exit config section default not present
DEBUG bl-exit config section poweroff show=1
DEBUG bl-exit config section poweroff onerror=0
Traceback (most recent call last):
  File "/usr/bin/bl-exit", line 868, in <module>
    sys.exit(main())
  File "/usr/bin/bl-exit", line 865, in main
    return blexit.main()
  File "/usr/bin/bl-exit", line 703, in main
    self.construct_ui()
  File "/usr/bin/bl-exit", line 674, in construct_ui
    min_width =  max(self.icon_ht) * num_buttons
AttributeError: 'BlexitMerlin' object has no attribute 'icon_ht'

And here's $HOME/config/bl-exit/bl-exitrc (minus comments):

# DEFAULT BUTTON CONFIGURATION FOR bl-exit

### BUTTONS ############################################################
[cancel]
show = always
onerror = novisual

[logout]
show = always
onerror = novisual

[suspend]
show = always
onerror = novisual

[sleep]
show = always
onerror = novisual

[hibernate]
show = never
onerror = novisual

[hybridsleep]
show = never
onerror = novisual

[reboot]
show = always
onerror = novisual

[poweroff]
show = always
onerror = novisual

[style]
dir = styles
rcfile = grey.rc

### THEME to be used ###################################################
# When the [theme] section is not present or commented out
# or the [theme] section is present and the 'theme' entry is set to
# 'classic', use the 'classic' ButtonBox layout.
[theme]
# set the theme
theme = dark

### THEME settings #####################################################
[bunsen-small]
name = Default small Bunsen theme
author = BunsenLabs
#Overall height of the dialog.
dialogHeight=130
#Delay for the fade in counter
sleepDelay=0.001
#OverallOpacity of the dialog (0-100)
overallOpacity=80
#Space between Buttons
buttonSpacing=0
# path to icon files
iconpath=/usr/share/images/bunsen/exit/dark
#Button textures (i.e. the images on them)
buttonImageCancel=cancel.png
buttonImagePowerOff=poweroff.png
buttonImageReboot=reboot.png
buttonImageSuspend=sleep.png
buttonImageLogout=logout.png
buttonImageHybridSleep=hibernate.png
buttonImageHibernate=hibernate.png
# windowWidthAdjustment - subtract this number (px) from monitor width to get window width
windowWidthAdjustment=0
windowHeightPercent=20
windowWidthPercent=40

[dark]
name=Dark Theme
author=MerlinElMago
#Overall height of the dialog.
#dialogHeight=150
#Delay for the fade in counter
sleepDelay=0.003
#OverallOpacity of the dialog (0-100)
overallOpacity=100
#Space between Buttons
buttonSpacing=5
# path to icon files
iconpath=/usr/share/images/bunsen/exit/dark
#Button textures (i.e. the images on them)
buttonImageCancel=cancel.png
buttonImagePoweroff=poweroff.png
buttonImageReboot=reboot.png
buttonImageSuspend=sleep.png
buttonImageLogout=logout.png
buttonImageHybridSleep=hibernate.png
buttonImageHibernate=hibernate.png
# windowWidthAdjustment - subtract this number (px) from monitor width to get window width
#windowWidthAdjustment=0
windowHeightPercent=20
windowWidthPercent=40

[light]
name=Light Theme
author=BunsenLabs
#Overall height of the dialog.
dialogHeight=150
#Delay for the fade in counter
sleepDelay=0.003
#OverallOpacity of the dialog (0-100)
overallOpacity=100
#Space between Buttons
buttonSpacing=5
# path to icon files
iconpath=/usr/share/images/bunsen/exit/light
#Button textures (i.e. the images on them)
buttonImageCancel=cancel.png
buttonImagePoweroff=poweroff.png
buttonImageReboot=reboot.png
buttonImageSuspend=sleep.png
buttonImageLogout=logout.png
buttonImageHybridSleep=hibernate.png
buttonImageHibernate=hibernate.png
# windowWidthAdjustment - subtract this number (px) from monitor width to get window width
windowWidthAdjustment=

[minimal]
name = Minimal working theme
author = BunsenLabs
#Delay for the fade in counter
sleepDelay=0.003
#OverallOpacity of the dialog (0-100)
overallOpacity=75
# path to icon files
iconpath=/usr/share/images/bunsen/exit/light
#Button textures (i.e. the images on them)
buttonImageCancel=cancel.png
buttonImagePowerOff=poweroff.png
buttonImageReboot=reboot.png
buttonImageSuspend=sleep.png
buttonImageLogout=logout.png
buttonImageHybridSleep=hibernate.png
buttonImageHibernate=hibernate.png
# windowWidthAdjustment - subtract this number (px) from monitor width to get window width
windowWidthAdjustment=

...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

#96 2017-03-31 12:19:59

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,036
Website

Re: ISO building notes

@John, let's follow Debian policy again and release, more or less, when it's ready. smile I think the pipemenu fix would be good to have.

I'll try and carve out some time to do some forum re-organizing. The EFI ISOs that you've posted just need to be in a more prominenet place until the "Official" ones are out.

If we could release before or on April 29th, our Hydrogen 1 year anniversary, that would be great. But again, not critical. More damage can be done by fixing a broken release than by delaying it, IMO, and since this is about EFI support and a few niggles, let's get the niggles right. smile


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#97 2017-03-31 14:12:13

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

Re: ISO building notes

@john, that code is nowhere near good enough to go in bl-exit - it was just as a proof-of-concept, and anyway I have seen several errors in it! Some of the original vars don't do what I thought they did, so it is a happy accident that the dialog resizes reasonably 8o

FWIW you still have 'windowWidthAdjustment' and 'dialogHeight' uncommented in your bl-exitrc.


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

#98 2017-03-31 18:01:48

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

Re: ISO building notes

I, not being a coder, have to agree with hhh:  Release when it's ready!

BL should be about quality not quantity.  Quantity being programmed release dates, ready or not.  Look at the problems with Ubuntu releases. (Well, I'm going back to the time when I used Ubuntu and Xubuntu).

And if there needs to be a public statement to that affect I'm willing to post one and field the "But I want it now!" garbage and assure the people that it is "actively" being developed.

Last edited by johnraff-admin (2022-07-03 04:13:55)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#99 2017-03-31 18:39:08

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

Re: ISO building notes

Regarding bl-exit, the fancy python gui is very nice and all, but seems like a remarkably complex process. Wouldn't a simple yad-based dialog be more in keeping with BL, and put the python BLexit one in bunsen-extras?


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

#100 2017-03-31 18:55:55

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,036
Website

Re: ISO building notes

damo wrote:

Regarding bl-exit, the fancy python gui is very nice and all, but seems like a remarkably complex process. Wouldn't a simple yad-based dialog be more in keeping with BL, and put the python BLexit one in bunsen-extras?

+1.

I've been playing with it and agree that it's complex. We really just need to execute openbox --exit and systemctl poweroff/reboot/suspend/hibernate, don't we?

@damo and The Team, I remember during the discussion about divulging the live-build configs that John raised the point that everything that could be discussed in public, should be. I suggest that we adopt that by raising new proposals in the Development forum and discussing them there. If the noise level gets too high, we can bring the discussion here. If it's an issue where one is not sure if it should be private, open it here first.

How does that sound?

BTW, this was a good one to raise here first, I have a feeling there will be a flood of input from our members before John even has time to respond. wink


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

Board footer

Powered by FluxBB