EasyOS Scarthgap-series version 6.4.4

Moderator: BarryK

User avatar
BarryK
Posts: 2692
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 132 times
Been thanked: 738 times

Re: EasyOS Scarthgap-series version 6.4.2

Post by BarryK »

williwaw wrote: Fri Nov 08, 2024 9:05 am
BarryK wrote: Thu Nov 07, 2024 12:25 pm
Vverve wrote: Wed Nov 06, 2024 3:00 pm

I am checking old right-click pet , that nice option it provide , run-in-terminal for executable , that feature would be nice too !!
Less click = happier users

Your wish is my command! ...well, sometimes

This request is now done, see blog post:

https://bkhome.org/news/202411/rox-righ ... minal.html

very nice addition. thanks. will the commit be limited to woofq or extended to woofqv? I second don570 suggestion for an md5sum command entry in the right click menu.

The problem with woofQV is that it is a separate project.
The changes being made in woofQ can be ported to woofQV (and hence to Quirky Void / Quantum Vis) but I will have to do it manually.

First, I want to consider an improved method for implementing Run-in-terminal, then will probably get stuck into porting to QV.

QV promises to have a simple update mechanism, just by installing a PET, which is something not yet tested.

User avatar
Federico
Posts: 288
Joined: Tue Jun 20, 2023 2:40 pm
Has thanked: 1 time
Been thanked: 36 times

KDE Dolphin - automatic contextual menu fix after system update

Post by Federico »

Dear all,
for the ones who use the KDE apps like me, I've written a small script which can be used to automatically fix the Dolphin contextual menu after the system has been updated, which is used to choose the application for opening a particular file, among all the available ones, and to define file associations for any extension within the system.

Code: Select all

#!/bin/bash

file="libkf5service-data_5.103.0-1_all.deb";

Australia="http://ftp.au.debian.org/debian/pool/main/k/kservice/";
Address=$Australia;

#EU_Germany="http://ftp.de.debian.org/debian/pool/main/k/kservice/";
#Address=$EU_Germany;

#North_America="http://ftp.us.debian.org/debian/pool/main/k/kservice/";
#Address=$North_America;

#Sud_America="http://download.unesp.br/linux/debian/pool/main/k/kservice/";
#Address=$Sud_America;

#China="http://ftp.cn.debian.org/debian/pool/main/k/kservice/";
#Address=$China;

#Africa="http://debian.mirror.ac.za/debian/pool/main/k/kservice/";
#Address=$Africa;

# Download the package libkf5service-data_5.103.0-1_all.deb and save it onto /files/archive 
cd /files/archive/
U=$Address;
FILE=$file;
[[ -z "$U" ]] && echo -e "Usage: $0 repo-url [file to download]\nwithout give \"file to download\" this script will list the files inside the repo\n";
for i in $(curl -l "$U" 2>/dev/null|grep -i 'href='|sed -e 's/.*href=//g' -e 's/>.*//g' -e 's/"//g'|grep -v '/$'|grep "$FILE")
do
 if [[ -z "$FILE" ]]
 then
  echo "FILE: $i"
 else
  echo "Download file: $i"
  curl -q "${U}/${i}" --output "$i" 2>/dev/null
  ls -la "$i"
 fi
done

sleep 3;

# Extract file kf5-applications.menu from package and save it onto /etc/xdg/menus
dpkg-deb --fsys-tarfile libkf5service-data_5.103.0-1_all.deb | tar -xOf - ./etc/xdg/menus/kf5-applications.menu > /etc/xdg/menus/kf5-applications.menu 

sleep 1;

# Close Dolphin instances if present
kill `pidof dolphin`;

sleep 1;

# Rebuild Dolphin applications-contextual-menu
kbuildsycoca5 --noincremental;

The curl package is needed (also available on the Scarthgap repository). This script works also fine on Daedalus. What this script does is extremely simple:

- Downloads the package libkf5service-data_5.103.0-1_all.deb from the Debian repository and saves it onto the /files/archive folder
- Extracts the file kf5-applications.menu from it onto the folder /etc/xdg/menus
- Closes all active Dolphin instances if present
- Executes the needed command to rebuild the Dolphin menu

The default url for the package is the australian one. If you want to select another location, just comment the 2 lines for Australia and uncomment the 2 lines for the desired source location. Just name this script as you wish (give it obviously the .sh file extension) and don't forget to give it execution permissions.

Last edited by Federico on Mon Nov 11, 2024 2:58 pm, edited 1 time in total.

Desktop PC
Case: Sharkoon S25-W MB: Asus Rog Strix B550-A PSU: XFX Pro 750W CPU: AMD Ryzen 5700X @ 4.6 GHz RAM: Corsair 32 GB DDR4 @ 3000 MHz Heatsink: Scythe Mugen 5 rev. B VGA: Asus Tuf RTX 3080 12 GB OC

Laptop PC: Asus Zenbook UX325E

User avatar
BarryK
Posts: 2692
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 132 times
Been thanked: 738 times

Re: KDE Dolphin - automatic contextual menu fix after system update

Post by BarryK »

Federico wrote: Sun Nov 10, 2024 2:52 pm

for the ones who use the KDE apps like me, I've written a small script which can be used to automatically fix the Dolphin contextual menu after the system has been updated, which is used to choose the application for opening a particular file, among all the installed applications, and to define file associations for any extension within the system.

I looked at the man page for kbuildsycoca5:

https://man.archlinux.org/man/kbuildsycoca5.8.en

...note, the debian kbuildsycoca5 does not support that "--global" option.

The utility writes to file ${XDG_CACHE_HOME}/ksycoca5_*
where XDG_CACHE_HOME=${HOME}/.cache
for Dolphin running as root, that will be /root/.cache

A session save or update, .cache folders are not saved.
So it would seem that all you need to do is save that file /root/.cache/ksycoca5_* somewhere and restore it.

But what I don't understand is why file associations work when dolphin is first installed, when haven't run that kbuildsycoca5

User avatar
Federico
Posts: 288
Joined: Tue Jun 20, 2023 2:40 pm
Has thanked: 1 time
Been thanked: 36 times

Re: KDE Dolphin - automatic contextual menu fix after system update

Post by Federico »

BarryK wrote: Mon Nov 11, 2024 4:16 am

I looked at the man page for kbuildsycoca5:

https://man.archlinux.org/man/kbuildsycoca5.8.en

...note, the debian kbuildsycoca5 does not support that "--global" option.

The utility writes to file ${XDG_CACHE_HOME}/ksycoca5_*
where XDG_CACHE_HOME=${HOME}/.cache
for Dolphin running as root, that will be /root/.cache

A session save or update, .cache folders are not saved.
So it would seem that all you need to do is save that file /root/.cache/ksycoca5_* somewhere and restore it.

But what I don't understand is why file associations work when dolphin is first installed, when haven't run that kbuildsycoca5

Dear Barry,
I wouldn't like to say anything incorrect but my experience is that the file kf5-applications.menu gets deleted after a while (probably after the next system boot - not sure about that -). So just copying the file there again does not look to be a permanent solution.
For sure instead, re-executing the command kbuildsycoca5 --noincremental is a permanent solution which works until the next system update.
Anyway, what really matters in my opinion is just the idea. We could add a menu folder for KDE Dolphin which contains a link to this script called "Dolphin fix after system update" and maybe also a link for installing the Breeze icon theme, why not?
In this way the integration of the KDE apps wouldn't still be perfect but would be at least much more comfortable I think.

Thanks so much for the attention.

Best regards.

Desktop PC
Case: Sharkoon S25-W MB: Asus Rog Strix B550-A PSU: XFX Pro 750W CPU: AMD Ryzen 5700X @ 4.6 GHz RAM: Corsair 32 GB DDR4 @ 3000 MHz Heatsink: Scythe Mugen 5 rev. B VGA: Asus Tuf RTX 3080 12 GB OC

Laptop PC: Asus Zenbook UX325E

Caramel
Posts: 476
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 100 times
Been thanked: 78 times

Re: KDE Dolphin - automatic contextual menu fix after system update

Post by Caramel »

Federico wrote: Mon Nov 11, 2024 6:49 am

...
I wouldn't like to say anything incorrect but my experience is that the file kf5-applications.menu gets deleted after a while (probably after the next system boot - not sure about that -).
...

(EasyOS Scarthgap 6.4.2)

In the script init (inside initrd), after a update, the modifications of the directory /etc/xdg/ are deleted.

Lines 1756 to 1759 :

#200830 this folder must always be pristine...
#20230718 this also erases etc/xdg/rox.sourceforge.net which has right-click menu for user-installed apps,
# so have put code into /etc/rc.d/rc.update to run build-rox-sendto after switch_root...
[ -d /mnt/${WKG_DEV}/${WKG_DIR}.session/etc/xdg ] && rm -rf /mnt/${WKG_DEV}/${WKG_DIR}.session/etc/xdg

This code is executed only after an update
See line 1608 :

if [ ! -d /mnt/${WKG_DEV}/${WKG_DIR}releases/easy-${INIT_DISTRO_VERSION} ];then

User avatar
BarryK
Posts: 2692
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 132 times
Been thanked: 738 times

Re: KDE Dolphin - automatic contextual menu fix after system update

Post by BarryK »

Caramel wrote: Mon Nov 11, 2024 6:49 pm
Federico wrote: Mon Nov 11, 2024 6:49 am

...
I wouldn't like to say anything incorrect but my experience is that the file kf5-applications.menu gets deleted after a while (probably after the next system boot - not sure about that -).
...

(EasyOS Scarthgap 6.4.2)

In the script init (inside initrd), after a update, the modifications of the directory /etc/xdg/ are deleted.

Lines 1756 to 1759 :

#200830 this folder must always be pristine...
#20230718 this also erases etc/xdg/rox.sourceforge.net which has right-click menu for user-installed apps,
# so have put code into /etc/rc.d/rc.update to run build-rox-sendto after switch_root...
[ -d /mnt/${WKG_DEV}/${WKG_DIR}.session/etc/xdg ] && rm -rf /mnt/${WKG_DEV}/${WKG_DIR}.session/etc/xdg

This code is executed only after an update
See line 1608 :

if [ ! -d /mnt/${WKG_DEV}/${WKG_DIR}releases/easy-${INIT_DISTRO_VERSION} ];then

Thanks for finding that.
Instead of putting in a hack to preserve just that one file, fixed it a bit more laboriously:

Code: Select all

 #200830 this folder must always be pristine...
 #20230718 this also erases etc/xdg/rox.sourceforge.net which has right-click menu for user-installed apps,
 # so have put code into /etc/rc.d/rc.update to run build-rox-sendto after switch_root...
 #20241112 a kde pkg installs /etc/xdg/menus/kf5-applications.menu, need to retain...
 #[ -d /mnt/${WKG_DEV}/${WKG_DIR}.session/etc/xdg ] && rm -rf /mnt/${WKG_DEV}/${WKG_DIR}.session/etc/xdg
 if [ -d /mnt/${WKG_DEV}/${WKG_DIR}.session/etc/xdg ];then
  for aD in autostart rox.sourceforge.net templates Xwayland-session.d
  do
   if [ -d /mnt/${WKG_DEV}/${WKG_DIR}.session/etc/xdg/${aD} ];then
    rm -rf /mnt/${WKG_DEV}/${WKG_DIR}.session/etc/xdg/${aD}
   fi
  done
  if [ -d /mnt/${WKG_DEV}/${WKG_DIR}.session/etc/xdg/menus ];then
   for aF in archived-cascading archived-inline
   do
    if [ -d /mnt/${WKG_DEV}/${WKG_DIR}.session/etc/xdg/menus/${aF} ];then
     rm -rf /mnt/${WKG_DEV}/${WKG_DIR}.session/etc/xdg/menus/${aF}
    fi
   done
   for aF in applications.menu hierarchy preferences.menu puppy-business.menu puppy-calculate.menu puppy-desktop.menu puppy-document.menu puppy-filesystem.menu puppy-fun.menu puppy-graphic.menu puppy-internet.menu puppy-multimedia.menu puppy-network.menu puppy-personal.menu puppy-setup.menu puppy-system.menu puppy-utility.menu settings.menu
   do
    if [ -f /mnt/${WKG_DEV}/${WKG_DIR}.session/etc/xdg/menus/${aF} ];then
     rm -f /mnt/${WKG_DEV}/${WKG_DIR}.session/etc/xdg/menus/${aF}
    fi
   done
  fi
 fi
User avatar
Federico
Posts: 288
Joined: Tue Jun 20, 2023 2:40 pm
Has thanked: 1 time
Been thanked: 36 times

KDE Dolphin - automatic contextual menu fix after system update

Post by Federico »

@ BarryK and Caramel,

Dear BarryK and Caramel,

this looks really good and sounds very promising!

Do you mean that Dolphin will keep on working perfectly, even after a system update?

Will this also work on Easy Daedalus (on which it's even more important)?

Thank you so much!

Desktop PC
Case: Sharkoon S25-W MB: Asus Rog Strix B550-A PSU: XFX Pro 750W CPU: AMD Ryzen 5700X @ 4.6 GHz RAM: Corsair 32 GB DDR4 @ 3000 MHz Heatsink: Scythe Mugen 5 rev. B VGA: Asus Tuf RTX 3080 12 GB OC

Laptop PC: Asus Zenbook UX325E

User avatar
BarryK
Posts: 2692
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 132 times
Been thanked: 738 times

Re: KDE Dolphin - automatic contextual menu fix after system update

Post by BarryK »

Federico wrote: Tue Nov 12, 2024 7:38 am

Do you mean that Dolphin will keep on working perfectly, even after a system update?

Will this also work on Easy Daedalus (on which it's even more important)?

Yes

User avatar
Federico
Posts: 288
Joined: Tue Jun 20, 2023 2:40 pm
Has thanked: 1 time
Been thanked: 36 times

Re: KDE Dolphin - automatic contextual menu fix after system update

Post by Federico »

BarryK wrote: Tue Nov 12, 2024 3:00 pm

Yes

Dear Barry, if this is true, these are really great news!
I'm looking forward to testing the next versions of Easy Scarthgap and Easy Daedalus, featuring these corrections and also the new JWM 2.4.7 (to be honest I don't think that there will be many reasons to stay with Scarthgap if Daedalus gets perfected).

This could be really a great hit in the Linux world: a compact and jet extremely powerful and versatile operating system, which opens up the same possibilities of the main-stream distros by using just one quarter of the disk space, removing most unnecessary logic procedures, adding many useful security features and even being extremely suitable for running on flash memories.

I apologize in advance for not having much time for testing. I also hope that the network applet will be fixed on Daedalus: it's the last thing with which I'm having trouble on Daedalus, but maybe it only concerns my hardware, even though I must report, that it works perfectly on Scarthgap and on the same hardware.

Desktop PC
Case: Sharkoon S25-W MB: Asus Rog Strix B550-A PSU: XFX Pro 750W CPU: AMD Ryzen 5700X @ 4.6 GHz RAM: Corsair 32 GB DDR4 @ 3000 MHz Heatsink: Scythe Mugen 5 rev. B VGA: Asus Tuf RTX 3080 12 GB OC

Laptop PC: Asus Zenbook UX325E

User avatar
BarryK
Posts: 2692
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 132 times
Been thanked: 738 times

Re: EasyOS Scarthgap-series version 6.4.4

Post by BarryK »

Simultaneous releases of Scarthgap and Daedalus, both version 6.4.4.
Blog announcement:

https://bkhome.org/news/202411/easyos-s ... eases.html

james2
Posts: 35
Joined: Sat Jun 29, 2024 4:12 pm
Has thanked: 14 times
Been thanked: 1 time

Re: EasyOS Scarthgap-series version 6.4.4

Post by james2 »

Both updated, all smooth going. brilliant. Big thx to Barry and all who got us here.

User avatar
BarryK
Posts: 2692
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 132 times
Been thanked: 738 times

Re: KDE Dolphin - automatic contextual menu fix after system update

Post by BarryK »

Federico wrote: Wed Nov 13, 2024 9:01 pm

I'm looking forward to testing the next versions of Easy Scarthgap and Easy Daedalus, featuring these corrections and also the new JWM 2.4.7

While I remember:
I only updated jwm to 2.4.7 in Scarthgap, not in Daedalus.

But, jwm is one of those things that just works, regardless of version, so you are unlikely to notice any change with 2.4.7 compared with older versions.

User avatar
BarryK
Posts: 2692
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 132 times
Been thanked: 738 times

Re: EasyOS Scarthgap-series version 6.4.4

Post by BarryK »

You can run Easy Daedalus in a container in Scarthgap:

https://bkhome.org/news/202411/run-easy ... thgap.html

So, can install from the huge Devuan/Debian package repository, no need to have a separate Easy Daedalus.

User avatar
BarryK
Posts: 2692
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 132 times
Been thanked: 738 times

Re: EasyOS Scarthgap-series version 6.4.4

Post by BarryK »

I re-uploaded 'daedalus_6.4.4_amd64.sfs' with a fix, and have edited the blog post, see text in bold green:

https://bkhome.org/news/202411/run-easy ... thgap.html

Tested Daedalus in container on another computer, ran "Download latest Firefox", yep, problem fixed.

On that computer, the function keys are not the default, have to hold down FN-ALT-F6 to flip the screen back from Daedalus to Scarthgap desktop.
Maybe it would be good to have some sort of button on the Daedalus desktop, then just click on the button to flip back.

Post Reply

Return to “EasyOS”