Sweeper non funziona

Uso spesso sweeper per “pulire” il pc.
Anche oggi l’ho fatto, ma casualmente ho scoperto che in realtà non funziona.
L’output dice di aver finito, ma gli appunti sono rimasti al loro posto, come le thumbnails delle immagini, o i file recenti.
Avevo già rilevato un altro problema, cioè la mancata traduzione, ma non l’avevo considerato importante.
Si tratta di un problema solo mio?

Ciao @daraf
hai provato a lanciarlo da terminale per vedere se fornisce maggiori informazioni od segnalazione di errore?

Questo è tutto l’output che otterrai:
This is all the output you will get:

$ sweeper
sweeper(10118)/kdeui (KNotification) KNotificationManager::close: 3

Non sembra funzionare. Potresti provare a guardare a monte prima di presentare una segnalazione di bug. Potrebbe essere meglio archiviare una segnalazione di bug anche a monte.
It does not appear to be working. You might trying looking upstream before filing a bug report. You might be better off filing a bug report upstream as well.

https://utils.kde.org/projects/sweeper/

https://www.kde.org/applications/utilities/sweeper/

io ottengo un output diverso, perchè credo ci sia anche qualcos’altro che non va:
$ sweeper

(sweeper:4531): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «adwaita»,

(sweeper:4531): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «adwaita»,
sweeper(4531)/kdecore (kdelibs) *KToolInvocation::klauncher: klauncher not running… launching kdeinit
Link points to “/tmp/kde-angelo”
Link points to “/run/user/1001/ksocket-angelo”
kdeinit4: preparing to launch /usr/lib64/libkdeinit4_klauncher.so
kdeinit4: Launched KLauncher, pid = 4543, result = 0
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
klauncher(4543)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on “local:/run/user/1001/ksocket-angelo/klauncherhX4543.slave-socket”
kdeinit4: opened connection to :0
kdeinit4: preparing to launch /usr/lib64/libkdeinit4_kded4.so
kdeinit4: Launched KDED, pid = 4544 result = 0
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.

(kdeinit4: kded4 [kdeinit]:4545): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «adwaita»,

(kdeinit4: kded4 [kdeinit]:4545): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «adwaita»,
kdeinit4: Got EXT_EXEC ‘/usr/bin/kbuildsycoca4’ from launcher.
kdeinit4: preparing to launch /usr/lib64/libkdeinit4_kbuildsycoca4.so
klauncher(4543)/kio (KLauncher) KLauncher::processRequestReturn: “/usr/bin/kbuildsycoca4” (pid 4548) up and running.
kbuildsycoca4 running…
kbuildsycoca4(4548)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from “/var/tmp/kdecache-angelo/ksycoca4”
kbuildsycoca4(4548) KBuildSycoca::checkTimestamps: checking file timestamps
kbuildsycoca4(4548) KBuildSycoca::checkTimestamps: timestamps check ok
kbuildsycoca4(4548) kdemain: Emitting notifyDatabaseChanged ()
kdeinit4: PID 4548 terminated.
kded(4545)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from “/var/tmp/kdecache-angelo/ksycoca4”
klauncher(4543)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from “/var/tmp/kdecache-angelo/ksycoca4”
kdeinit4: Got EXEC_NEW ‘kconf_update’ from launcher.
kdeinit4: preparing to launch /usr/lib64/libkdeinit4_kconf_update.so
klauncher(4543)/kio (KLauncher) KLauncher::processRequestReturn: “kconf_update” (pid 4551) up and running.
kdeinit4: PID 4551 terminated.
kdeinit4: PID 4544 terminated.
kdeinit4: Got EXT_EXEC ‘/usr/bin/knotify4’ from launcher.
kdeinit4: preparing to launch /usr/bin/knotify4
klauncher(4543)/kio (KLauncher) KLauncher::processRequestReturn: “/usr/bin/knotify4” (pid 4552) up and running.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.

(knotify4:4553): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «adwaita»,

(knotify4:4553): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «adwaita»,
knotify(4553) NotifyByPopup::slotServiceOwnerChanged: “org.freedesktop.Notifications” “” “_”
knotify(4553)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from “/var/tmp/kdecache-angelo/ksycoca4”
knotify(4553) NotifyBySound::notify: going to play “/usr/share/sounds/KDE-Sys-Warning.ogg”
sweeper(4531)/kdeui (KNotification) KNotification::slotReceivedIdError: Error while contacting notify daemon “Message recipient disconnected from message bus without replying”
unnamed app(4552): Communication problem with “knotify” , it probably crashed.
Error message was: “org.freedesktop.DBus.Error.NoReply” : " “Message recipient disconnected from message bus without replying” "

kdeinit4: PID 4552 terminated.
kded(4545) KDEDModule::setModuleName: registerObject() successful for “kcookiejar”
kded(4545)/kded4 *Kded::loadModule: Successfully loaded module “kcookiejar”
sweeper(4531) ClearFaviconsAction::action: saving the favicons that are in konqueror bookmarks
sweeper(4531) ClearFaviconsAction::action: opened konqueror bookmarks at “/home/angelo/.kde4/share/apps/konqueror/bookmarks.xml”
sweeper(4531) ClearAllCookiesPoliciesAction::action: removing all saved cookie policies

Non mi è chiaro cosa significhi “guardare a monte”.
Cosa dovrei guardare?
P.s. non funziona su nessuno dei miei pc con Openmandriva (4, attualmente)

La versione attualmente disponibile nei repository è la 17.04; l’ultima disponibile è la 17.12. Forse il problema è già stato risolto. Se non fosse possibile aggiornare alla versione 17.12, almeno la versione 17.08 potrebbe funzionare.

@daraf: puoi aprire una richiesta di motivata aggiornamento?

Non credo che dipenda dalla versione; credo che sia stato fatto qualche errore,magari di compilazione.
Come anche la mancata traduzione.
Sono vecchio, e il mio inglese scolastico mi rende difficile segnalare un bug, se non raccontandolo su questo forum.

Ok, ho provato su altre installazioni (totale 4) e non funziona su nessuna.
Se non verrà sistemato, qualcuno sa consigliarmi un altro metodo (veloce, non manuale) per cancellare tutte le cronologie e mantenere un po’ di privacy? Non mi importa della cronologia dei browser, mi basta cancellare appunti, thumbnails, documenti recenti e cose simili

L’ultima versione di OpenMandriva è Lx 3, quindi si presume che sia ciò che un utente sta usando se non lo specifica. Quale versione di OpenMandriva stai usando? Da dove viene tutta questa roba di KDE4?

Se stai usando Lx 3 allora hai sicuramente un problema diverso, hai molti pacchetti KDE4 incompatibili per qualche ragione.

Latest version of OpenMandriva is Lx 3 so it is assumed that is what a user is using if they do not specify. What version of OpenMandriva are you using? Where is all that KDE4 stuff coming from?

If you are using Lx 3 then you certainly do have a different problem, you have a lot of incompatible KDE4 packages for some reason.

Sto usando Lx3. I pacchetti kde4 sono stati installati insieme ad un rpm di cui attualmente non ricordo niente.

Edit: ho controllato, e molti dei degli rpm installati sono ancora legati a KDE4; lo stesso sweeper utilizza kdelibs-core, che sembra essere un pacchetto di kde4.

E oggi sto ottenendo risultati simili ai tuoi. Non ho idea del perché ho avuto quello che ho ottenuto prima. Ad ogni modo non funziona, quindi una versione più recente lo aggiusta o è necessario decidere se presentare una segnalazione di bug con OM o upstream.

And today I’m getting output similar to yours. No idea why I got what I got earlier. Anyway it isn’t working so either a newer version fixes this or you need to decide whether to file bug report with OM or upstream.

Ok. Appurato che non funziona, qualcuno può fare la segnalazione a chi di dovere, o spiegarmi come si fa, che ci provo io?

Ho cercato di spazzare “contenuto degli appunti”,“applicazioni recenti” e “Thumbnails cache”, naturalmente senza successo.
strace mostra che spazzatrice non riesce a trovare alcuni file interessanti. Ad esempio:

  • ~/. kde4/share/config/klipperrc: sembra che questo sia il file di configurazione del pacchetto klipper, non l’ applet clipboard.
  • ~/.thumbnails/normal: le miniature sono ora memorizzate in ~/. cache/immagini/normali
  • applicazioni recenti: non ho trovato nulla su di esso

Quindi penso che la spazzatrice debba essere aggiornata.

Tradotto con www.DeepL.com/Translator

I tried to sweep “clipboard content”, “recent applications” and “Thumbnails cache”, of course without success.
strace shows that sweeper cannot find some interesting files. For example:

  • ~/.kde4/share/config/klipperrc: it seem this the config file for the package klipper, not the applet clipboard
  • ~/.thumbnails/normal: thumbnails are now stored in ~/.cache/thumbnails/normal
  • recent applications: I didn’t find anything about it

So I think sweeper must be updated.

Personalmente, colleghi le directory delle cache a _/tmp/cache/… _ che è montato in RAM. Da /etc/fstab:
tmpfs /tmp tmpfs impostazioni predefinite, noatime, mode=1777 0 0
Così, vengono automaticamente eliminati quando il computer si ferma.

Tradotto con www.DeepL.com/Translator Personally, I link the cache directories to _/tmp/cache/..._ which is mounted in RAM. From _/etc/fstab_: `tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0` Thus, they are automatically deleted when the computer stops.

sembra risolto nell’ultima versione.

It seems solved in latest version:

https://bugs.kde.org/show_bug.cgi?id=361482

potrebbe essere una soluzione. In effetti il vecchio installer di Mandrake (il primo installer grafico della storia ad essere veramente facile da usare pur essendo “completo”) prevedeva anche la scelta tra tmp residente su RAM o su hard-disc. Se adesso la scelta può essere fatta in seguito, ci adatteremo.
Resta comunque un barbatrucco, e non risolve il bug di sweeper.

Scusate, doveva essere la risposta al messaggio di jclvanier

Ho sottomesso la segnalazione di bug.

C’è una nuova versione nel main-testing repo.

There is a new version in main-testing repo.

Fateci sapere qui se funziona o no.

Let us know here if it works or not.

come installo i repo testing?

Comunque non funziona ancora (anche se adesso cancella la cronologia delle applicazioni nel menù).
Manca tutto il resto: appunti e thumbnails in particolare.

Lo so, dovrei riferire sulla pagina dei bug, e non qui. Devo solo ricordare i dati per il login.

La versione 17.12.1 è adesso nei repository ufficiali, perciò basta aggiornare il sistema.

temo che per i thumbnails continui a non funzionare perchè punta alla vecchia cartella kde4.
io l’ho modificato così:

--- privacyfunctions.cpp        2018-02-17 13:50:20.985739675 +0100                                                  
+++ ../../Programmi/sweeper/privacyfunctions.cpp        2018-02-16 14:53:52.274430359 +0100                          
@@ -53,7 +53,7 @@                                                                                                    
    // http://freedesktop.org/Standards/Home
    // http://triq.net/~jens/thumbnail-spec/index.html
 
-   QDir thumbnailDir( QDir::homePath() + QLatin1String( "/.thumbnails/normal" ));
+   QDir thumbnailDir( QDir::homePath() + QLatin1String( "/.cache/thumbnails/normal" ));
    thumbnailDir.setFilter( QDir::Files );
    const QStringList entries = thumbnailDir.entryList();
    for( QStringList::const_iterator it = entries.begin() ; it != entries.end() ; ++it) {
@@ -63,7 +63,7 @@
       }
    }
 
-   thumbnailDir.setPath(QDir::homePath() + QLatin1String( "/.thumbnails/large" ));
+   thumbnailDir.setPath(QDir::homePath() + QLatin1String( "/.cache/thumbnails/large" ));
    const QStringList entries2 = thumbnailDir.entryList();
    for( QStringList::const_iterator it = entries2.begin() ; it != entries2.end() ; ++it) {
       if(!thumbnailDir.remove(*it)) {
@@ -72,7 +72,7 @@
       }
    }
 
-   thumbnailDir.setPath(QDir::homePath() + QLatin1String( "/.thumbnails/fail" ));
+   thumbnailDir.setPath(QDir::homePath() + QLatin1String( "/.cache/thumbnails/fail" ));
    const QStringList entries3 = thumbnailDir.entryList();
    for( QStringList::const_iterator it = entries3.begin() ; it != entries3.end() ; ++it) {
       if(!thumbnailDir.remove(*it)) {

non cercate di risolvere con un link simbolico se non volete creare una ricorsività che vi riempie il disco di miniature :wink:

mentre, per gli appunti, deve essere in esecuzione klipper e non la nuova funzionalità presente nella systray di plasma.

 if (QDBusConnection::sessionBus().interface()->isServiceRegistered(QStringLiteral("org.kde.klipper"))) {
        checklist.append(new ClearSavedClipboardContentsAction(generalCLI));
   }

togliendo gli appunti dalla systray ed eseguendo klipper da me funziona.

1 Like