summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Applications/Settings/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Applications/Settings/main.cpp b/Userland/Applications/Settings/main.cpp
index 7d8aff87dd..15795d1835 100644
--- a/Userland/Applications/Settings/main.cpp
+++ b/Userland/Applications/Settings/main.cpp
@@ -104,8 +104,7 @@ int main(int argc, char** argv)
icon_view.set_model(*model);
icon_view.on_activation = [&](GUI::ModelIndex const& index) {
- auto& app = *(Desktop::AppFile*)index.internal_data();
- auto executable = app.executable();
+ auto executable = model->data(index, GUI::ModelRole::Custom).as_string();
auto launch_origin_rect = icon_view.to_widget_rect(icon_view.content_rect(index)).translated(icon_view.screen_relative_rect().location());
setenv("__libgui_launch_origin_rect", String::formatted("{},{},{},{}", launch_origin_rect.x(), launch_origin_rect.y(), launch_origin_rect.width(), launch_origin_rect.height()).characters(), 1);