Page MenuHomeWildfire Games

Modify 0ad.desktop to accept a file as an argument
ClosedPublic

Authored by nwtour on Dec 30 2021, 8:30 AM.

Details

Summary

The easiest way to install a mod is to pass it as an argument
In gnome 3, this cannot be done without a terminal.
The patch modifies 0ad.desktop to accept a file as an argument

Spec: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables

Test Plan

Copy 0ad.desktop to ~/.local/share/applications/
Right-Click on any file -> "Open With Other Application" -> should appear in the list

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

nwtour requested review of this revision.Dec 30 2021, 8:30 AM
nwtour created this revision.

Can pyrogenesis cope with a list of files?

Can pyrogenesis cope with a list of files?

I checked it - it works. But I don't see any practical sense in this.

Freagarach added a comment.EditedDec 30 2021, 8:59 AM

Select a bunch of mods and install them in one go? (E.g. after system reinstallation.)

nwtour updated this revision to Diff 19335.Dec 30 2021, 9:13 AM

list of files

Freagarach accepted this revision.Dec 30 2021, 9:15 AM

Nice addition!

This revision is now accepted and ready to land.Dec 30 2021, 9:15 AM
Owners added a subscriber: Restricted Owners Package.Jan 6 2022, 8:34 PM