Menu and taskbar disappeared

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
Dan-cer
Level 6
Level 6
Posts: 1159
Joined: Fri Jul 29, 2022 4:56 pm
Location: Germany, Lower Saxony

Menu and taskbar disappeared

Post by Dan-cer »

This morning on my main computer (with Cinnamon 20.3, see signature) I no longer see a taskbar.
The menu can not be opened, nor any programs.
Only the browser is active (because of autostart). I already tried to do a restore in recovery-mode using timeshift, but that didn't help. Even a

Code: Select all

apt-get install --reinstall cinnamon

did not bring anything except an error message. What is the easiest way to fix this now?

I can't do anything on desktop. Even 'Strg+ALT+T' to open a terminal. Rightclick on desktop doesn't work. I could create a live-usb-stick on my other PC and boot it on main PC.
Or I could do the right command in root terminal (recovery mode). However, what would be the right command to solve it?

Update:
In this case my "solution" was to re-install Linux Mint. That was not really a solution because in most cases there are other ways to solve an issue like that. However, I didn't find it.
Last edited by LockBot on Sun Feb 19, 2023 11:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
How you get better results when searching for yourself.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Need help: menu and taskbar disappeared

Post by deepakdeshp »

If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
User avatar
Dan-cer
Level 6
Level 6
Posts: 1159
Joined: Fri Jul 29, 2022 4:56 pm
Location: Germany, Lower Saxony

Re: Need help: menu and taskbar disappeared

Post by Dan-cer »

I'm not sure if cinnamon needs to be restored, or if it's reinstalling the more recent kernel.
Maybe both?
How you get better results when searching for yourself.
User avatar
Moem
Level 22
Level 22
Posts: 16238
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Need help: menu and taskbar disappeared

Post by Moem »

You seem to be missing your panel. (Taskbar is a Windows term.) The menu is an applet on that panel, so of course that is gone too.
The solution for that, as given by Smurphos, is:
Open a terminal with Ctrl-Alt-T and run the command below to reset the enabled panels to default

Code: Select all

dconf reset /org/cinnamon/panels-enabled
But of course, that assumes you can open a terminal. :?

Do you have any recent Timeshift snapshots you can restore from?
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
Geoff_P
Level 1
Level 1
Posts: 42
Joined: Wed Oct 10, 2012 4:42 am

Re: Need help: menu and taskbar disappeared

Post by Geoff_P »

Try the 'Windows' key on the keyboard. That shows the menu.
Image
User avatar
Dan-cer
Level 6
Level 6
Posts: 1159
Joined: Fri Jul 29, 2022 4:56 pm
Location: Germany, Lower Saxony

Re: Need help: menu and taskbar disappeared

Post by Dan-cer »

Moem wrote: Fri Aug 19, 2022 4:16 am But of course, that assumes you can open a terminal. :?
Do you have any recent Timeshift snapshots you can restore from?
I can't open a terminal, even not with ctrl+ALT+T.
Yes, I have 5 snapshots and I tried them already - and failed.
At the moment I am on a new created Live-USB, trying to figure out if it is only about re-installing panel + menu, or also new kernel.
How you get better results when searching for yourself.
User avatar
Dan-cer
Level 6
Level 6
Posts: 1159
Joined: Fri Jul 29, 2022 4:56 pm
Location: Germany, Lower Saxony

Re: Need help: menu and taskbar disappeared

Post by Dan-cer »

Geoff_P wrote: Fri Aug 19, 2022 4:19 am Try the 'Windows' key on the keyboard. That shows the menu.
Doesn't work. No single shortcut does work, except shortcuts for the browser.

If I could add gnome-terminal to autostart via recovery console (root) that would help to do new installations with terminal.
How you get better results when searching for yourself.
User avatar
Moem
Level 22
Level 22
Posts: 16238
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Need help: menu and taskbar disappeared

Post by Moem »

Dan-cer wrote: Fri Aug 19, 2022 2:55 am Even a

Code: Select all

apt-get install --reinstall cinnamon

did not bring anything except an error message.
What was the error message?
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
User avatar
Dan-cer
Level 6
Level 6
Posts: 1159
Joined: Fri Jul 29, 2022 4:56 pm
Location: Germany, Lower Saxony

Re: Need help: menu and taskbar disappeared

Post by Dan-cer »

I would have to do it again to get the exact wording.
EDIT:
But "cinnamon" isn't the right name of the package.
When I tried to do a snapshot restore I got something like "try 'apt-get update' or add ' --fix missing'.
How you get better results when searching for yourself.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Need help: menu and taskbar disappeared

Post by Cosmo. »

Moem wrote: Fri Aug 19, 2022 4:16 am
Open a terminal with Ctrl-Alt-T and run the command below to reset the enabled panels to default

Code: Select all

dconf reset /org/cinnamon/panels-enabled
Open a virtual console (ctrl-alt-F1) and enter the command.

BTW: I doubt, that this is a system problem, but merely an account problem.
User avatar
Dan-cer
Level 6
Level 6
Posts: 1159
Joined: Fri Jul 29, 2022 4:56 pm
Location: Germany, Lower Saxony

Re: Need help: menu and taskbar disappeared

Post by Dan-cer »

Cosmo. wrote: Fri Aug 19, 2022 6:29 am BTW: I doubt, that this is a system problem, but merely an account problem.
You are 100% right!
I had deleted some files yesterday without realizing that I was going to wreck my system.
They were "duplicate" *.desktop files and unchecked menu entries.
I SHOULD RATHER NOT HAVE DONE THAT!
Anyway, it was an account problem. Since I had no other account, I copied the /home directory to the backup and reinstalled Mint (20.3 again).
I didn't want to wait to see if there was a solution to fix /home, as I initially assumed the system partition was broken. But the reinstallation gave the same panel- and menu-free view... So I formated /home too and copied the data later.
If there are - after the fact - any ideas for a solution, please let me know. It might be of interest for future readers.
How you get better results when searching for yourself.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Need help: menu and taskbar disappeared

Post by Cosmo. »

You did not try my advice? That is a pity.

Another way would have been, to create a new user account in the virtual console (sudo adduser {username} sudo), then you could have copied the deleted files over or you would perhaps had been able to copy them back from the trash bin of the original account. But nothing of this would have brought back your panel. This to answer your last sentence.

This was for sure not the cause of your problem:
Dan-cer wrote: Fri Aug 19, 2022 10:58 am They were "duplicate" *.desktop files and unchecked menu entries.
This does not delete a panel. Used panels get defined in dconf in the value /org/cinnamon/panels-enabled. And this was at the point the object of my previous advice.
User avatar
Dan-cer
Level 6
Level 6
Posts: 1159
Joined: Fri Jul 29, 2022 4:56 pm
Location: Germany, Lower Saxony

Re: Need help: menu and taskbar disappeared

Post by Dan-cer »

Cosmo. wrote: Fri Aug 19, 2022 2:11 pm You did not try my advice? That is a pity.
I did that before you wrote it. But I couldn't open virtual console. No key was functioning.
How you get better results when searching for yourself.
motoryzen
Level 10
Level 10
Posts: 3497
Joined: Sun Dec 08, 2019 12:25 am

Re: Need help: menu and taskbar disappeared

Post by motoryzen »

Dan-cer

you can also ( if the keyboard default shortcut for it has not been messed up) do alt +f2

then type

gnome-terminal

then press enter to launch it

and that should launch the terminal also ..allowing you to follow cosmo's advice if it's still applicable. I'm jumping all over this domain back and forth among many topics. sorry if I missed anything.
Mint 21.2 Cinnamon 5.8.4
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
User avatar
Dan-cer
Level 6
Level 6
Posts: 1159
Joined: Fri Jul 29, 2022 4:56 pm
Location: Germany, Lower Saxony

Re: Need help: menu and taskbar disappeared

Post by Dan-cer »

motoryzen wrote: Mon Aug 29, 2022 10:06 pm Dan-cer
you can also ( if the keyboard default shortcut for it has not been messed up) do alt +f2
then type
gnome-terminal
then press enter to launch it
Thank you for your advice. Maybe next time. You probably missed that I have already re-installed LM 20.3 to solve the issue.

However, I doubt that typing `gnome-terminal` would work in the described case. Why?
Because I could only do anything WITHIN the browser that was auto-started. Typing 'gnome-terminal' would not open a terminal.
There was a horizontal space above the browser, I could see desktop background. When I moved the mouse to this space, the arrow changed to 'X'. There was no connection to the desktop possible.
How you get better results when searching for yourself.
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Need help: menu and taskbar disappeared

Post by Termy »

Dan-cer wrote: Fri Aug 19, 2022 10:58 am [...]
I'd be surprised if deleting any '.desktop' files would cause problems like what you had, especially if they're just ones in your HOME, but maybe it's something specific to Cinnamon or traditional DEs. If Cinnamon is unnecessarily using those files to launch stuff behind the scenes at login (for the session, presumably), I'd expect that to be an oversight, for this very reason. Did you delete other system-wide (not in '~/') stuff?

At least you have a working system now — right?
I'm also Terminalforlife on GitHub.
User avatar
Dan-cer
Level 6
Level 6
Posts: 1159
Joined: Fri Jul 29, 2022 4:56 pm
Location: Germany, Lower Saxony

Re: Need help: menu and taskbar disappeared

Post by Dan-cer »

Termy wrote: Tue Aug 30, 2022 5:27 am Did you delete other system-wide (not in '~/') stuff?
At least you have a working system now — right?
Yes, the system is fine now. Regarding your first question: I deleted *.desktop files in /usr/share/applications that seemed "duplicated" to me.
And I did something similar in the main menu: >right-click on the menu icon >Setup >Menu >Open Menu Edit. In the various categories I deleted items that seemed "duplicated".

I specifically say they "seemed duplicate". For example, the program 'Okular' had about 8 - 10 different entries.

Resumé: One should not make such deletions.
How you get better results when searching for yourself.
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Need help: menu and taskbar disappeared

Post by Termy »

Dan-cer wrote: Tue Aug 30, 2022 5:45 am [...]
Oh wow, 8 different '.desktop' files for one application is usually wholly unnecessary, and might've been a bug from updates not replacing the original file. You had the right idea, TBH. I would've done the same thing and expected nothing to go wrong. Cinnamon maybe has a specific process involving those files, for some reason. Actually, I have a Cinnamon virtual machine, so I'm gonna go quickly try that...

I deleted the entire '/usr/share/applications' directory. After relogging, I got an error dialog saying it failed to load the Cinnamon session, so I guess it's something specific to how Cinnamon is setup (the aforementioned oversight), or it's something tied to how traditional DEs work. Don't worry, I have a backup. :lol:

Unfortunately, I can't think of a simple way to get back the '.desktop' files. The only thing which comes to mind is for someone to write a script to go through all of the packages for '.desktop' files in order to redownload and install just those files, but that doesn't account for one installed by other means. Hopefully Cinnamon can address this, because it's definitely a problem, if just one program or user does some such thing with such a file.

Something like the following could be involved, to grab a list of all of the '.desktop' files which should've been installed.

Code: Select all

for PKG in `dpkg -l | grep '^ii' | cut -d ' ' -f 3`; { dpkg -L "$PKG"; } | grep '^/usr/share/applications/'
Then you could determine from what packages those files are installed, use apt-get(8)'s --print-uris flag to grab the URLs — oh you know what, the whole thing is way too convoluted for this message. :lol: Point is, there is a way, but it's not a 3 second task.
I'm also Terminalforlife on GitHub.
Locked

Return to “Cinnamon”