GNOME Applications without Kate

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

GNOME Applications without Kate

Postby flink » Dec 9th, '21, 13:29

After a new Upgrade to Mageia 8 the Kate editor does not show up in the GNOME Desktop applications. The Kate editor can be well started from the command shell.
But it is not even searchable in the GNOME Activities --> Show Applications search facility.
:shock:
I have tried to reinstall the Kate editor without success.
Last edited by flink on Dec 16th, '21, 10:16, edited 2 times in total.
flink
 
Posts: 207
Joined: Mar 3rd, '12, 19:23

Re: GNOME Applications without Kate

Postby sturmvogel » Dec 9th, '21, 16:11

Did you check the menu editor? I know that the menu editor from one of the "light weight" DE has the possibility to checkmark that it is only shown at specific DE. That means you could have possible excluded Kate from showing up in your menu. As i don't know the Gnome menu editor, you should have a look there.

It's also possible to create complete new entrys for the application menu yourself. I have done this in the past for third party software that was not integrated well into the DE.
sturmvogel
 
Posts: 738
Joined: Jul 30th, '12, 00:39

Re: GNOME Applications without Kate

Postby flink » Dec 9th, '21, 16:24

I have installed now the menu editor. However no window of it opens.


Code: Select all
[franz@franz-820 ~]$ menulibre  &
[3] 76420
[franz@franz-820 ~]$
(menulibre:76420): Gtk-WARNING **: 15:21:37.295: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton

(menulibre:76420): Gtk-WARNING **: 15:21:37.338: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/menulibre/MenulibreApplication.py", line 2217, in do_activate
    self.win = MenulibreWindow(self, headerbar)
  File "/usr/lib/python3.8/site-packages/menulibre/MenulibreApplication.py", line 250, in __init__
    self.configure_application_treeview(builder)
  File "/usr/lib/python3.8/site-packages/menulibre/MenulibreApplication.py", line 589, in configure_application_treeview
    self.treeview = MenulibreTreeview.Treeview(self, builder)
  File "/usr/lib/python3.8/site-packages/menulibre/MenulibreTreeview.py", line 48, in __init__
    self._configure_treeview(builder)
  File "/usr/lib/python3.8/site-packages/menulibre/MenulibreTreeview.py", line 59, in _configure_treeview
    treestore = MenuEditor.get_treestore()
  File "/usr/lib/python3.8/site-packages/menulibre/MenuEditor.py", line 122, in get_treestore
    menu = get_menus()[0]
  File "/usr/lib/python3.8/site-packages/menulibre/MenuEditor.py", line 191, in get_menus
    menu = MenuEditor()
  File "/usr/lib/python3.8/site-packages/menulibre/MenuEditor.py", line 246, in __init__
    self.load()
  File "/usr/lib/python3.8/site-packages/menulibre/MenuEditor.py", line 264, in load
    if not self.tree.load_sync():
gi.repository.GLib.Error: g-io-error-quark: Failed to look up menu_file for "gnome-applications.menu"
 (0)

[franz@franz-820 ~]$ ps -lef | grep menulibre
0 S franz      76210    3143  0  80   0 - 157322 -     15:19 ?        00:00:00 /usr/bin/python3 /usr/bin/menulibre
0 S franz      76420    8850  0  80   0 - 157305 -     15:21 pts/0    00:00:00 /usr/bin/python3 /usr/bin/menulibre
0 S franz      76486    8850  0  80   0 - 45917 -      15:22 pts/0    00:00:00 grep --color menulibre
flink
 
Posts: 207
Joined: Mar 3rd, '12, 19:23

Re: GNOME Applications without Kate

Postby sturmvogel » Dec 9th, '21, 16:32

flink wrote:After a new Upgrade to Mageia 8


You have taken your /home from the old installation? You could test if the problem lays in one of your configuration files by creating temporary a new user and test with it. I did a fresh Gnome installation in a Virtualbox for you. Kate properly shows up in the application menu. And i am also able to chose Kate via right click "open with other" ....



I found a bug for the menulibre problem: https://bugs.mageia.org/show_bug.cgi?id=26633. It was closed because Mageia 7 is EOL. I will have a look into it and reopen it...
I opened one for menulibre under Mageia 8 Gnome:https://bugs.mageia.org/show_bug.cgi?id=29746
sturmvogel
 
Posts: 738
Joined: Jul 30th, '12, 00:39

Re: GNOME Applications without Kate

Postby doktor5000 » Dec 9th, '21, 18:12

Per default the menu entry for kate does not have anything that would hide in under certain desktop environments. See /usr/share/applications/org.kde.kate.desktop for details.
It would have NotShowIn= or OnlyShowIn= stanzas if that would be the case. So you either have any local modifiation for kate under ~/.local/share/applications/ or there's some other bug involved.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18042
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: GNOME Applications without Kate

Postby flink » Dec 9th, '21, 20:05

The file org.kde.kate.desktop has entries for some sessions.
At the end there is a desktop entry configured. There is nothing like "Show" in it.

Code: Select all
[Desktop Entry]
Actions=Session 8703ee40c0dc49669096d15d4fd4a6d4;Session 9f6dc7ca4824a0bb1e5bdc8e3b7d64fe;Session 70a5b5ac29c091fa3761dad5ed7751b6;Session d7a2972143d95071a36ac4dc436087d6;Session 66d74e4803e16c6289be60a0110368f7;Session ad7a50580c9efb9330331a5123da2635;Session 29289b4041c127e559fccb4376a8fd24;Session 44ddce99e655067775ec61c7015eef3b;Session 62e05bb35945f40d4896934566ef1b1d;Session c275f3df2bf2e48ab2b86824588d4558;
Categories=Qt;KDE;Utility;TextEditor;
Comment[en_GB]=KDE Advanced Text Editor
Comment=KDE Advanced Text Editor
Exec=kate -b %U
GenericName[en_GB]=Advanced Text Editor
GenericName=Advanced Text Editor
Icon=kate
InitialPreference=9
MimeType=text/plain;
Name[en_GB]=Kate
Name=Kate
StartupNotify=true
Terminal=false
Type=Application
X-DBUS-ServiceName=org.kde.kate
X-DBUS-StartupType=Multi
X-DocPath=kate/index.html
X-KDE-HasTempFileOption=true
flink
 
Posts: 207
Joined: Mar 3rd, '12, 19:23

Re: GNOME Applications without Kate

Postby flink » Dec 9th, '21, 20:10

When I close the Kate editor then I get an error message in the command line shell.

Code: Select all
[franz@franz-820 applications]$ kf.service.services: The desktop entry file "/usr/share/applications/org.gnome.ChromeGnomeShell.desktop" has Type= "Application" but no Exec line
kf.service.sycoca: Invalid Service :  "/usr/share/applications/org.gnome.ChromeGnomeShell.desktop"

[1]   Done                    kate  (wd: ~)
(wd now: ~/.local/share/applications)
[2]-  Done                    kate  (wd: ~)
(wd now: ~/.local/share/applications)
flink
 
Posts: 207
Joined: Mar 3rd, '12, 19:23

Re: GNOME Applications without Kate

Postby flink » Dec 9th, '21, 20:16

It does not help to remove the configuration file.

Code: Select all
mv org.kde.kate.desktop  org.kde.kate.desktop.orig


Then I do not get any results in the Activities-->Show Applications list.
The original configuration shows me some files when I type in "Kate" as search text.
flink
 
Posts: 207
Joined: Mar 3rd, '12, 19:23

Re: GNOME Applications without Kate

Postby morgano » Dec 9th, '21, 20:37

Did you test in a fresh user account, as sturmvogel suggested?
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1488
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: GNOME Applications without Kate

Postby doktor5000 » Dec 9th, '21, 23:50

flink wrote:It does not help to remove the configuration file.

Thats not a configuration file, it's the specification for the desktop menu entry. If you remove it, you will certainly not have a menu entry once gnome refreshes its menu cache.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18042
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: GNOME Applications without Kate

Postby flink » Dec 10th, '21, 07:40

morgano wrote:Did you test in a fresh user account, as sturmvogel suggested?


I have now added a "test" user. When I log in as "test", then the Kate is searchable and addable in the Activities and Show Applications of the GNOME desktop.

How can I accomplish this for the user "franz" as well?
flink
 
Posts: 207
Joined: Mar 3rd, '12, 19:23

Re: GNOME Applications without Kate

Postby jiml8 » Dec 11th, '21, 21:02

Try copying the .desktop file from your test user into your real user configuration. I would expect that to fix it.
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09

Re: GNOME Applications without Kate

Postby flink » Dec 11th, '21, 21:06

Code: Select all
[root@franz-820 test]# pwd
/home/test
[root@franz-820 test]# ls -la /home/test/.desktop
ls: cannot access '/home/test/.desktop': No such file or directory


And the user has a very easy .desktop file:

Code: Select all
[franz@franz-820 ~]$ pwd
/home/franz
[franz@franz-820 ~]$ cat .desktop
DESKTOP=GNOME
[franz@franz-820 ~]$
flink
 
Posts: 207
Joined: Mar 3rd, '12, 19:23

Re: [SOLVED] GNOME Applications without Kate

Postby flink » Dec 16th, '21, 10:13

Solution:


Code: Select all
[franz@franz-820 ~]$ cd ~/.local/share/applications/
[franz@franz-820 applications]$ mv org.kde.kate.desktop  org.kde.kate.desktop.bak



Then the Kate editor appears under the GNOME Applications.
And also the stored Kate sessions are still there and not gone lost.
flink
 
Posts: 207
Joined: Mar 3rd, '12, 19:23

Re: GNOME Applications without Kate

Postby flink » Dec 16th, '21, 10:18

But this issue is not solved yet!

Look:
Code: Select all
[franz@franz-820 applications]$ ls -ltr
total 28
-rwxrwxr-x 1 franz franz  516 Jul 29 14:25  cxmenu-cxoffice-87185c9d-9256-4980-b32b-b92598692292-0lfng6b-Bestellinformationen.desktop*
-rwxrwxr-x 1 franz franz  506 Jul 29 14:25 'cxmenu-cxoffice-87185c9d-9256-4980-b32b-b92598692292-0lfng6b-FAQ (deutsch).desktop'*
-rwxrwxr-x 1 franz franz  556 Jul 29 14:25 'cxmenu-cxoffice-87185c9d-9256-4980-b32b-b92598692292-0lfng6b-Password Keeper 2001.desktop'*
-rwxr-xr-x 1 franz franz  475 Oct 26 08:00  appimagekit-pcloud.desktop*
-rw-rw-r-- 1 franz franz   46 Oct 26 08:00  mimeinfo.cache
-rw------- 1 franz franz 1894 Nov 25 22:25  org.kde.kate.desktop.bak
-rw------- 1 franz franz 1894 Dec 16 09:13  org.kde.kate.desktop


After the restart the file org.kde.kate.desktop is there again!
And the Kate menu entry is again not there!
flink
 
Posts: 207
Joined: Mar 3rd, '12, 19:23

Re: GNOME Applications without Kate

Postby sturmvogel » Dec 16th, '21, 11:48

Seems like an upstream bug. Either don't use sessions in Kate anymore or modify your desktop file every time you saved a session:
https://bugs.kde.org/show_bug.cgi?id=415948

Thats why it works with a new user because Kate default setting is without any saved sessions.
sturmvogel
 
Posts: 738
Joined: Jul 30th, '12, 00:39

Re: GNOME Applications without Kate

Postby flink » Dec 16th, '21, 12:51

sturmvogel wrote:Seems like an upstream bug.

Thats why it works with a new user because Kate default setting is without any saved sessions.

Yes, this it is exactly this bug! :o

When I remove the heading lines from the file
Code: Select all
/home/franz/.local/share/applications/org.kde.kate.desktop
, then Kate is visible in the GNOME Activities Favorites again.

These lines e.g. must be deleted:

Code: Select all
[Desktop Action Session 29289b4041c127e559fccb4376a8fd24]
Exec=kate -s tt_board
Name=tt_board

[Desktop Action Session 44ddce99e655067775ec61c7015eef3b]
Exec=kate -s 'tt_products 2.14.0'
Name=tt_products 2.14.0

[Desktop Action Session 62e05bb35945f40d4896934566ef1b1d]
Exec=kate -s 'tt_products 2.9.21'
Name=tt_products 2.9.21

[Desktop Action Session 66d74e4803e16c6289be60a0110368f7]
Exec=kate -s 'globale Extensions'
Name=globale Extensions

[Desktop Action Session 70a5b5ac29c091fa3761dad5ed7751b6]
Exec=kate -s TYPO3
Name=TYPO3

[Desktop Action Session 8703ee40c0dc49669096d15d4fd4a6d4]
Exec=kate -s Arbeit
Name=Arbeit

[Desktop Action Session 9f6dc7ca4824a0bb1e5bdc8e3b7d64fe]
Exec=kate -s Bibel
Name=Bibel

[Desktop Action Session ad7a50580c9efb9330331a5123da2635]
Exec=kate -s project-07
Name=project-07

[Desktop Action Session c275f3df2bf2e48ab2b86824588d4558]
Exec=kate -s 'tt_products 3.2'
Name=tt_products 3.2

[Desktop Action Session d7a2972143d95071a36ac4dc436087d6]
Exec=kate -s div2007
Name=div2007

[Desktop Entry]
flink
 
Posts: 207
Joined: Mar 3rd, '12, 19:23


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest