Skip to content
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

Add Favourites to the list of startup windows #16297

Closed
wants to merge 1 commit into from

Conversation

dagwieers
Copy link
Contributor

@dagwieers dagwieers commented Jun 24, 2019

Description

This adds Favourites to the list of possible start-up windows.

Motivation and Context

Having the Favourites dialog in the possible startup window targets is
very convenient as this is where all the important stuff (from different
add-ons live together).

Also nice would be if we could go into the add-on view as well.

Even better would be to add add-on's or register add-on paths to this
list so we could offer a more complete experience.

How Has This Been Tested?

This has not been tested.

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • Clean up (non-breaking change which removes non-working, unmaintained functionality)
  • Improvement (non-breaking change which improves existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that will cause existing functionality to change)
  • Cosmetic change (non-breaking change that doesn't touch code)
  • None of the above (please explain below)

Checklist:

  • My code follows the Code Guidelines of this project
  • My change requires a change to the documentation, either Doxygen or wiki
  • I have updated the documentation accordingly
  • I have read the Contributing document
  • I have added tests to cover my change
  • All new and existing tests passed

@dagwieers dagwieers changed the title Extend the list of possible startup windows Add Add-ons and Favorites to the list of possible startup windows Jun 24, 2019
@dagwieers dagwieers changed the title Add Add-ons and Favorites to the list of possible startup windows Add Add-ons and Favorites to the list of startup windows Jun 24, 2019
@notspiff
Copy link
Contributor

i don't think WINDOW_ADDON_BROWSER is what you think - it's the install / configure / show what is installed window. why anyone would want to start there escapes me.

@Hitcher
Copy link
Contributor

Hitcher commented Jun 27, 2019

Also favourites is a dialog not a window.

Having the Favourites dialog in the possible startup window targets is
very convenient as this is where all the important stuff (from different
add-ons live together).

Also nice would be if we could go into the add-on view as well.

Even better would be to add add-on's or register add-on paths to this
list so we could offer a more complete experience.
@dagwieers
Copy link
Contributor Author

@notspiff I removed it.

@HitcherUK That's deliberate. It's the only thing we can do at the moment.

Feel free to contribute a better implementation if you know how.

@dagwieers dagwieers changed the title Add Add-ons and Favorites to the list of startup windows Add Favourites to the list of startup windows Jun 27, 2019
@Hitcher
Copy link
Contributor

Hitcher commented Jun 27, 2019

But that causes 2 problems.

  1. The start window is normally blank so the dialog will look odd
  2. When you close the dialog you’ll be stuck on the start window with no way to leave it

@dagwieers
Copy link
Contributor Author

@HitcherUK Feel free to propose a better implementation, as I do not see it.

The Addon Launcher and Favourites are the 2 most important startup windows if you use Kodi for online streaming (rather than local media files).

@DaVukovic
Copy link
Member

I just runtime tested it under Ubuntu 18.04 and using Estuary.

grafik

This is what shows up after selecting "Favourites" as the startup window. As you can see, there's no Kodi home screen visible behind. By cancelling this dialog you will end up like that:

grafik

The only way to get back to the Kodi homescreen for me was to send "ActivateWindow(Home)". Otherwise you won't reach the Kodi home screen at all which currently breaks existing functionality.

As I somehow understand the reason for this PR, it can't be added in this way unfortunately.

@DaVukovic
Copy link
Member

As I saw those requests from time to time already I solved them by suggesting to use an autoexec.py and fill it with:

import xbmc

xbmc.executebuiltin('ActivateWindow(Favourites)')

That will be loaded after Kodi has been started with at least any kind of window instead of using a Dialog as a startup window where no other window will be loaded before.

By using that autoexec.py you will end up like that:

grafik

no matter what kind of startup window you have selected (instead of Favourites ;) ).

@dagwieers
Copy link
Contributor Author

@DaVukovic That is a workaround and yes, that is what we are now telling people to do, but you can't really expect people to have to log on to a device and edit files on it. This functionality really should be part of the settings.

@DaVukovic
Copy link
Member

I'm not saying that I'm against it. I'm just saying that it can't be implemented in the way you PRd it ;). I'm not a dev so I don't have any other suggestion.

You should at least test your PRs yourself. Then you might have seen it that it's a no-go currently. This PR here, as it is in its current state, can't be merged IMO. Feel free to add/change something else to make this work.

What I could imagine (what does not mean that it will be accepted by the core devs) is an additional setting like "Startup dialog" which will be loaded after a window has been loaded. But I leave it up to you and what you have in mind.

@dagwieers
Copy link
Contributor Author

@DaVukovic There are various reasons why I couldn't test this myself, one is the need to compile for ARM. That said, the fact people have proposed this before and it still isn't here should ring a bell.

Regardless of the fact that jumping within the Home-screen is skin-dependent, or whatever other reason this wasn't already added. I have seen add-ons that have an option to add itself to autoexec, which IMO is a no-go.

@Hitcher
Copy link
Contributor

Hitcher commented Jun 27, 2019

If you don’t have a solution I suggest closing this PR and make a request on the forum instead.

@jjd-uk
Copy link
Member

jjd-uk commented Jun 27, 2019

I guess the solution would be to resurrect the proposal to make Favourites a window, however some had objections before see #8982

@dagwieers dagwieers closed this Jun 27, 2019
@DaVukovic
Copy link
Member

I have seen add-ons that have an option to add itself to autoexec, which IMO is a no-go

True. I agree. Hence I would highly doubt that ANY of the add-ons shipped by the Kodi repo will do that. And if those add-ons do come from whatever 3rd party repo you might have added, then it's also up to you as you need to trust the repos and add-ons which are shipped by them. Nothing we can do about that and we don't even care

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants