-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Does not associate .starc extension with Starc #88
Comments
Since the app sandboxed in Flatpak it can't register itself as a default app for any kind of files. But we should provide instruction about how to do it manually (something like jgraph/drawio-desktop#363). Plus we can add instruction about how to add AppImage file to the Applications menu (for Linux and ChromeOS), something like this. |
Kdenlive Flatpak seems to be able to do it. Maybe they know a trick? |
Will check it, thanks! |
Thinking here... worst case scenario, if you make the file type unique so it doesn't advertise itself as an SQLite3 file, I think we will probably be able to select Story Architect to open it and the system will remember that association from there on, no? Is there an easy way you can make the file header say "This is a Starc file" instead of "This is a SQLite3 file" while still keeping Story Architect's ability to open it as SQLite3? |
I believe this should be possible to fix, given that there are numerous apps that include their own filetype associations: |
Okay, I added the file with mime info to the repo. Now we should install it somehow? |
I believe the mimetype file should reside in diff --git a/dev.storyapps.starc.yml b/dev.storyapps.starc.yml
index 7251cf4..e651b3f 100644
--- a/dev.storyapps.starc.yml
+++ b/dev.storyapps.starc.yml
@@ -24,11 +24,13 @@ modules:
- cp squashfs-root/starc.desktop ${FLATPAK_ID}.desktop
- cp squashfs-root/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png ${FLATPAK_ID}.png
- cp squashfs-root/share/metainfo/${FLATPAK_ID}.metainfo.xml ${FLATPAK_ID}.metainfo.xml
+ - cp squashfs-root/share/mime/packages/${FLATPAK_ID}.mime.xml ${FLATPAK_ID}.mime.xml
- desktop-file-edit --set-icon ${FLATPAK_ID} --set-key Exec --set-value 'starc-run
%u' ${FLATPAK_ID}.desktop
- install -Dm644 ${FLATPAK_ID}.desktop -t ${FLATPAK_DEST}/share/applications
- install -Dm644 ${FLATPAK_ID}.png -t ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps
- install -Dm644 ${FLATPAK_ID}.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo
+ - install -Dm644 ${FLATPAK_ID}.mime.xml -t ${FLATPAK_DEST}/share/mime/packages
- install -Dm755 starc-run -t ${FLATPAK_DEST}/bin
- mv squashfs-root ${FLATPAK_DEST}/bin/starc
sources: |
Done |
It does open the I noticed the following log when running through the terminal (
I guess I should report it as a separate issue? |
Where are you opening that file? AFAIK it only has access to files within ~/Documents: |
On the Desktop. I added permission to 'xdg-desktop` using Flatseal. |
Where on the desktop? Can you make sure the file is moved into the documents folder and have it be opened here?
|
~/Desktop/file.starc Just move it to ~/Documents/file.starc and tried opening it there. Same result: crash. Tried both clicking on the file, and the xdg-open command you shared above. |
@dimkanovikov It looks like the mimetype has to match the MimeType property in the .desktop file:
|
My bad... Now mime types equal in both files. |
Looks good to me. I'll update the flatpak build manifest once the mimetype file is included in a new release. |
Nice, thanks! |
The latest update should have resolved this now. |
Nice! Thanks, @joshua-stone! |
You may have to delete the lock file that's created by Starc: Make sure you kill any old instances of Starc as well:
And make sure you have granted filesystem access to the required directory with Flatseal, or run the following:
|
Starc does not associate itself with the .starc extension. No proper file icon is associated with .starc files either.
.starc files are recognized as SQLite3 files, display a database icon and, when I click on a .starc file, the system tries to open the file with an app it thinks supports SQLite3 files, instead of Starc.
Expectations:
Clicking on a .starc file should open it in Starc. Also, .starc files should also be recognized as associated with Starc, and should display the appropriate file icon in file browsers.
When installing, Starc should set up these associations.
App Info
System Info
The text was updated successfully, but these errors were encountered: