[SOLVED] Menu and desktop items unavailable

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
sanorton16
Level 1
Level 1
Posts: 4
Joined: Sun Apr 14, 2019 1:01 pm

[SOLVED] Menu and desktop items unavailable

Post by sanorton16 » Sun Apr 14, 2019 1:12 pm

Problem:

Right click on the Menu item, click on Configure – nothing happens.

In the Menu list, All Applications, select Backgrounds, Keyboard, Panel, Privacy or Sounds – nothing happens. There may be more but I haven’t checked everything.

Right click on the Desktop, select any of Add Desklets, Change Desktop Background or Desktop Settings – nothing happens. ‘Create a new launcher’ does work.

There was a reference to a similar problem in a Forum posting dated 2011 but it didn’t help.

I’ve just downloaded and installed software for a new HP DeskJet 2622 printer. As fas as I know, everything worked before the new software was installed.

I’m fairly new to Mint and am reluctant to do any more without proper advice.

Can anybody help, please?
Last edited by sanorton16 on Wed Apr 17, 2019 6:37 am, edited 2 times in total.

User avatar
JerryF
Level 11
Level 11
Posts: 3882
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: Menu and desktop items unavailable

Post by JerryF » Sun Apr 14, 2019 3:45 pm

sanorton16 wrote:
Sun Apr 14, 2019 1:12 pm
...
I’ve just downloaded and installed software for a new HP DeskJet 2622 printer. As fas as I know, everything worked before the new software was installed.

I’m fairly new to Mint and am reluctant to do any more without proper advice.

Can anybody help, please?
When you say you downloaded and installed software, did you do it from HP's website for Linux OS drivers (HP Linux Imaging and Printing)?
IF your problem has been solved, please edit your ORIGINAL post and add [SOLVED] to the beginning of the Subject Line. It helps other members when browsing posts.

sanorton16
Level 1
Level 1
Posts: 4
Joined: Sun Apr 14, 2019 1:01 pm

Re: Menu and desktop items unavailable

Post by sanorton16 » Sun Apr 14, 2019 4:14 pm

Yes - the printer software was from the HP website, not a third party.

I forgot to include details of the Mint version. It's Linux Mint 18 Sarah, Desktop Cinnamon 3.0.7 (Gtk 3.18.9-1ubuntu3)

User avatar
smurphos
Level 13
Level 13
Posts: 4619
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Menu and desktop items unavailable

Post by smurphos » Mon Apr 15, 2019 12:56 am

Sounds like a borked python. I take it it was HPLIP you installed?

Please try running this from the terminal (it should launch the Backgrounds settings module) and report back any error messages.

Code: Select all

cinnamon-settings backgrounds
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

sanorton16
Level 1
Level 1
Posts: 4
Joined: Sun Apr 14, 2019 1:01 pm

Re: Menu and desktop items unavailable

Post by sanorton16 » Mon Apr 15, 2019 4:10 pm

Thank you for your input.

HPLIP-3.19.3 was installed. The previous version was 3.16.3.

The Terminal command produced the following:
cinnamon-settings backgrounds
Traceback (most recent call last):
File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 41, in <module>
modules = map(__import__, mod_files)
File "/usr/share/cinnamon/cinnamon-settings/modules/cs_backgrounds.py", line 8, in <module>
import imtools
File "/usr/share/cinnamon/cinnamon-settings/bin/imtools.py", line 622, in <module>
if Image.VERSION == '1.1.7':
AttributeError: 'module' object has no attribute 'VERSION'

User avatar
smurphos
Level 13
Level 13
Posts: 4619
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Menu and desktop items unavailable

Post by smurphos » Tue Apr 16, 2019 12:17 am

Can you try this. Bit of a shot in the dark but it may work. It is applying a patch recently commited to cinnamon master that fixes a crash at this point when a specific python module is updated.

Navigate to the folder /usr/share/cinnamon/cinnamon-settings/bin, then open Nemo as root in that folder.
Make a backup copy of /usr/share/cinnamon/cinnamon-settings/bin/imtools.py - name it imtools.py.bak or something.
Open the original imtools.py in a text editor.

Find the lines that read as below and delete them.

Code: Select all

if Image.VERSION == '1.1.7':

    def split(image):
        """Work around for bug in Pil 1.1.7
        :param image: input image
        :type image: PIL image object
        :returns: the different color bands of the image (eg R, G, B)
        :rtype: tuple
        """
        image.load()
        return image.split()
else:

    def split(image):
        """Work around for bug in Pil 1.1.7
        :param image: input image
        :type image: PIL image object
        :returns: the different color bands of the image (eg R, G, B)
        :rtype: tuple
        """
        return image.split()
Then find this code block

Code: Select all

def get_alpha(image):
    """Gets the image alpha band. Can handles P mode images with transpareny.
    Returns a band with all values set to 255 if no alpha band exists.

    :param image: input image
    :type image: PIL image object
    :returns: alpha as a band
    :rtype: single band image object
    """
    if has_alpha(image):
        return split(image)[-1]
    if image.mode == 'P' and 'transparency' in image.info:
        return image.convert('RGBA').split()[-1]
    # No alpha layer, create one.
    return Image.new('L', image.size, 255)
and change return split(image)[-1] to return image.split()[-1] so it looks like this.

Code: Select all

def get_alpha(image):
    """Gets the image alpha band. Can handles P mode images with transpareny.
    Returns a band with all values set to 255 if no alpha band exists.

    :param image: input image
    :type image: PIL image object
    :returns: alpha as a band
    :rtype: single band image object
    """
    if has_alpha(image):
        return image.split()[-1]
    if image.mode == 'P' and 'transparency' in image.info:
        return image.convert('RGBA').split()[-1]
    # No alpha layer, create one.
    return Image.new('L', image.size, 255)
Save the file, close nemo as root, restart Cinnamon with Ctrl-Alt-Esc and try

Code: Select all

cinnamon-settings backgrounds
in a terminal window again.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

sanorton16
Level 1
Level 1
Posts: 4
Joined: Sun Apr 14, 2019 1:01 pm

Re: Menu and desktop items unavailable

Post by sanorton16 » Tue Apr 16, 2019 5:38 pm

smurphos - It worked. Thank you very much.

My approach to computing over many years has been 'Wonder what will happen if..' followed by 'Oops'. I think i Oops'd too far trying to get Simple Scan to work, although it did eventually.

I am very grateful to you for your time and trouble fixing what was almost certainly my fault. This was my first posting to the Forum and I am most impressed at the readiness of others to assist with problems.

User avatar
smurphos
Level 13
Level 13
Posts: 4619
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Menu and desktop items unavailable

Post by smurphos » Tue Apr 16, 2019 11:27 pm

No worries you are welcome. Glad the shot in the dark worked. :)

It's always helpful for other readers if you edit your initial post and add a [SOLVED] to the topic title.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

jfvv
Level 1
Level 1
Posts: 1
Joined: Thu Jun 20, 2019 7:53 am

Re: [SOLVED] Menu and desktop items unavailable

Post by jfvv » Thu Jun 20, 2019 7:57 am

It's work! Very very very thanks. :D

Kalkulus
Level 1
Level 1
Posts: 1
Joined: Thu Jun 20, 2019 11:22 am

Re: Menu and desktop items unavailable

Post by Kalkulus » Thu Jun 20, 2019 11:25 am

smurphos wrote:
Tue Apr 16, 2019 12:17 am
Can you try this. Bit of a shot in the dark but it may work. It is applying a patch recently commited to cinnamon master that fixes a crash at this point when a specific python module is updated.

Navigate to the folder /usr/share/cinnamon/cinnamon-settings/bin, then open Nemo as root in that folder.
Make a backup copy of /usr/share/cinnamon/cinnamon-settings/bin/imtools.py - name it imtools.py.bak or something.
Open the original imtools.py in a text editor.

Find the lines that read as below and delete them. (...)

Thanks... This worked for me.

chuckster
Level 1
Level 1
Posts: 4
Joined: Tue Dec 27, 2011 11:17 am

Re: [SOLVED] Menu and desktop items unavailable

Post by chuckster » Wed Jul 31, 2019 2:17 pm

This solution also worked for me. Mint 19.1 x64 on Intel i5 CPU.

THANKS!

nermeenhm
Level 1
Level 1
Posts: 25
Joined: Thu Dec 20, 2018 7:22 am

Re: [SOLVED] Menu and desktop items unavailable

Post by nermeenhm » Fri Sep 20, 2019 2:16 am

It looks like I have the very same problem, but since I'm absolutely new to all this I have no idea how to apply the fix! Can someone please guide me through it? I have no idea what a Nemo is or how to open it in the first place! Thanks.

Oh, and the terminal commands gives this:

Traceback (most recent call last):
File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 45, in <module>
modules = map(__import__, mod_files)
File "/usr/share/cinnamon/cinnamon-settings/modules/cs_backgrounds.py", line 5, in <module>
import imtools
File "/usr/share/cinnamon/cinnamon-settings/bin/imtools.py", line 622, in <module>
if Image.VERSION == '1.1.7':
AttributeError: 'module' object has no attribute 'VERSION'

User avatar
smurphos
Level 13
Level 13
Posts: 4619
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: [SOLVED] Menu and desktop items unavailable

Post by smurphos » Sat Sep 21, 2019 12:35 am

Nemo is your File Manager in Cinnamon

The best fix for this issue now is to update to Cinnamon 4.2 in Mint 19.2 - the underlying bug is fixed in this version.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

nermeenhm
Level 1
Level 1
Posts: 25
Joined: Thu Dec 20, 2018 7:22 am

Re: [SOLVED] Menu and desktop items unavailable

Post by nermeenhm » Thu Oct 03, 2019 8:31 am

Sorry for the very late reply because I was out of town and away from my PC. Can u please tell me how to update to Cinnamon 4.2?? I'm using Mint Sylvia. I'm happy with Sylvia really and not looking forward to change it... if possible!

So, is there a way I could just uninstall and reinstall cinnamon desktop? Thanks.

PJ1702
Level 1
Level 1
Posts: 1
Joined: Sat Oct 19, 2019 10:38 pm

Re: [SOLVED] Menu and desktop items unavailable

Post by PJ1702 » Sat Oct 19, 2019 10:57 pm

This solution worked for me on an up-to-date Linux Mint 18.1 (Serena) Cinnamon (v3.2.7).

Code: Select all

$ cat /etc/issue
Linux Mint 18.1 Serena \n \l

$ cinnamon --version
Cinnamon 3.2.7

Post Reply

Return to “Software & Applications”