linutil icon indicating copy to clipboard operation
linutil copied to clipboard

Enable RPMFusion repos as well on rpmfusion script

Open kleidis opened this issue 1 year ago • 21 comments

Type of Change

  • [x] Bug fix ?

Description

Is there any reason for the rpm fusion setup not enabling the repos?

Testing

I was working on the Nvidia-driver script (on a non-standard fedora install) and noticed that it was failing cuz rpm-fussion never got enabled globally and the rpm-fusion-nvidia repo only exists on fedora DE spins

Checklist

  • [ ] My code adheres to the coding and style guidelines of the project.
  • [x] I have performed a self-review of my own code.
  • [ ] I have commented my code, particularly in hard-to-understand areas.
  • [ ] I have made corresponding changes to the documentation.
  • [ ] My changes generate no errors/warnings/merge conflicts.

kleidis avatar Sep 22 '24 12:09 kleidis

Chris doesn't like interactive scripts. If you're going to be making the RPM fusion script interactive then why break the synergy with every other script; you would have to refactor this PR to make every script interactive instead of just 1.

Ah ok good to know for future

ghost avatar Sep 22 '24 13:09 ghost

Chris doesn't like interactive scripts. If you're going to be making the RPM fusion script interactive then why break the synergy with every other script; you would have to refactor this PR to make every script interactive instead of just 1.

The flathub script still has the prompt btw i might remove it

ghost avatar Sep 22 '24 13:09 ghost

Chris doesn't like interactive scripts. If you're going to be making the RPM fusion script interactive then why break the synergy with every other script; you would have to refactor this PR to make every script interactive instead of just 1.

The flathub script still has the prompt btw i might remove it

scripts with multiple things being installed at once need an interactive prompt while others do not, the RPM fusion script is a prime example here, it does 1 thing, why make it interactive if its only doing 1 thing?

ghost avatar Sep 22 '24 13:09 ghost

I don't think this is a necessary change !!

jeevithakannan2 avatar Sep 22 '24 13:09 jeevithakannan2

Chris doesn't like interactive scripts.

@kleidis, #593 might resolve this from a user information standpoint.

adamperkowski avatar Sep 22 '24 13:09 adamperkowski

I don't think this is a necessary change !!

You mean ?

Chris doesn't like interactive scripts.

@kleidis, #593 might resolve this from a user information standpoint.

That's a really nice change

ghost avatar Sep 22 '24 13:09 ghost

That's a really nice change

Thank you.

adamperkowski avatar Sep 22 '24 13:09 adamperkowski

Since we are here. My original pr idea was to add the option for NVIDIA open kernel modules to the driver script

Is that a good idea

ghost avatar Sep 22 '24 13:09 ghost

Since we are here. My original pr idea was to add the option for NVIDIA open kernel modules to the driver script

Is that a good idea

make it a new pr

ghost avatar Sep 22 '24 13:09 ghost

Create a separate PR by modifying the nvidia-fedora script. You can make that interactive to prompt the user whether to install open kernel modules and proprietary one.

jeevithakannan2 avatar Sep 22 '24 13:09 jeevithakannan2

Since we are here. My original pr idea was to add the option for NVIDIA open kernel modules to the driver script Is that a good idea

make it a new pr

Ik, just wanted confirmation if it's a good idea to try because the project changes so fast

ghost avatar Sep 22 '24 13:09 ghost

@kleidis just make it a separate script instead of combining allat into 1

ghost avatar Sep 22 '24 13:09 ghost

Ik, just wanted confirmation if it's a good idea to try because the project changes so fast

Yep, good to go.

adamperkowski avatar Sep 22 '24 13:09 adamperkowski

@kleidis just make it a separate script instead of combining allat into 1

But since you can select multiple scripts. What happens if both open and proprietary scripts are selected?

Do we have any way to disable multi-select for a certain script?

ghost avatar Sep 22 '24 13:09 ghost

@kleidis just make it a separate script instead of combining allat into 1

But since you can select multiple scripts. What happens if both open and proprietary scripts are selected?

Do we have any way to disable multi-select for a certain script?

why would someone select both open and prop drivers to install?

ghost avatar Sep 22 '24 13:09 ghost

But since you can select multiple scripts. What happens if both open and proprietary scripts are selected? Do we have any way to disable multi-select for a certain script?

why would someone select both open and prop drivers to install?

Never underestimate what users can break, xd

I assume this also works for nvidia-open anyway so we should be good

  if modinfo -F version nvidia >/dev/null 2>&1; then

ghost avatar Sep 22 '24 13:09 ghost

But since you can select multiple scripts. What happens if both open and proprietary scripts are selected?

It tries to install and conflicts.

Do we have any way to disable multi-select for a certain script?

We have data.preconditions but it doesn't solve the issue of multi-selecting conflicting scripts. I think merging this into one might be a better idea after all. @nnyyxxxx?

adamperkowski avatar Sep 22 '24 13:09 adamperkowski

But since you can select multiple scripts. What happens if both open and proprietary scripts are selected?

It tries to install and conflicts.

Do we have any way to disable multi-select for a certain script?

We have data.preconditions but it doesn't solve the issue of multi-selecting conflicting scripts. I think merging this into one might be a better idea after all. @nnyyxxxx?

yeh i'm aware of data.preconditions but as you said won't work

I think this should suffice for nvidia-open

  if modinfo -F version nvidia >/dev/null 2>&1; then

ghost avatar Sep 22 '24 13:09 ghost

We don't want two separate scripts for nvidia open and proprietary. Do both of them in one script. Prompt the user of open or proprietary

jeevithakannan2 avatar Sep 22 '24 13:09 jeevithakannan2

We don't want two separate scripts for nvidia open and proprietary. Do both of them in one script. Prompt the user of open or proprietary

Since it's 2-1 ill go with that approach than Thanks for feedback all

ghost avatar Sep 22 '24 13:09 ghost

No problem.

adamperkowski avatar Sep 22 '24 13:09 adamperkowski