3e03fed1a2
gui: IpcServer: Use IPCPreviewWorker
2022-05-27 09:26:37 +02:00
6439adffc6
gui: Begin IPCPreviewWorker
2022-05-27 09:26:03 +02:00
02642a147a
gui: Retire IPCClient and PreviewWorker
2022-05-27 09:24:42 +02:00
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
9d160ed7a0
gui: Add icon
...
Not the best on dark themes, better than nothing for now.
2022-04-28 09:13:34 +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
d2d576e617
gui: Call enableSandboxing() after ensureConfigured() so all paths are guaranteed to exist
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
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
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
0af7d4a3dc
GUI: Begin new 'Indexer' tab
2022-04-15 21:06:56 +02:00
56414ee5e2
shared: Begin basic ConcurrentQueue
2022-04-15 21:06:56 +02:00
2e3b008207
gui: main: Add --no-sandbox
2022-01-04 23:44:37 +01:00
ea1d027621
gui: main: Enable sandbox post call to Common::setupAppInfo()
...
Move sandboxing code to own function
2022-01-04 23:27:45 +01:00
b10c2edf05
MainWindow: Avoid potential double path searches
2022-01-04 11:24:37 +01:00
404ce22ce6
Generalize previews: Mainwindow: Do necessary renames
2022-01-04 11:24:37 +01:00
0cbd0dd9eb
Generalize previews: Retire PdfWorker, Add PreviewWorker
2022-01-03 23:14:55 +01:00
d816603a1c
Generalize previews: Add PreviewGenerator*
2022-01-03 23:14:55 +01:00
95b3d1fce2
Generalize previews: Add PreviewResult,PreviewResultPdf, remove PdfPreview
2022-01-03 23:14:55 +01:00
32286cae4b
Add RenderConfig, combining common parameters
2022-01-03 23:14:55 +01:00
c51487c4b2
gui: Call setupAppinfo() also for the IPC server
2022-01-03 23:14:55 +01:00
407ee1210c
gui: Perform content search and path search by default
...
Search for content and paths. Merge lone words for content search.
This behaviour is much more natural than typing "c:()".
2022-01-03 23:14:55 +01:00
bb5a793300
gui: Add vow_promises to exile policy
2022-01-03 23:14:55 +01:00
ba636bf0fc
IpcServer: Fix off-by-one
2022-01-01 17:58:52 +01:00
88ee2383f7
Switch to exile.h
2022-01-01 17:58:52 +01:00
890925929a
GUI: Begin IPC mechanism to open files despite sandboxing
2022-01-01 17:58:52 +01:00
530ad9c334
pdfworker: Remove dead code
2022-01-01 17:58:52 +01:00
ebea074fcb
gui: Begin basic sandboxing
2022-01-01 17:58:52 +01:00
95d4a12005
MainWindow: Fix Qt deprication
2021-06-12 23:01:14 +02:00
aac027fa16
gui.pro: Change target to looqs-gui
2021-06-12 15:06:41 +02:00
e97551be97
Rename all symbols to new project name
2021-06-12 14:59:58 +02:00
576b884574
mainwindow: warn if deleted files in search results
2021-03-27 18:18:19 +01:00
9ced0ec742
mainwindow: add right click menu to preview labels
2021-03-27 17:58:38 +01:00
e225fdad21
gui: pdfworker: Explicitly unlock mutex, don't wait for destructor
2021-03-07 22:27:27 +01:00
d3fe08b64b
clicklabel: Add right button click signal
2021-03-07 22:26:59 +01:00
3fd4e47196
mainwindow: set window title
2021-03-07 21:09:38 +01:00