MX-23_fluxbox_alpha2_x64 released for testing
- dolphin_oracle
- Developer
- Posts: 22689
- Joined: Sun Dec 16, 2007 12:17 pm
Re: MX-23_fluxbox_alpha2_x64 released for testing
its a nala thing. we recently decided to use nala as the backend in apt-notifier.
I just sent an update to mxfb-accessories that will enforce a 5 second cooldown on mxfb-menu-generator. its enough that shoudl stop double running with nala but not enough to effect regular usage.
I just sent an update to mxfb-accessories that will enforce a 5 second cooldown on mxfb-menu-generator. its enough that shoudl stop double running with nala but not enough to effect regular usage.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/
Re: MX-23_fluxbox_alpha2_x64 released for testing
dolphin_oracle wrote: Sat May 20, 2023 12:51 pm its a nala thing. we recently decided to use nala as the backend in apt-notifier.
I just sent an update to mxfb-accessories that will enforce a 5 second cooldown on mxfb-menu-generator. its enough that shoudl stop double running with nala but not enough to effect regular usage.
+1
@dolphin_oracle I figured it was a harmless message. It just caught me off-guard.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.
Re: MX-23_fluxbox_alpha2_x64 released for testing
OK, thanks for "translating" into something more understandable.dolphin_oracle wrote: Sat May 20, 2023 12:04 pm sorry @fehlix I missed that the report was on mxpi.
I think they mean apt-notifier. fluxbox menu generation is triggered by /etc/apt/apt.conf.d/00exectmp whenever apps are removed or installed. nala triggers this twice in a rough.
Code: Select all
│Please wait, creating menu file - stored in /home/dolphin/.fluxbox/submenus/full_menu │ │Menu file created and ready to be used │ │Please wait, creating menu file - stored in /home/dolphin/.fluxbox/submenus/full_menu │ │Menu file created and ready to be used │
That probably one way to do solve it.dolphin_oracle wrote: Sat May 20, 2023 12:51 pm its a nala thing. we recently decided to use nala as the backend in apt-notifier.
I just sent an update to mxfb-accessories that will enforce a 5 second cooldown on mxfb-menu-generator. its enough that shoudl stop double running with nala but not enough to effect regular usage.
But is not only a nala issue, and maybe solved something like this
The issue regarding running twice mxfb-menu-generator relates to an issue with the use apt-conf trigger, where the DPkg::Post-Invoke is utilized.
This apt-conf DPkg::Post-Invoke trigger is run after every dpkg invocation by apt or apt based tools.
cat /etc/apt/apt.conf.d/00exectmp
Code: Select all
DPkg::Post-Invoke {"if [ -x /usr/bin/mxfb-menu-generator ]; then su $(logname) /usr/bin/mxfb-menu-generator auto; fi";};
Eg. like this indicated by the following sugestion:
My suggestions for a fix:
* First suggest to give the conf file a proper name.
So instead of /etc/apt/apt.conf.d/00exectmp call it what it's actually doing like
/etc/apt/apt.conf.d/00-mxfb-menu-generator
* Next: adjust to check for every dpkg invocation something left todo for the menu generator,
to avoid running it twice or more [+++EDIT+++] or if it needs to run at all :
The content of the new conf file 00-mxfb-menu-generator could look like this:
/etc/apt/apt.conf.d/00-mxfb-menu-generator
Code: Select all
// Update MX fluxbox applications menu if needed
// file /etc/apt/apt.conf.d/00-mxfb-menu-generator
DPkg {
Pre-Invoke {
"if [ -x /usr/bin/mxfb-menu-generator ]; then /usr/bin/stat -c %Y /usr/share/applications /usr/share/applications/antix 2>/dev/null > /tmp/dpkg-pre-invoke-timestamp; fi";
};
Post-Invoke {
"if [ -x /usr/bin/mxfb-menu-generator ]; then /usr/bin/stat -c %Y /usr/share/applications /usr/share/applications/antix 2>/dev/null > /tmp/dpkg-post-invoke-timestamp; /usr/bin/cmp -s /tmp/dpkg-pre-invoke-timestamp /tmp/dpkg-post-invoke-timestamp || su $(logname) /usr/bin/mxfb-menu-generator auto; fi";
};
};
- dolphin_oracle
- Developer
- Posts: 22689
- Joined: Sun Dec 16, 2007 12:17 pm
Re: MX-23_fluxbox_alpha2_x64 released for testing
agree that its potentially not just nala, but in practice the double run happens with nala.
we would need some logic for a postinstall script to remove /etc/apt/apt.conf.d/00exectmp. just removing it from the package does not remove it from /etc.
we would need some logic for a postinstall script to remove /etc/apt/apt.conf.d/00exectmp. just removing it from the package does not remove it from /etc.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/
Re: MX-23_fluxbox_alpha2_x64 released for testing
Note: The proposed "fix" would also prevent the mxfb menu generator from running, even if nothing was changed to the menu items after the upgrade. I think this is currently the case with every upgrade.dolphin_oracle wrote: Sat May 20, 2023 2:34 pm agree that its potentially not just nala, but in practice the double run happens with nala.
we would need some logic for a postinstall script to remove /etc/apt/apt.conf.d/00exectmp. just removing it from the package does not remove it from /etc.
Re: MX-23_fluxbox_alpha2_x64 released for testing
@fehlix @dolphin_oracle After upgrading these packages just now
I no longer see the double message. Thank you.
I no longer see the double message. Thank you.

Code: Select all
"Please wait, creating menu file - stored in /home/siamhie/.fluxbox/submenus/full_menu"
You do not have the required permissions to view the files attached to this post.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.
Re: MX-23_fluxbox_alpha2_x64 released for testing
Exit Options: I never use it but was just testing and noticed when suspending with it that the icon bar was still visible when I activated the laptop again by pressing the space bar or something equivalent. That means that I have an extra keystroke (ESC) which is not terribly troublesome, but would be more annoying for users who do not know how to cancel it.
Is this expected behavior?
Is this expected behavior?
Production: MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin
- dolphin_oracle
- Developer
- Posts: 22689
- Joined: Sun Dec 16, 2007 12:17 pm
Re: MX-23_fluxbox_alpha2_x64 released for testing
I set this new configuration file up per your post.fehlix wrote: Sat May 20, 2023 3:17 pmNote: The proposed "fix" would also prevent the mxfb menu generator from running, even if nothing was changed to the menu items after the upgrade. I think this is currently the case with every upgrade.dolphin_oracle wrote: Sat May 20, 2023 2:34 pm agree that its potentially not just nala, but in practice the double run happens with nala.
we would need some logic for a postinstall script to remove /etc/apt/apt.conf.d/00exectmp. just removing it from the package does not remove it from /etc.
the config does prevent running of the menu update when there is nothing new in /usr/share/applications/*** but, when nala does execute mxfb-menu-generator it still executes mxfb-menu-generator twice.
I've got the file name migration figured out.
file contents:
Code: Select all
// Update MX fluxbox applications menu if needed
// file /etc/apt/apt.conf.d/00-mxfb-menu-generator
DPkg {
Pre-Invoke {
"if [ -x /usr/bin/mxfb-menu-generator ]; then /usr/bin/stat -c %Y /usr/share/applications /usr/share/applications/antix 2>/dev/null > /tmp/dpkg-pre-invoke-timestamp; fi";
};
Post-Invoke {
"if [ -x /usr/bin/mxfb-menu-generator ]; then /usr/bin/stat -c %Y /usr/share/applications /usr/share/applications/antix 2>/dev/null > /tmp/dpkg-post-invoke-timestamp; /usr/bin/cmp -s /tmp/dpkg-pre-invoke-timestamp /tmp/dpkg-post-invoke-timestamp || su $(logname) /usr/bin/mxfb-menu-generator auto; fi";
};
};
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/
Re: MX-23_fluxbox_alpha2_x64 released for testing
try this:dolphin_oracle wrote: Sat May 20, 2023 4:55 pm I set this new configuration file up per your post.
I updated the config but kept the cooldown.
Code: Select all
// Update MX fluxbox applications menu if needed
// file /etc/apt/apt.conf.d/00-mxfb-menu-generator
DPkg {
Pre-Invoke {
"if [ -x /usr/bin/mxfb-menu-generator ]; then rm /tmp/dpkg-pre-invoke-timestamp 2>/dev/null; echo $(/usr/bin/stat -c %Y /usr/share/applications /usr/share/applications/antix 2>/dev/null) > /tmp/dpkg-pre-invoke-timestamp; fi";
};
Post-Invoke {
"if [ -x /usr/bin/mxfb-menu-generator ]; then rm /tmp/dpkg-post-invoke-timestamp 2>/dev/null; echo $(/usr/bin/stat -c %Y /usr/share/applications /usr/share/applications/antix 2>/dev/null) > /tmp/dpkg-post-invoke-timestamp ; /usr/bin/cmp -s /tmp/dpkg-pre-invoke-timestamp /tmp/dpkg-post-invoke-timestamp || su $(logname) /usr/bin/mxfb-menu-generator auto; cp /tmp/dpkg-post-invoke-timestamp /tmp/dpkg-pre-invoke-timestamp; fi";
};
};
Re: MX-23_fluxbox_alpha2_x64 released for testing
@Jerry3904Jerry3904 wrote: Sat May 20, 2023 3:48 pm Exit Options: I never use it but was just testing and noticed when suspending with it that the icon bar was still visible when I activated the laptop again by pressing the space bar or something equivalent. That means that I have an extra keystroke (ESC) which is not terribly troublesome, but would be more annoying for users who do not know how to cancel it.
Is this expected behavior?
Same thing happens when you select Restart Fluxbox (top icon). The icon bar remains even tho the desktop refreshes including conky closing and reopening.
It also seems that there's no time out value as the icon bar remains until ESC is pressed.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.