Comments (22)
I believe this should be possible to fix, given that there are numerous apps that include their own filetype associations:
from starc.
My bad... Now mime types equal in both files.
from starc.
Looks good to me. I'll update the flatpak build manifest once the mimetype file is included in a new release.
from starc.
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.
from starc.
Kdenlive Flatpak seems to be able to do it. Maybe they know a trick?
from starc.
Will check it, thanks!
from starc.
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?
from starc.
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?
from starc.
I believe the mimetype file should reside in share/mime/packages/dev.storyapps.starc.mime.xml
inside the AppImage, that way it can be easily copied along the other files during the flatpak build process:
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:
from starc.
Done
from starc.
It does open the .starc
file with Starc when I click on it, but it immediately crashes.
I noticed the following log when running through the terminal (xdg-open file.starc
):
2023.06.09 13:26:18.068 [D] Failed to write minidump, dump path: ~/.var/app/dev.storyapps.starc/data/Story Apps/Story Architect/crashreports/c4ad6038-a08d-4545-da9066b1-554ca98f.dmp
/app/bin/starc-run: line 2: 3 Segmentation fault (core dumped) /app/bin/starc/starc $@
I guess I should report it as a separate issue?
from starc.
Where are you opening that file? AFAIK it only has access to files within ~/Documents:
from starc.
On the Desktop. I added permission to 'xdg-desktop` using Flatseal.
from starc.
Where on the desktop?
Can you make sure the file is moved into the documents folder and have it be opened here?
$ xdg-open ~/Documents/file.starc
from starc.
~/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.
from starc.
@dimkanovikov It looks like the mimetype has to match the MimeType property in the .desktop file:
$ cp dev.storyapps.starc.mime.xml ~/.local/share/mime/packages/
$ update-mime-database ~/.local/share/mime -V
Updating MIME database in /var/home/jstone/.local/share/mime...
Parsing source file /var/home/jstone/.local/share/mime/packages/dev.storyapps.starc.mime.xml...
Wrote 3 strings at 2c - 6c
Wrote aliases at 6c - 70
Wrote parents at 70 - 84
Wrote literal globs at 84 - 88
Wrote suffix globs at 88 - e4
Wrote full globs at e4 - e8
Wrote magic at e8 - f4
Wrote namespace list at f4 - f8
Wrote icons list at f8 - 104
Wrote generic icons list at 104 - 110
Wrote types list at 110 - 118
$ xdg-open ~/Documents/starc/projects/Starc.starc
gio: file:///var/home/jstone/Documents/starc/projects/Starc.starc: Failed to find default application for content type ‘application/x-starc’
from starc.
Nice, thanks!
from starc.
The latest update should have resolved this now.
from starc.
Nice! Thanks, @joshua-stone!
from starc.
But the crash still happens for me when I click on a .starc file or by running xdg-open path/to/file.starc
via terminal. Is it working for you?
The terminal output is:
2023.07.06 13:08:57.861 [I] Story Architect version 0.5.4, Freedesktop.org SDK 22.08 (Flatpak runtime), x86_64
2023.07.06 13:08:57.861 [I] Loading fonts
2023.07.06 13:08:58.069 [W] QFont::setPixelSize: Pixel size <= 0 (0)
2023.07.06 13:08:58.074 [W] QFont::setPixelSize: Pixel size <= 0 (0)
2023.07.06 13:08:58.075 [W] QFont::setPixelSize: Pixel size <= 0 (0)
2023.07.06 13:08:58.078 [W] QFont::setPixelSize: Pixel size <= 0 (0)
2023.07.06 13:08:58.078 [W] QFont::setPixelSize: Pixel size <= 0 (0)
2023.07.06 13:08:58.110 [W] QFont::setPixelSize: Pixel size <= 0 (0)
2023.07.06 13:08:58.183 [I] Starting the application
2023.07.06 13:08:58.183 [I] Setup translation for en
2023.07.06 13:08:58.185 [I] Setup design system theme
2023.07.06 13:08:58.185 [I] Setup design system scale factor
2023.07.06 13:08:58.185 [I] Setup design system density
2023.07.06 13:08:58.234 [I] Show application window
2023.07.06 13:08:58.323 [I] Make startup checks
2023.07.06 13:08:58.324 [I] Starting cloud service connection
2023.07.06 13:08:58.324 [I] Configure autosaving
2023.07.06 13:08:58.332 [I] Show projects screen
2023.07.06 13:08:58.332 [D] Show content: Ui::ProjectsToolBar, Ui::ProjectsNavigator, Ui::ProjectsView
2023.07.06 13:08:58.349 [I] Closing current project
2023.07.06 13:08:58.350 [W] Current project is not valid. Skip closing.
2023.07.06 13:08:58.498 [I] Activate plugin "" (default "application/x-starc/editor/project/information")
2023.07.06 13:08:58.499 [D] Activate plugin view
2023.07.06 13:08:58.742 [D] Activate plugin view options
2023.07.06 13:08:58.742 [D] Activate plugin manager
2023.07.06 13:08:58.742 [I] Plugin activated
2023.07.06 13:08:58.753 [D] Failed to write minidump, dump path: ~/.var/app/dev.storyapps.starc/data/Story Apps/Story Architect/crashreports/aa427533-c8be-421f-06bf87a4-e75c3130.dmp
/app/bin/starc-run: line 2: 3 Segmentation fault (core dumped) /app/bin/starc/starc $@
After it crashes and I click on the .starc file again, the app opens but displays this dialog:
Even though the project is not open and no other Starc instances are running (I checked running processes in the System Monitor).
Is this a different issue — should I file a new report?
from starc.
You may have to delete the lock file that's created by Starc:
Make sure you kill any old instances of Starc as well:
$ flatpak kill dev.storyapps.starc
And make sure you have granted filesystem access to the required directory with Flatseal, or run the following:
$ flatpak override --user --filesystem=home dev.storyapps.starc
from starc.
I just figured out what the issue is: spaces in the file name.
The moment I renamed Test Story.starc
to Test_Story.starc
, the file opened perfectly.
The lock file created for Test Story.starc
is named .~lock.Test
and not .~lock.Test Story.starc
.
Note: I tried deleting the lock as you suggested, still crashed.
from starc.
Related Issues (20)
- [Feature] [Breakdown] Add Scene Title to exported spreadsheet
- [Feature] [Breakdown] Add option to export by scenes
- [Feature] [Breakdown] Move element category separator cells before the elements, in exported spreadsheet
- [Bug] Text editor zoomed out too much HOT 1
- [Bug] Scene colours missing in editor scrollbar in version 0.6.0 HOT 4
- The saved files size only grow HOT 2
- Startup: program fails to launch under Wayland with "undefined symbol: wl_proxy_marshal_flags" error (appimage) HOT 1
- File Import: Fountain - Title Page info not being imported HOT 2
- [Bug] Export excluding sequence headers and footers messes up page breaks HOT 2
- [Bug] Automatic page breaks are not recalculated on changes in previous script blocks' lengths HOT 2
- [Feature request] Also support recognising/CAPITALISING names of characters when they are written from the edge of the page HOT 2
- Hangs after pressing enter during chosing the transition HOT 3
- Generated pdf only have numbers of dialog on the first page HOT 2
- GDPR heads-up: Cannot change my email address HOT 2
- Mindmap: Circular connections, groups inside/overlapping groups HOT 2
- Remove Period From Scene Number HOT 3
- Signed Downloads HOT 4
- Debug assertion failed when pasting text
- Spell Check HOT 2
- Huge font size [linux] HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starc.