MX-23_fluxbox_alpha2_x64 released for testing

Message
Author
User avatar
dolphin_oracle
Developer
Posts: 22689
Joined: Sun Dec 16, 2007 12:17 pm

Re: MX-23_fluxbox_alpha2_x64 released for testing

#301 Post by dolphin_oracle »

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

User avatar
siamhie
Global Moderator
Posts: 3755
Joined: Fri Aug 20, 2021 5:45 pm

Re: MX-23_fluxbox_alpha2_x64 released for testing

#302 Post by siamhie »

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.

User avatar
fehlix
Developer
Posts: 12886
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX-23_fluxbox_alpha2_x64 released for testing

#303 Post by fehlix »

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                                                            │
OK, thanks for "translating" into something more understandable.
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.
That probably one way to do solve it.

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";};
On way to "fix" this issue, would be to check if anything left to do:
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";
  };
};


User avatar
dolphin_oracle
Developer
Posts: 22689
Joined: Sun Dec 16, 2007 12:17 pm

Re: MX-23_fluxbox_alpha2_x64 released for testing

#304 Post by dolphin_oracle »

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

User avatar
fehlix
Developer
Posts: 12886
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX-23_fluxbox_alpha2_x64 released for testing

#305 Post by fehlix »

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

User avatar
siamhie
Global Moderator
Posts: 3755
Joined: Fri Aug 20, 2021 5:45 pm

Re: MX-23_fluxbox_alpha2_x64 released for testing

#306 Post by siamhie »

@fehlix @dolphin_oracle After upgrading these packages just now

updates.png

I no longer see the double message. Thank you. :yay:

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.

User avatar
Jerry3904
Administrator
Posts: 23495
Joined: Wed Jul 19, 2006 6:13 am

Re: MX-23_fluxbox_alpha2_x64 released for testing

#307 Post by Jerry3904 »

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

User avatar
dolphin_oracle
Developer
Posts: 22689
Joined: Sun Dec 16, 2007 12:17 pm

Re: MX-23_fluxbox_alpha2_x64 released for testing

#308 Post by dolphin_oracle »

fehlix wrote: Sat May 20, 2023 3:17 pm
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.
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.
I set this new configuration file up per your post.

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";
  };
};
I updated the config but kept the cooldown.
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/

User avatar
fehlix
Developer
Posts: 12886
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX-23_fluxbox_alpha2_x64 released for testing

#309 Post by fehlix »

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.
try this:

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";
  };
};
which seems to do it: runs mxfb-menu-generator only once and only if any desktop files have been installed or removed with both apt or nala.

User avatar
siamhie
Global Moderator
Posts: 3755
Joined: Fri Aug 20, 2021 5:45 pm

Re: MX-23_fluxbox_alpha2_x64 released for testing

#310 Post by siamhie »

Jerry3904 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?
@Jerry3904
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.

Post Reply

Return to “General”