Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

1 votes
1 answers
569 views
Synapse launcher: what is the difference between the `locate` command and the simple search?
I love Synapse in Xfce and want to know more about improving its use. I use it to restart, logout or shutdown, launch applications, access files and folders. I have been trying to fix a few problems that affected file access on my second drive, as it involved [opening files with executable permissio...
I love Synapse in Xfce and want to know more about improving its use. I use it to restart, logout or shutdown, launch applications, access files and folders. I have been trying to fix a few problems that affected file access on my second drive, as it involved opening files with executable permission and searching on a NTFS partition . I'm not sure the second problem is fixed: all the files I have searched for until now on the second partition are accessed through locate command — that is, typing the filename shows nothing and I have to press ENTER for locate to run and find them. After being found and opened in this way I would expect them to be found directly (without locate) the next time, but that is not the case. Such files are not even shown in the recent files (opening Synapse and pressing DOWN-ARROW; files appear in the recent files list if accessed from the file manager instead of Synapse). On the other hand, at least some **files and folders from $HOME are shown directly in Synapse without the need for locate to find them**. **What triggers the difference between these and the rest?** I guess Zeitgeist is involved in all normal Synapse search (the one that doesn't involve locate) and the fact Synapse is just showing me the $HOME files is because the problem of Synapse not searching NTFS partition (linked above) is not solved yet! I'm not sure I understand how locate plugin is supposed to work? Is Zeitgeist needing it in some cases or not, or are they completely separate processes?
cipricus (1779 rep)
Oct 11, 2019, 12:04 PM • Last activity: Oct 20, 2019, 10:00 AM
1 votes
0 answers
131 views
How to access storage device related events with Zeitgeist?
I am trying to get my mind around Zeitgeist, using the [Python DBus API][1]. To get the latest accessed files and application is not so hard, here is what I do: #! /usr/bin/env python from zeitgeist.client import ZeitgeistDBusInterface from zeitgeist.datamodel import Event, Interpretation, TimeRange...
I am trying to get my mind around Zeitgeist, using the Python DBus API . To get the latest accessed files and application is not so hard, here is what I do: #! /usr/bin/env python from zeitgeist.client import ZeitgeistDBusInterface from zeitgeist.datamodel import Event, Interpretation, TimeRange, \ StorageState, ResultType zg = ZeitgeistDBusInterface() events = zg.FindEvents( TimeRange.always(), [Event.new_for_values(interpretation=Interpretation.ACCESS_EVENT)], StorageState.Available, 3, ResultType.MostRecentEvents) for e in events: event = Event(e) subjects = event.get_subjects() for s in subjects: print "subject", s.text, s.uri The interpretation flag Interpretation.ACCESS_EVENT returns all matching events, i.e. files and application accessed. Much more interpretation flags are available , but I do not succeed in getting results from events other than with Interpretation.EVENT_INTERPRETATION and its subclasses. More specifically I would like to access Interpretation.DATA_CONTAINER and its subclass, but it never returns any result. So am I doing something wrong in that case? Could you suggest anything?
neydroydrec (3887 rep)
May 13, 2012, 08:58 AM • Last activity: May 13, 2012, 09:05 AM
2 votes
1 answers
155 views
Gnome Activity Journal stalls
I installed gnome-activity-journal, restarted zeitgeist and launched gnome-activity-journal, and the app just loads without ever displaying anything. I tried the latest version from the PPA: ii zeitgeist 0.8.2-0ubuntu1~ppa1~natty event logging framework ii zeitgeist-core 0.8.2-0ubuntu1~ppa1~natty ev...
I installed gnome-activity-journal, restarted zeitgeist and launched gnome-activity-journal, and the app just loads without ever displaying anything. I tried the latest version from the PPA: ii zeitgeist 0.8.2-0ubuntu1~ppa1~natty event logging framework ii zeitgeist-core 0.8.2-0ubuntu1~ppa1~natty event logging framework - engine ii gnome-activity-journal 0.6.0-0ubuntu1~natty1~ppa graphical user interface for Zeitgeist But the result is the same: stalled_activity_journal The daemon says: [DEBUG - zeitgeist.engine] Found 0 events in 0.000194s [DEBUG - zeitgeist.engine] Found 53 events in 0.000753s [DEBUG - zeitgeist.engine] Got 0 raw events in 0.000776s [DEBUG - zeitgeist.engine] Got 53 events in 0.000109s [DEBUG - zeitgeist.engine] Where time spent in _get_event_from_row in 0.000000s [DEBUG - zeitgeist.engine] Where time spent in _get_subject_from_row in 0.000000s [DEBUG - zeitgeist.engine] Where time spent in apply_get_hooks in 0.000000s [DEBUG - zeitgeist.engine] Found 28 events in 0.000766s [DEBUG - zeitgeist.engine] Got 0 raw events in 0.000444s [DEBUG - zeitgeist.engine] Got 28 events in 0.000113s [DEBUG - zeitgeist.engine] Where time spent in _get_event_from_row in 0.000000s [DEBUG - zeitgeist.engine] Where time spent in _get_subject_from_row in 0.000000s [DEBUG - zeitgeist.engine] Where time spent in apply_get_hooks in 0.000000s [DEBUG - zeitgeist.engine] Found 236 events in 0.001218s [DEBUG - zeitgeist.engine] Got 0 raw events in 0.003643s [DEBUG - zeitgeist.engine] Got 236 events in 0.000178s [DEBUG - zeitgeist.engine] Where time spent in _get_event_from_row in 0.000000s [DEBUG - zeitgeist.engine] Where time spent in _get_subject_from_row in 0.000000s [DEBUG - zeitgeist.engine] Where time spent in apply_get_hooks in 0.000000s [DEBUG - zeitgeist.engine] Found 115 events in 0.000892s [DEBUG - zeitgeist.engine] Got 0 raw events in 0.001598s [DEBUG - zeitgeist.engine] Got 115 events in 0.000118s [DEBUG - zeitgeist.engine] Where time spent in _get_event_from_row in 0.000000s [DEBUG - zeitgeist.engine] Where time spent in _get_subject_from_row in 0.000000s [DEBUG - zeitgeist.engine] Where time spent in apply_get_hooks in 0.000000s [DEBUG - zeitgeist.engine] Found 10 events in 0.000587s [DEBUG - zeitgeist.engine] Got 0 raw events in 0.000191s [DEBUG - zeitgeist.engine] Got 10 events in 0.000102s [DEBUG - zeitgeist.engine] Where time spent in _get_event_from_row in 0.000000s [DEBUG - zeitgeist.engine] Where time spent in _get_subject_from_row in 0.000000s [DEBUG - zeitgeist.engine] Where time spent in apply_get_hooks in 0.000000s [DEBUG - zeitgeist.engine] Found 0 events in 0.000665s [DEBUG - zeitgeist.fts] Indexing 'file:///home/raphink/Pictures/stalled_activity_journal.png' [DEBUG - zeitgeist.fts] Indexing 'file:///home/raphink/Pictures/stalled_activity_journal.png' [DEBUG - zeitgeist.fts] Indexing 'file:///home/raphink/Pictures/stalled_activity_journal.png' [DEBUG - zeitgeist.engine] Inserted 3 events out of 3 in 0.207549s [DEBUG - zeitgeist.notify] Checking monitor :1.146/org/gnome/zeitgeist/monitor/1 [DEBUG - zeitgeist.notify] Checking monitor :1.146/org/gnome/zeitgeist/monitor/3 [DEBUG - zeitgeist.notify] Checking monitor :1.146/org/gnome/zeitgeist/monitor/2 [DEBUG - zeitgeist.notify] Checking monitor :1.146/org/gnome/zeitgeist/monitor/5 [DEBUG - zeitgeist.notify] Checking monitor :1.146/org/gnome/zeitgeist/monitor/4 [DEBUG - zeitgeist.notify] Checking monitor :1.146/org/gnome/zeitgeist/monitor/6 [DEBUG - zeitgeist.notify] Notifying :1.146/org/gnome/zeitgeist/monitor/6 about 3 insertions [DEBUG - zeitgeist.fts] Committing FTS index [WARNING - zeitgeist.notify] Failed to deliver notification: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. Any idea what's wrong?
raphink (289 rep)
Oct 2, 2011, 10:52 PM • Last activity: Nov 16, 2011, 06:51 AM
Showing page 1 of 3 total questions