fe29641d0a
IpcServer: Remove docOpen(), fileOpen(). MainWindow will do it
...
As it is no longer subject to sandboxing as a whole, it is not
restricted and thus, should call these functions itself
2022-05-17 19:23:03 +02:00
830226ae59
RenderConfig: Add serialization, basically for IPC
2022-05-17 19:20:06 +02:00
6a5cb69e27
gui: Add RenderTarget struct, an IPC helper class
2022-05-17 19:19:02 +02:00
b137dec434
gui: indexer tab: Show filepicker dialog when corresponding button clicked
2022-05-03 16:20:06 +02:00
f67a37bc21
GUI: Disable general sandbox due to inpracticability
...
Qt is usually built with Accessibility and D-Bus. If D-Bus
connections work, a bypass should be considered trivial.
If we block D-Bus, we experience quite some slowdowns in
certain contexts. That's because Qt makes D-Bus connections
for accessibility features etc. They appear to run into timeouts,
but this slows down things. Sandboxing also makes things
like showing (native) file picker dialogs harder.
Sandboxing efforts will focus on the critical paths such as
the existing Indexer sandbox and the to be implemented sandboxing
for preview generation.
We keep no_new_privs for now as chances are that this shouldn't hurt.
2022-05-03 15:56:08 +02:00
4a492fb356
shared: ParallelDirScanner: Remove leftover debug output
2022-04-28 23:45:56 +02:00
9d160ed7a0
gui: Add icon
...
Not the best on dark themes, better than nothing for now.
2022-04-28 09:13:34 +02:00
def766ba67
shared: common: On first start, try to set a rasonable pdfviewer value
...
May not be users default, but better than nothing for now.
Issue: #27
2022-04-25 23:01:11 +02:00
0d01fa977d
shared: LooqsQuery: Consider " a part of the loneword
...
Strictly speaking a hack, and we may probably need to
add more chars here.
This mainly fixes the difference between:
"one two"
and c:("one two")
In the first case they are "lonewords", the " does
not get picked up. Then, the search results are something
not expected.
2022-04-25 22:27:46 +02:00
b229d9a68d
cli: CommandUpdate: Add missing clear of files vector
2022-04-25 22:22:40 +02:00
a0ced3f7d0
add LICENSE
2022-04-24 20:07:25 +02:00
a8184191b3
cli: Exit explicitly on unknown command
2022-04-24 19:40:43 +02:00
a132485924
gui: enableSandbox: Don't unshare network due to slowdowns
...
The indexer is quite slow with unshared network namespaces. It appears something in
Qt needs it as IPC or whatever. Seeing also dbus-related errors:
Issue: #33
So disable it for now.
2022-04-24 19:40:43 +02:00
9b51e00737
Rename leftovers that were forgotten in 645903ed6b
2022-04-24 19:40:43 +02:00
d2d576e617
gui: Call enableSandboxing() after ensureConfigured() so all paths are guaranteed to exist
2022-04-24 19:40:43 +02:00
30414e3da3
Cli: CommandAdd: Correct progress print
2022-04-24 19:40:43 +02:00
8734d56d09
update README
2022-04-24 19:40:43 +02:00
08da6b4349
gui: main: Remove vows from exile policy
...
SandboxedProcessor is not launched via IPCServer at this point.
The vow set is already very big and SandboxedProcessor
would require exec too.
So use exile default policy and add some path permisisons.
Once SandboxedProcessor is handled by IPC and preview generation
is also exiled separately, it has to be reevaluated whether
it makes sense for vows to return.
2022-04-24 19:40:43 +02:00
629c1efba5
IpcServer: Add addFile()
2022-04-24 15:52:20 +02:00
d73674937d
gui: Begin support to also preview results in plain text files
2022-04-24 15:52:20 +02:00
59aa02f0cd
gui: MainWindow: handleSearchResults: Use PreviewGenerator::get
2022-04-24 15:52:20 +02:00
1536781bda
gui: PreviewGeneratorMapFunctor: Use PreviewGenerator::get()
2022-04-24 15:52:20 +02:00
57bb5c48c8
gui: PreviewGenerator: Add get()
2022-04-24 15:52:20 +02:00
84e13e432b
shared: common: Introduce ipcSocketPath()
2022-04-24 15:52:20 +02:00
e8f095f821
shared: sqlitedbservice: Call prepare(), don't pass query in constructor for consistency
2022-04-24 15:52:20 +02:00
c99827e854
shared: FileScanWorker: Catch correct exception type
2022-04-24 15:52:20 +02:00
4d0d9ba9c6
main: sandbox: Add clone vow, Use exile_vows_from_str()
...
Fresh ubuntu 22.04 uses clone3(). thread vow is not enough anymore.
Maybe Qt uses it now, who knows, let's just allow it for the time being.
2022-04-24 15:52:20 +02:00
e3440beae7
shared: sqlitesearch: Avoid joining content table more than once
2022-04-24 15:52:20 +02:00
8194476fa6
shared: sqlitesearch: Only order by rank if token is FILTER_CONTENT_CONTAINS
2022-04-24 15:52:20 +02:00
2a024a9b40
gui: Improve conditions where progressbar visible, minor useability improvemnets
2022-04-24 15:52:20 +02:00
0503325c47
gui: Indexer tab: Save/Restore paths to/from settings
2022-04-24 15:52:20 +02:00
62d3eac498
gui: Properly restore other widgets after index has finished
2022-04-24 15:52:20 +02:00
45de97d8fb
gui: Begin cancellation of Indexer
2022-04-24 15:52:20 +02:00
622916db04
gui: Implement 'Delete' button in Indexer tab
2022-04-15 21:06:56 +02:00
ef3f7bc72a
gui: Check whether path exists before adding
2022-04-15 21:06:56 +02:00
a349d9bfe0
update README
2022-04-15 21:06:56 +02:00
1cc7053193
shared: Update shared.pro with recent additions
2022-04-15 21:06:56 +02:00
0af7d4a3dc
GUI: Begin new 'Indexer' tab
2022-04-15 21:06:56 +02:00
be41fab5d5
CLI: Use new 'Indexer' to add Commands
2022-04-15 21:06:56 +02:00
c51fd3c555
shared: FileSaver: Return NOTFOUND, Handle NOTHING_PROCESSED exit code correctly
2022-04-15 21:06:56 +02:00
715023a3ee
shared: FileSaver: Make addFile(),updateFile() public
2022-04-15 21:06:56 +02:00
4234967ef5
shared: Add NOTFOUND SaveFileResult
2022-04-15 21:06:56 +02:00
d483d05db1
shared: Begin Indexer
2022-04-15 21:06:56 +02:00
564b5ddae8
shared: Begin FileScanWorker
2022-04-15 21:06:56 +02:00
d7705241ee
shared: Begin ParallelDirScanner
2022-04-15 21:06:56 +02:00
f3fbf4a1dc
shared: Begin DirScanWorker
2022-04-15 21:06:56 +02:00
56414ee5e2
shared: Begin basic ConcurrentQueue
2022-04-15 21:06:56 +02:00
478d57b342
cli: Move most classes to shared lib for reuse
2022-04-15 21:06:56 +02:00
d43c35819d
common: Use DBMigrator to init and update database
2022-04-15 21:06:56 +02:00
3d8b086f53
shared: Begin db migration logic
...
Issue: #26
2022-04-15 21:06:56 +02:00