-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Create io.github.xchan14.larawan.json #505
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey thanks for your submission! I haven't done a super thorough review yet, but on first glance there's a few things that need fixing before we can publish:
- Your metainfo file contains placeholder text instead of a description
- Screenshots show your entire desktop, they should only show your app
- You app's description in metainfo and in your desktop file should not mention elementary or elementary OS
- Your metainfo doesn't include any developer information such as your name and where folks can report issues or get help
- I would highly encourage you not to add home folder permissions to your flatpak manifest and instead use the FileChooser portal to access files. Your app will be badged with a warning that it accesses the home folder if you add permissions in this way
- There is a 7.3 runtime available, I would recommend updating to that :)
See https://docs.elementary.io/develop/appcenter/publishing-requirements for some more specific guidance
Also just a little tip, I can't remember if it's the 7.2 or 7.3 runtime, but Granite will now automatically load a gresourced stylesheet named "Application.css" (capitalization matters) when you run Granite.init, so there's no need to do that manually as in https://github.com/xchan14/larawan/blob/38cdb432c349c6309fff104b8074b91a219316ea/src/Application.vala#L31
Publishing requirements updates
Hey @xchan14 thanks for the quick turnaround! Everything is looking really good except it looks like there is no release tag in your metainfo file. Apologies for not catching that in the initial review. See the docs here for more information about creating a release tag: https://docs.elementary.io/develop/writing-apps/our-first-app/metadata#releases Otherwise this seems okay to publish once we have that release tag! Congrats 🎉 A couple things I noticed here that aren't requirements but just advice: You should init Granite and apply styles in startup, not in activate. Activate runs every time your app is launched from the dock or applications menu, including when folks click on the icon to switch windows. You really only want to do this once during your app's lifecycle, which is when the startup function runs. There are built in icons that you can use with your app instead of using an emoji. There's an app in AppCenter called IconBrowser that you can use to view all the available system icons and get a code snippet. In this case I would recommend using |
Added release tag
Hi @danirabbit, done adding the release tag. As well as your advice. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, nice work!
Just a couple things for your next release:
There's actually a method startup
in Gtk.Application that you can override just like you override activate
. So you want to do this instead of adding to your mainloop:
public override void startup () {
base.startup ();
Granite.init ();
}
And so you don't have to reach in and cast children inside of a button like ((Image) settings_button.child).pixel_size = 32;
you can do settings_button.add_css_class (Granite.STYLE_CLASS_LARGE_ICONS)
and that should be the same effect
There's also a portal you can use to request autostart for your app. It looks like we don't have it properly documented yet, but there's an issue report with a relevant code snippet and some other links: elementary/docs#159
Review Checklist
AppData
Flatpak