Page 7 of 7

KDE Dolphin - automatic fix after system update

Posted: Sun Nov 10, 2024 2:45 pm
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.


Re: Easy Daedalus 6.4.3

Posted: Sun Nov 10, 2024 9:04 pm
by don570

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


Re: Easy Daedalus 6.4.3

Posted: Mon Nov 11, 2024 9:33 am
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.


Re: Easy Daedalus 6.4.3

Posted: Mon Nov 11, 2024 10:45 am
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.


Re: Easy Daedalus 6.4.3

Posted: Mon Nov 11, 2024 11:11 am
by Philh

Exec=gnome-mastermind
Its in /usr/games

gnome-mastermind.desktop.gz
(515 Bytes) Downloaded 4 times

Re: Easy Daedalus 6.4.3

Posted: Mon Nov 11, 2024 7:14 pm
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


Re: Easy Daedalus 6.4.3

Posted: Tue Nov 12, 2024 12:49 am
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

software issues

Posted: Tue Nov 12, 2024 9:34 pm
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.
______________________________________________________


Re: software issues

Posted: Wed Nov 13, 2024 9:33 am
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.


Re: software issues

Posted: Wed Nov 13, 2024 10:19 am
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.


Re: software issues

Posted: Wed Nov 13, 2024 10:44 am
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.


Re: software issues

Posted: Wed Nov 13, 2024 11:44 am
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.


Language Support - Urdu

Posted: Fri Nov 15, 2024 6:58 am
by Chiaseed

Hi,

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

Regards