mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 05:17:34 +00:00
LibDesktop: Switch to LaunchServer for DesktopServices::open
Moves DirectoryServices out of LibCore (because we need to link with LibIPC), renames it Desktop::Launcher (because Desktop::DesktopServices doesn't scan right) and ports it to use the LaunchServer which is now responsible for starting programs for a file.
This commit is contained in:
parent
2708cc0f72
commit
b7810a31c3
10 changed files with 109 additions and 111 deletions
|
@ -29,7 +29,7 @@
|
|||
#include <AK/NumberFormat.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <AK/URL.h>
|
||||
#include <LibCore/DesktopServices.h>
|
||||
#include <LibDesktop/Launcher.h>
|
||||
#include <LibGUI/SortingProxyModel.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
@ -53,7 +53,7 @@ void DirectoryView::handle_activation(const GUI::ModelIndex& index)
|
|||
return;
|
||||
}
|
||||
|
||||
Core::DesktopServices::open(URL::create_with_file_protocol(path));
|
||||
Desktop::Launcher::open(URL::create_with_file_protocol(path));
|
||||
}
|
||||
|
||||
DirectoryView::DirectoryView()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue