-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Allow to open directories directly #747
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.
When I launch Music from terminal using ./src/io.elementary.music /home/lenemter/Music/
, it only opens 1 file.
Got it, will check it out again ASAP. Thanks for taking the time to review my code! |
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.
I left some inline comments. Take a look at them please.
Also check out https://docs.elementary.io/develop/writing-apps/code-style to match all the other code here.
Ok, resolved. How do I lint the code? Ran what's on the CI, but it didn't work (vala-lint is not installed in my machine). |
vala-lint unfortunately doesn't automatically lint the code, it only shows lint errors. If you want you can install it from https://github.com/vala-lang/vala-lint |
Actual it does an I've done it |
Oh I didn't know there is a |
|
Fixed the style of code. For some reason, it works from the terminal but not from the file explorer: https://youtu.be/pNTw4lanGbo |
That's happening because in this case it launches flatpak version of Music. You need to delete it through AppCenter or through Terminal by executing |
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.
Code looks good. I'll try to package music as flatpak locally and see if it works.
The only thing that doesn't work for me is that by default, Music doesn't open folders, even though I set |
Well, it doesn't work :( |
Allowing access to Home folder works. But is there a better solution? |
Isn't it expected that the app needs access to the filesystem? It should be on by default though. |
This works when run natively but not when in a Flatpak (but master doesn't anyway). I find Files does give Music as one of the options in the "Open With" submenu. I am working on the Flatpak version atm. You can debug the program while running in a Flatpak by launching with |
@aitor-gomila I've pushed a PR to your fork with a small fix for Flatpak compatibility. With this I can open files and folders from Files with Music both by using the context menu and by drag-drop. Launching from terminal with |
Some fixes for Flatpak compatibility
Thanks. How did Music work without the changes on your PR? |
Note that giving access to the home directory with |
It only worked if running natively - not if it was running as a Flatpak. For Files context menu to work without my fix you would have to install it natively as well. |
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.
A couple of minor codestyle things. Then it will be OK with me.
Done. Thanks for taking the time to review my PR |
One extra thing - the appdata for the next release should be updated with the new functionality. |
Appdata? |
misclick, sorry |
Sorry - its called metainfo in this repository I see. Its the file |
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.
Lets go with this! The metainfo can be fixed later. As there is no change in UI I don't think a review from the UX team is essential
inode/directory
MIME type to .desktop file.These will be worked on a separate PR:
[ ] Addaudio/x-mpegurl
MIME type to .desktop file.[ ] Support opening playlist files from code.Fixes #709