Skip to content

Opening files directly from file explorer in linux #6

@LeviSnoot

Description

@LeviSnoot

Okay so this is a bit convoluted but I figured it doesn't hurt to at least bring it up.
I'm testing Silicate on linux right now using a build based on b1d18bd (v0.2.1) and it works pretty well so far. The reason I'm using a build based on that commit is it looks like it's the latest one that will successfully compile a linux executable, and I didn't want to put a ton of time into troubleshooting the code just to see if it would even work.

I've created a custom MIME type for .procreate files so the file association points to silicate, it looks like this:

/usr/share/mime/packages/application-x-procreate.xml

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/procreate">
    <comment>Procreate Art project files</comment>
    <glob pattern="*.procreate"/>
  </mime-type>
</mime-info>

/usr/share/applications/silicate.desktop

[Desktop Entry]
Version=2.1.0
Type=Application
Name=Silicate
GenericName=Procreate Viewer
Comment=View and explore .procreate files
Keywords=Procreate;illustration;art;images;painting;
Exec=silicate
Icon=silicate
MimeType=application/procreate

Opening a .procreate file through gnome's file explorer Nautilus now opens Silicate, so the file association is working, the problem is this doesn't open the file itself, it only opens the app as if it was launched by itself (so I still have to pick the file from Silicate's "Load Procreate File" dialog).

I don't know if this functionality even exists in Silicate, or if I've done something wrong. If the former, I guess this can be seen as a feature request, if the latter, some assistance would be greatly appreciated. Thank you for making this by the way, it's an absolute lifesaver for me!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions