Easy Daedalus 6.4.3

Moderator: BarryK

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

KDE Dolphin - automatic 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 can also be used on Scarthgap, in case you have installed Dolphin on Scarthgap as a foreign app. 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:57 pm, edited 2 times 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

don570
Posts: 683
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 115 times

Re: Easy Daedalus 6.4.3

Post by don570 »

Easy Daedalus 6.4.3
Checked Blender , Samba, pclock and audio recording and they worked.
______________________________________________

Philh
Posts: 30
Joined: Sun Aug 16, 2020 1:50 pm
Been thanked: 7 times

Re: Easy Daedalus 6.4.3

Post by Philh »

I installed xfe, scite and gnome-mastermind.
Saved and rebooted all working fine.
But every time I update easyos the gnome-mastermind.desktop file
in /usr/share/applications gets deleted.
The others are fine.

User avatar
BarryK
Posts: 2675
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 130 times
Been thanked: 735 times

Re: Easy Daedalus 6.4.3

Post by BarryK »

Philh wrote: Mon Nov 11, 2024 9:33 am

I installed xfe, scite and gnome-mastermind.
Saved and rebooted all working fine.
But every time I update easyos the gnome-mastermind.desktop file
in /usr/share/applications gets deleted.
The others are fine.

The initrd performs sanity checks.
It must think that there is something wrong with /usr/share/applications/gnome-mastermind.desktop

One thing that is checked is the "Exec=" line, if no valid executable then will delete the .desktop file.

Maybe attach the gnome-mastermind.desktop file here, with a ".gz" extension.

Philh
Posts: 30
Joined: Sun Aug 16, 2020 1:50 pm
Been thanked: 7 times

Re: Easy Daedalus 6.4.3

Post by Philh »

Exec=gnome-mastermind
Its in /usr/games

gnome-mastermind.desktop.gz
(515 Bytes) Downloaded 4 times
Caramel
Posts: 476
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 100 times
Been thanked: 78 times

Re: Easy Daedalus 6.4.3

Post by Caramel »

Philh wrote: Mon Nov 11, 2024 11:11 am

Exec=gnome-mastermind
Its in /usr/games
gnome-mastermind.desktop.gz

To save @BarryK time :

(Easy Daedalus 6.4.3)

fixlayers (/sbin in initrd), lines 184 and 185

Code: Select all

if [ -e usr/bin/${aEXEC} -o -e usr/local/bin/${aEXEC} ];then
continue

The code tests if the executable quoted in the .desktop file exists in /usr/bin or /usr/local/bin.

Here with gnome-mastermind the test fails as the executable is in /usr/games

User avatar
BarryK
Posts: 2675
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 130 times
Been thanked: 735 times

Re: Easy Daedalus 6.4.3

Post by BarryK »

Caramel wrote: Mon Nov 11, 2024 7:14 pm
Philh wrote: Mon Nov 11, 2024 11:11 am

Exec=gnome-mastermind
Its in /usr/games
gnome-mastermind.desktop.gz

To save @BarryK time :

(Easy Daedalus 6.4.3)

fixlayers (/sbin in initrd), lines 184 and 185

Code: Select all

if [ -e usr/bin/${aEXEC} -o -e usr/local/bin/${aEXEC} ];then
continue

The code tests if the executable quoted in the .desktop file exists in /usr/bin or /usr/local/bin.

Here with gnome-mastermind the test fails as the executable is in /usr/games

Thanks, fixed

Code: Select all

      if [ -e usr/bin/${aEXEC} -o -e usr/local/bin/${aEXEC} -o -e usr/games/${aEXEC} ];then #20241112
don570
Posts: 683
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 115 times

software issues

Post by don570 »

1) When I use Uextract to rip open .mhtml files I get warning message in terminal --->
I need ripmime. The version in fatdog64 works....

https://distro.ibiblio.org/fatdog/packa ... 6_64-1.txz
______________________________________
2) When I click on .webp files the image viewer gives warning that this format isn't recognized.
______________________________________________________

User avatar
pp4mnklinux
Posts: 1113
Joined: Wed Aug 19, 2020 5:43 pm
Location: Edinburgh
Has thanked: 630 times
Been thanked: 280 times
Contact:

Re: software issues

Post by pp4mnklinux »

don570 wrote: Tue Nov 12, 2024 9:34 pm

______________________________________
2) When I click on .webp files the image viewer gives warning that this format isn't recognized.
______________________________________________________

Hi @don570 :

Daedalus v 6.4.3 had solved this problem with .webp.

Right click on the image file (.webp) and choose file 'xxxx.webp' .... mtpaint and this way the .webp file will be open (It is possible mtpaint doesn't appears in your list in this case, you must go to OPEN WITH and choose it. It is possible that you need to customize, so choose CUSTOMIZE AND browse to mtpaint).

You can make this change permanent, so you must associate .webp files with mtpaint and the problem should dissapears.

Hope it helps you.- Have a nice day, my friend.

Enjoy EasyOS_daedalus 6.4.3

CHEERS.

Attachments
Screenshot(1).jpg
Screenshot(1).jpg (112.53 KiB) Viewed 216 times
Screenshot(2).jpg
Screenshot(2).jpg (115.33 KiB) Viewed 216 times
Last edited by pp4mnklinux on Wed Nov 13, 2024 4:33 pm, edited 1 time in total.

:arrow:

XFCE_FUSILLI . ===> https://puppyxfcefusilli.wordpress.com/

YouTube How_To . ==> https://bit.ly/f96ce_xfce_fusilli_HOWTO

Learning EASY OS . => https://easyos.org/

User avatar
BarryK
Posts: 2675
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 130 times
Been thanked: 735 times

Re: software issues

Post by BarryK »

don570 wrote: Tue Nov 12, 2024 9:34 pm

1) When I use Uextract to rip open .mhtml files I get warning message in terminal --->
I need ripmime. The version in fatdog64 works....

https://distro.ibiblio.org/fatdog/packa ... 6_64-1.txz

Thanks for the info.
ripmime will be in the next release of Daedalus and Scarthgap.

User avatar
BarryK
Posts: 2675
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 130 times
Been thanked: 735 times

Re: software issues

Post by BarryK »

don570 wrote: Tue Nov 12, 2024 9:34 pm

2) When I click on .webp files the image viewer gives warning that this format isn't recognized.

The problem is that the left-click image viewer is gPicView, which is a gtk+2 app, and only uses the image viewing supported by gtk+2.

We would need to replace gPicView with something else.

Awhile back, we used Viewnior, but that is the same situation, gtk+2.

However, reading here, I see it is possible to add webp to gdk-pixbuf:

https://www.omglinux.com/see-webp-image ... -gtk-apps/

project page:

https://github.com/aruiz/webp-pixbuf-loader

...ok, I'll check that out.

User avatar
BarryK
Posts: 2675
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 130 times
Been thanked: 735 times

Re: software issues

Post by BarryK »

BarryK wrote: Wed Nov 13, 2024 10:44 am
don570 wrote: Tue Nov 12, 2024 9:34 pm

2) When I click on .webp files the image viewer gives warning that this format isn't recognized.

The problem is that the left-click image viewer is gPicView, which is a gtk+2 app, and only uses the image viewing supported by gtk+2.

We would need to replace gPicView with something else.

Awhile back, we used Viewnior, but that is the same situation, gtk+2.

However, reading here, I see it is possible to add webp to gdk-pixbuf:

https://www.omglinux.com/see-webp-image ... -gtk-apps/

project page:

https://github.com/aruiz/webp-pixbuf-loader

...ok, I'll check that out.

Done. webp image support will be in gtk+2 and gtk+3 and hence in gPicView, next release of Daedalus and Scarthgap.

Chiaseed
Posts: 1
Joined: Sat Jun 22, 2024 7:49 am

Language Support - Urdu

Post by Chiaseed »

Hi,

For displaying Urdu / Arabic script,
how to add Language Support in EASYOS?

Regards

Post Reply

Return to “EasyOS”