File indexing completed on 2024-11-24 03:56:28
0001 /* 0002 * SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best> 0003 * 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QDesktopServices> 0010 #include <QUrl> 0011 0012 namespace app::desktop { 0013 0014 inline bool open_file(const QString& path) 0015 { 0016 return QDesktopServices::openUrl(QUrl::fromLocalFile(path)); 0017 } 0018 0019 } // namespace app::desktop