[Solved]The applications shortcuts at main menu dissappeared

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
epdiamantopoulos

[Solved]The applications shortcuts at main menu dissappeared

Post by epdiamantopoulos »

After the installation of pyCharm (http://www.jetbrains.com/pycharm/) I experience an error message after each boot (see next image)
problem_after_installing_pyCharm.png
while all applications shortcuts from the main menu of MATE just disappeared! (see next image)
problem_after_installing_pyCharm1.png
.

I would appreciate any suggestion about make them appear again!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: The applications shortcuts at main menu dissappeared

Post by Monsta »

This is a known bug. It's not clear when the fix will be released, but you can fix it yourself:
  1. Run

    Code: Select all

    gksu pluma /usr/lib/linuxmint/mintMenu/plugins/easybuttons.py
    in the terminal.
  2. Go to line 282.
  3. Replace

    Code: Select all

    c = c_char_p(iconName.encode('ascii', 'ignore'))
    with

    Code: Select all

    c = c_char_p(iconName.decode('utf-8', 'ignore').encode('ascii', 'ignore'))
  4. Save the file.
  5. Log out and log in back.
epdiamantopoulos

Re: The applications shortcuts at main menu dissappeared

Post by epdiamantopoulos »

Thank you for your advice however it seems that it is not solves the problem. Actually, after I tried
c = c_char_p(iconName.decode('utf-8', 'ignore').encode('ascii', 'ignore'))
I see
Screenshot.png
The funny thing is that I can not go in the previous situation since the change

c = c_char_p(iconName.encode('ascii', 'ignore'))

is not make any improvement. I also tried with

c = c_char_p(iconName.encode("ascii", "ignore"))

but in vein.

I guess, tommorow I will upgrade in LM Mate 16 (now I am running 15).
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: The applications shortcuts at main menu dissappeared

Post by Monsta »

Check the indentation, it must be exactly the same as before.
epdiamantopoulos

Re: The applications shortcuts at main menu dissappeared

Post by epdiamantopoulos »

Ok, probably the problem is that by copying - paste from your post some hidden character created a problem. By copying the line 401 of the same file I revert to the previous problematic situation, however it is still not possible to see the menu icons.
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: The applications shortcuts at main menu dissappeared

Post by Monsta »

Try copying from here and pay attention to the indentation this time. There should be exactly 12 spaces before the code.
epdiamantopoulos

Re: The applications shortcuts at main menu dissappeared

Post by epdiamantopoulos »

Well done! Thank you for your help!
Locked

Return to “Software & Applications”