fix appimage shortcuts (#137)
Properly recognizes AppImage launches and deduplicates some code b/t home menu and game list shortcuts Signed-off-by: swurl <swurl@swurl.xyz> Reviewed-on: #137 Co-authored-by: swurl <swurl@swurl.xyz> Co-committed-by: swurl <swurl@swurl.xyz>
This commit is contained in:
parent
e9e17b8fc2
commit
54bfb6e905
2 changed files with 129 additions and 164 deletions
|
@ -178,6 +178,8 @@ public:
|
|||
bool DropAction(QDropEvent* event);
|
||||
void AcceptDropEvent(QDropEvent* event);
|
||||
|
||||
std::filesystem::path GetShortcutPath(GameListShortcutTarget target);
|
||||
|
||||
signals:
|
||||
|
||||
/**
|
||||
|
@ -593,6 +595,15 @@ private:
|
|||
static std::array<int, 3> sig_interrupt_fds;
|
||||
#endif
|
||||
|
||||
std::filesystem::path GetEdenCommand();
|
||||
|
||||
void CreateShortcut(const std::string& game_path,
|
||||
const u64 program_id,
|
||||
const std::string& game_title,
|
||||
GameListShortcutTarget target,
|
||||
std::string arguments,
|
||||
const bool needs_title);
|
||||
|
||||
protected:
|
||||
void dropEvent(QDropEvent* event) override;
|
||||
void dragEnterEvent(QDragEnterEvent* event) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue