StanWarford / pep9suite

Pep9Suite is a suite of software for the Pep/9 virtual machine described in the text Computer Systems, J. Stanley Warford, fifth edition.
http://computersystemsbook.com
Other
16 stars 7 forks source link

Pep9 GUI on Linux open files on program start #113

Open fstonedahl opened 2 years ago

fstonedahl commented 2 years ago

Feature request: It would be VERY convenient if I could run:

Pep9-x86_64-930.AppImage filename.pep

to immediately open a file upon startup. This would allow me to associate this program with .pep or .pepo files, and allow me to open them in Pep9 simply by double-clicking on them, instead of having to open the Pep9 gui separately, choose File->Open, and then navigate to the right folder to open them.

I haven't checked if this feature is already available on other operating systems -- if not, it would be very useful there too.

(I imagine this feature should be a simple check for a command line argument, and if it represents a valid file, then open it).

Matthew-McRaven commented 2 years ago

Hello! And thanks for the feature request!

I believe we already have code that does this on Windows and Mac, so it should be pretty easy to modify the program to accommodate Linux.

I'll have to modify some .desktop files and change how CLI args are parsed.

I should have time to implement this the week of February 10th (assuming it doesn't end up being horribly difficult), but I'll be out of office between now and then.