Launcher icon indicating copy to clipboard operation
Launcher copied to clipboard

Add F-Droid for installing apps

Open Porrumentzio opened this issue 5 years ago • 11 comments

  1. Go to Settings>Apps>Install apps
  2. It will propose Browser and Google Play to install apps

It would be great if F-Droid would also be an option.


Also in Settings>Meta, there appears the Google Play logo, instead of a general App Installing Repo. If F-Droid installed, it offers both Google Play and F-Droid.

So changing that icon would be greatful, although I don't have a concrete proposal.

Porrumentzio avatar Oct 14 '20 13:10 Porrumentzio

That's two valid points there:

  1. Settings>Apps>Install apps: True, I did not notice that until you mentioned... I just found the reason:

See line 60 of SettingsFragmentActions.kt:

Uri.parse("https://play.google.com/store/apps/")) - the PlayStore url is opened using an Intent rather than a more general Uri like market:// which would include other stores.

  1. Settings>Meta: If anyone can come up with a font-awesome icon to replace the PlayStore icon, just comment below or create a pull request with the new icon inside.

I can't think of any trivial icon to replace the current one with though...

finnmglas avatar Oct 14 '20 20:10 finnmglas

Great! About the icon, maybe a "download icon" would be enough, a downwards arrow.

What do you think? Could you add the "help needed" label?

Porrumentzio avatar Oct 14 '20 20:10 Porrumentzio

I found a store icon that seems appropriate - we should use that... I liked the download icon idea but as the user already downloaded the app when he is in the in-app settings (obviously), the store icon is a reasonable choice :+1:

finnmglas avatar Oct 18 '20 20:10 finnmglas

The meta settings ended up looking like this:

Screenshot_20201018-234149_Launcher.jpg

finnmglas avatar Oct 18 '20 21:10 finnmglas

I created a thread on StackOverflow about this topic. The official F-Droid application does not seem to listen to Intent.CATEGORY_APP_MARKET (not declared in its manifest), which makes fixing this issue even harder.

I received the suggestion that I could fix this by contributing to the F-Droid application... that kinda lays beyond the scope of Launcher though (but I actually consider doing it...)

finnmglas avatar Oct 19 '20 11:10 finnmglas

Hi! It's a good icon, although I wouldn't understand it clearly because for me sofware is not for shopping, but yes for many people.

About the F-Droid intent, did you think about posting that problem into https://forum.f-droid.org?

Porrumentzio avatar Oct 19 '20 11:10 Porrumentzio

When DAVx5 needs to subscribe you to a WebCAL it asks you to install ICSx5, and it manages to do this via F-Droid. I'm not sure if this is helpful, but the line of code is here https://gitlab.com/bitfireAT/davx5-ose/-/blob/dev-3.x-ose/app/src/main/java/at/bitfire/davdroid/ui/account/WebcalFragment.kt#L133 . This looks like a market intent that you're saying doens't work, but I'm pretty sure it popped up F-Droid on my phone. However, I do have the F-Droid privileged extension installed, which may have something to do with it.

rptb1 avatar Jan 07 '21 01:01 rptb1

Another possibly relevant thing. If I enter market://details?id=at.bitfire.icsdroid into the Firefox address bar and choose "open in app" I'm offered all possible app stores, so there's clearly a sort of "throw this out there" operation for such a URL. This is F-Droid 1.10 on /e/OS (Android 10).

rptb1 avatar Jan 07 '21 16:01 rptb1

@rptb1 Yeah, that also works with Launcher - the onClick of the fa-store icon uses a market:// intent that is received by F-droid, the PlayStore and the Samsung Galaxy Store - the only problem here was that I didn't manage to get a market uri to the market homepage - only to search or details pages ...

finnmglas avatar Jan 07 '21 18:01 finnmglas

Isn't it possible to open the app directly by knowing that it is installed as "org.fdroid.fdroid" ? Otherwise couldn't it be possible to pass it as a spinner in the settings::launcher menu : default app repo ? By doing so the user can choose what the button is to do by default. Furthermore that would make it easy to implement it on the app.

toby-bro avatar Aug 12 '22 20:08 toby-bro

I think this issue is solved already, maybe by an update on f-droid. But in my phone i'm asked to select an app.

Screenshot_20220814-162452_1

Kj-is-escape avatar Aug 14 '22 19:08 Kj-is-escape