This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Restore deleted taskbar

Tags: None
(comma "," separated)
dajomu
Registered Member
Posts
26
Karma
0
OS

Restore deleted taskbar

Thu Apr 08, 2010 11:12 am
I assume in order to restore a deleted taskbar one has to delete ~/.kde/config. But this is way to difficult for a novice. It is very easy for someone that right-click on an icon on the taskbar to remove it to actually remove the whole taskbar. How then should he get it back? There should be an easy way to restore the taskbar for novices. There should have been a "restore default desktop" maybe with option to choose taskbar, menu, etc. somewhere in system settings.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Restore deleted taskbar

Thu Apr 08, 2010 10:07 pm
Which application did you lose the toolbar in? It can likely be restored by removing $(kde4-config --localprefix)/share/apps/<app name>/*ui.rc


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
dajomu
Registered Member
Posts
26
Karma
0
OS

Re: Restore deleted taskbar

Fri Apr 09, 2010 10:40 am
Sorry but did you read what I wrote? I am talking about deleting the whole taskbar, start-menu, system tray, application panel. And I am not looking for a cryptic way to fix the problem either, but an easy way to restore to default desktop for a novice. How in the world should I go about to help my poor father to restore the taskbar over the telephone?
There should be, as I said, something like a way to "..."restore default desktop" maybe with option to choose taskbar, menu, etc. somewhere in system settings."
User avatar
annew
Manager
Posts
1155
Karma
11
OS

Re: Restore deleted taskbar

Fri Apr 09, 2010 11:05 am
The taskbar is a widget, as is the system tray. Use Add Widgets to replace them


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org
Asraniel
Registered Member
Posts
49
Karma
0

Re: Restore deleted taskbar

Fri Apr 09, 2010 11:18 am
i think i know what you want, you don't only want the taskbar, but also the panel.

So, add a new panel, it will be empty. then add the widgets you need.

There is probably something in the works for kde 4.5 that there will be a similar functionality as the one you asked for.
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS

Re: Restore deleted taskbar

Fri Apr 09, 2010 3:50 pm
First off: NEVER delete the config directory unless you want to reconfigure all of KDE - including Kmail, Amarok, Dolphin, Kopete, kmix, and whatever else of the KDE-apps that may be in use.

But until (of if) a "Restore to default" menu-entry makes its appearance I can think of two solutions to the problem. Neither are perfect but may make do.

First, make sure his desktop is setup as he wants it. This of course applies to both solutions.

For solution one, make a backup-copy of ~/.kde/share/config/plasma* to a location where he has no write/delete access so he can't accidentally delete the backups. Say to /opt/plasma-backup. Create a script he can run if he screws up the desktop again. Something like this should suffice:

Code: Select all
#!/bin/sh

kquitapp plasma-desktop
cp /var/plasma-backup/plasma* ~/.kde/share/config
plasma-desktop &&
exit


Make the script executable, save it in an appropriate location and add it to the menu for him and he should be able to restore the desktop to his default easy enough. The major drawback is that it restores everything and not only the panel. And that it may be disconcerting to see the desktop disappear for a while.

The second idea is to make the plasma* files read-only. The drawback with that is he would be unable to even change the wallpaper.

Like I said, not ideal solutions but may work as work-arounds to a current limitation. And you only have to set it up once and after that he should be able to do it himself, no matter what his proficiency level when it comes to computers is.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
fraxinus
Registered Member
Posts
36
Karma
0
OS

Re: Restore deleted taskbar

Mon Jun 21, 2010 10:23 am
I am glad I have found this thread. I, too, recently deleted my panel by mistake. Also (and much more stressfully) this happened to someone I know who lives elsewhere - it caused great confusion and distress and was hard to deal with over the phone! I have also had to deal with an accidental deletion of the trash from the desktop, done by a tired person who instinctively clicked on the red cross to empty it.

Please, from a usability perspective, can this issue be reviewed in future releases of KDE 4? Might it be sensible for the deletion of certain key elements like these to require root privileges by default? As other posters have pointed out, experienced users can deal with this but relative newcomers will find it hard - and some of us have discovered that these accidental deletions can happen very easily in a moment's inattention!
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

Re: Restore deleted taskbar

Mon Jun 21, 2010 10:37 am
In 4.5 you can choose to create a panel with the default widgets instead of an empty panel.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Restore deleted taskbar

Tue Jun 22, 2010 3:10 am
I would also recommend having widgets locked unless you need to change them, to avoid accidentally removing panels or widgets.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS

Re: Restore deleted taskbar

Tue Jun 29, 2010 12:28 am
In KDE 4.5 you cannot remove a panel unless it is empty.


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS

Re: Restore deleted taskbar

Tue Jun 29, 2010 8:13 am
@TheBlackCat

I've just tested it - you can remove a non-empty panel.

--
@OP

As the posters above said, now you can create a panel with all default widgets in it just by choosing Add Panel -> Default Panel


Image
elder74
Registered Member
Posts
2
Karma
0
OS

Re: Restore deleted taskbar

Sat Jul 03, 2010 12:41 am
[quote="Kryten2X4B"]
#!/bin/sh

kquitapp plasma-desktop
cp /var/plasma-backup/plasma* ~/.kde/share/config
plasma-desktop &&
exit
[/code]

My 3 year old granddaughter took away my Task Bar on KDE 4, running on Mandriva 2010. I have spent hours trying to fix it and if I was not bald already I would be now. :-\

I was given the following to re-install the task bar:

kquitapp plasma-desktop rm -fv ~/.kde4/share/config/plasma* plasma-desktop &

It didn't work kquitapp did not recognize -fv. I googled for solutions but have yet to find one that works. Any help would be appreciated.
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS

Re: Restore deleted taskbar

Sat Jul 03, 2010 12:56 am
elder74 wrote:It didn't work kquitapp did not recognize -fv. I googled for solutions but have yet to find one that works. Any help would be appreciated.


You need to separate it onto several lines like this:

Code: Select all
kquitapp plasma-desktop
rm -fv ~/.kde4/share/config/plasma*
plasma-desktop &


Note: doing this WILL reset the desktop to whatever Mandriva has as a default and not just the taskbar.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
elder74
Registered Member
Posts
2
Karma
0
OS

Re: Restore deleted taskbar

Mon Jul 05, 2010 1:58 pm
Kryten2X4B wrote:
elder74 wrote:It didn't work kquitapp did not recognize -fv. I googled for solutions but have yet to find one that works. Any help would be appreciated.


You need to separate it onto several lines like this:

Code: Select all
kquitapp plasma-desktop
rm -fv ~/.kde4/share/config/plasma*
plasma-desktop &


Note: doing this WILL reset the desktop to whatever Mandriva has as a default and not just the taskbar.


Thank you for your assist. In frustration I copied the above from the message and pasted it as it was into the terminal and it did indeed work.
You learn as you go I guess. The great thing about linux is that there are a lot of forums with helpful folk who will help you out.
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS

Re: Restore deleted taskbar

Mon Jul 05, 2010 2:46 pm
ivan wrote:@TheBlackCat

I've just tested it - you can remove a non-empty panel.

That's strange, I am pretty sure you used to not be able to.


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]