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

Disable plasma desktop shell popup error window

Tags: None
(comma "," separated)
davidbrooke
Registered Member
Posts
33
Karma
0
I would like to inquire about disabling a plasma desktop shell popup error window for KDE4 4.14.8. I have searched through System Settings>Applications and System Notifications>Manage Notifications and have not found a matching item.
Here is the actual popup error window:

Error Plasma Desktop Shell
"Unable to save bookmarks in /home/username/.kde4/share/apps/kfileplaces/bookmarks.xml. Reported error was: Error during rename.. This error message will only be shown once. The cause of the error needs to be fixed as quickly as possible, which is most likely a full hard drive."

I am causing the error, so there is no alarm. The plasma desktop shell popup error window is due to a work-around for an issue with Homerun application launcher and Dolphin. I would like to disable the popup error window. Please advise.
Thanks
luebking
Karma
0
lxr.kde.org says that this error (!) dialog isn't any optional - it's triggered if the desired file cannot be opened for writing (and falsely assumes there should be write access in general) - what you likely intended...
You'd have to patch and recompile kbookmarkmanager.
davidbrooke
Registered Member
Posts
33
Karma
0
[quote="luebking"You'd have to patch and recompile kbookmarkmanager.[/quote]
Please direct me to the patch.
Thanks
luebking
Karma
0
There's none, but it's fairly trivial to comment the relevant code in framewoks-kbookmark/src/kbookmarkmanager.cpp
davidbrooke
Registered Member
Posts
33
Karma
0
I'm not a programmer, I will need some kind of assistance to complete the task. Is there any other alternative?
luebking
Karma
0
You *will* have to compile something, there's no way around.
Code: Select all
git clone git://anongit.kde.org/kbookmarks.git
mkdir build
cd build
ccmake ..
# configure paths and options - you likely want to install in /usr, not /usr/local
make && sudo make install


in src/kbookmarkmanager.cpp simply replace
static int hadSaveError = false;
with
static int hadSaveError = true;
davidbrooke
Registered Member
Posts
33
Karma
0
The compiling is no problem. I use Gentoo, so applying a patch is as easy as making a directory, copying the patch file and executing a single command to compile and install. It is the programming aspect. I don't know how to get to kbookmarkmanager.cpp, much less edit the package.
luebking
Karma
0
no idea whether this is gonna help you

Code: Select all
diff --git a/src/kbookmarkmanager.cpp b/src/kbookmarkmanager.cpp
index 87398a0..fdcee4f 100644
--- a/src/kbookmarkmanager.cpp
+++ b/src/kbookmarkmanager.cpp
@@ -443,7 +443,7 @@ bool KBookmarkManager::saveAs(const QString &filename, bool toolbarCache) const
         }
     }
 
-    static int hadSaveError = false;
+    static int hadSaveError = true;
     if (!hadSaveError) {
         QString err = tr("Unable to save bookmarks in %1. Reported error was: %2. "
                          "This error message will only be shown once. The cause "
davidbrooke
Registered Member
Posts
33
Karma
0
Thanks for your help! I found a dev that was already working on the root cause (homerun writing to the bookmarks file for Dolphin). A patch was created to to stop homerun's write access. The patch is working correctly so far.
davidbrooke
Registered Member
Posts
33
Karma
0


Bookmarks



Who is online

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