[Touch-packages] [Bug 1872551] Re: software-properties-qt: nvidia driver version switch fails

2020-04-14 Thread Hans P . Möller
could you test adding this to /lib/python3/dist-
packages/softwareproperties/qt/SoftwarePropertiesQt.py
SoftwarePropertiesQt.py ? For me testing with nvidia is not easy

--- /lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py
2020-04-14 09:16:19.370592334 -0400
+++ SoftwarePropertiesQt.py 2020-04-14 09:02:21.894527421 -0400
@@ -78,6 +78,17 @@
   QWidget.__init__(self)
   uic.loadUi("%s/designer/main.ui" % datadir, self)
 
+def get_dependencies(apt_cache, package_name, pattern=None):
+""" Get the package dependencies, which can be filtered out by a pattern 
"""
+dependencies = []
+for or_group in apt_cache[package_name].candidate.dependencies:
+for dep in or_group:
+if dep.rawtype in ["Depends", "PreDepends"]:
+dependencies.append(dep.name)
+if pattern:
+dependencies = [ x for x in dependencies if x.find(pattern) != -1 ]
+return dependencies
+
 class SoftwarePropertiesQt(SoftwareProperties):
   def __init__(self, datadir=None, options=None, parent=None, file=None, 
attachWinID=None):
 """ Provide a Qt-based graphical user interface to configure

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to software-properties in
Ubuntu.
https://bugs.launchpad.net/bugs/1872551

Title:
  software-properties-qt: nvidia driver version switch fails

Status in software-properties package in Ubuntu:
  Confirmed

Bug description:
  Switching the Nvidia driver version with kubuntu-driver-manager
  doesn't work anymore: Selecting a different driver version (nvidia-
  driver-440 instead of the currently selected / installed -390) and
  clicking "Apply Changes" has no effect and produces this error message
  in the terminal:

Traceback (most recent call last):
File 
"/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", 
line 895, in on_driver_changes_apply
  for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'):
  NameError: name 'get_dependencies' is not defined

  Steps to reproduce:
  - sudo kubuntu-driver-manager
  - Under "Additional Drivers", select a different Nvidia driver version
(in my case: 440 instead of 390)
  - Click "Apply Changes"
  - (observe error message in the terminal)

  Expected result:
  - No error message
  - Nvidia driver version 440 gets installed

  Actual result:
  - Error message
  - No change in the installed Nvidia driver version

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: kubuntu-driver-manager (not installed)
  ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
  Uname: Linux 5.4.0-21-generic x86_64
  ApportVersion: 2.20.11-0ubuntu26
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: KDE
  Date: Mon Apr 13 23:41:56 2020
  InstallationDate: Installed on 2016-11-26 (1234 days ago)
  InstallationMedia: Kubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.1)
  SourcePackage: kubuntu-driver-manager
  UpgradeStatus: Upgraded to focal on 2020-03-06 (38 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1872551/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1872551] Re: kubuntu-driver-manager: nvidia driver version switch fails

2020-04-13 Thread Hans P . Möller
Could you please test with software-properties-gtk? (you might need to install 
the package)
Then we could know if it is a software-properties-qt or a software-properties-* 
problem.
Thanks!

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to software-properties in
Ubuntu.
https://bugs.launchpad.net/bugs/1872551

Title:
  kubuntu-driver-manager: nvidia driver version switch fails

Status in software-properties package in Ubuntu:
  New

Bug description:
  Switching the Nvidia driver version with kubuntu-driver-manager
  doesn't work anymore: Selecting a different driver version (nvidia-
  driver-440 instead of the currently selected / installed -390) and
  clicking "Apply Changes" has no effect and produces this error message
  in the terminal:

Traceback (most recent call last):
File 
"/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", 
line 895, in on_driver_changes_apply
  for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'):
  NameError: name 'get_dependencies' is not defined

  Steps to reproduce:
  - sudo kubuntu-driver-manager
  - Under "Additional Drivers", select a different Nvidia driver version
(in my case: 440 instead of 390)
  - Click "Apply Changes"
  - (observe error message in the terminal)

  Expected result:
  - No error message
  - Nvidia driver version 440 gets installed

  Actual result:
  - Error message
  - No change in the installed Nvidia driver version

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: kubuntu-driver-manager (not installed)
  ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
  Uname: Linux 5.4.0-21-generic x86_64
  ApportVersion: 2.20.11-0ubuntu26
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: KDE
  Date: Mon Apr 13 23:41:56 2020
  InstallationDate: Installed on 2016-11-26 (1234 days ago)
  InstallationMedia: Kubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.1)
  SourcePackage: kubuntu-driver-manager
  UpgradeStatus: Upgraded to focal on 2020-03-06 (38 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1872551/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1795278] Re: software-properties-{qt, kde} attempts to use KUrl but it doesn't exist

2020-03-04 Thread Hans P . Möller
this should be the diff to be tested:

diff --git a/softwareproperties/qt/SoftwarePropertiesQt.py 
b/softwareproperties/qt/SoftwarePropertiesQt.py
index 8172e25..b210323 100644
--- a/softwareproperties/qt/SoftwarePropertiesQt.py
+++ b/softwareproperties/qt/SoftwarePropertiesQt.py
@@ -709,8 +709,7 @@ class SoftwarePropertiesQt(SoftwareProperties):
 home = QDir.homePath()
 if "SUDO_USER" in os.environ:
 home = os.path.expanduser("~%s" % os.environ["SUDO_USER"])
-url = KUrl.fromPath(home)
-filename = KFileDialog.getOpenFileName(url, 'application/pgp-keys', 
self.userinterface, _("Import key"))
+filename = QFileDialog.getOpenFileName(self.userinterface, _("Import 
key"), home, 'application/pgp-keys')
 if filename:
   if not self.add_key(filename):
 title = _("Error importing selected file")

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to software-properties in
Ubuntu.
https://bugs.launchpad.net/bugs/1795278

Title:
  software-properties-{qt,kde} attempts to use KUrl but it doesn't exist

Status in software-properties package in Ubuntu:
  Triaged

Bug description:
  Release: Kubuntu 18.04
  Version: 0.96.24.32.1

  When clicking the "Import Key" button in the "Authentication" section
  of the panel it throws this error:

  Traceback (most recent call last):
File 
"/usr/lib/python3/dist-packages/softwareproperties/kde/SoftwarePropertiesKDE.py",
 line 667, in add_key_clicked
  url = KUrl.fromPath(home)
  NameError: name 'KUrl' is not defined

  While this doesn't crash the program it causes nothing to happen when
  clicking the button. Running the program in a terminal reveals the
  error being printed to stderr.

  After debugging it appears KUrl doesn't exist anywhere and I'm not
  sure if's a python module that has changed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1795278/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1823306] Re: lxqt-sudo added to Exec line of software-properties-qt.desktop breaks use in KDE Plasma Discover

2019-04-06 Thread Hans P . Möller
fix is in https://code.launchpad.net/~hmollercl/+git/software-properties
I don't know how to propose merge from that, but tsimonq2 will help merging it.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to software-properties in
Ubuntu.
https://bugs.launchpad.net/bugs/1823306

Title:
  lxqt-sudo added to Exec line of software-properties-qt.desktop breaks
  use in KDE Plasma Discover

Status in software-properties package in Ubuntu:
  Confirmed
Status in software-properties source package in Disco:
  Confirmed

Bug description:
  In the upload: https://launchpad.net/ubuntu/+source/software-
  properties/0.97.8

  there is a change in the software-properties-qt.desktop files which is
  (a) not documented in the changelog, and (b) not communicated to other
  flavour users of this application (Kubuntu in this case).

  -Exec=software-properties-qt
  +Exec=lxqt-sudo software-properties-qt

  This results in Plasma Discover not being able to launch software-
  properties-qt, as it uses privilege elevation via kdesu of whatever is
  in the Exec line, and lxqt-sudo added there makes this fail.

  Context to this is:

  For Cosmic release Lubuntu developers requested agreement from Kubuntu
  to the porting of the software-properties-kde package to pure Qt, so
  that it could be used in both Kubuntu and Lubuntu (lxqt) without
  pulling a lot of KDE dependencies into Lubuntu's lqxt images/installs.
  This was on the condition that despite being renamed to -qt, it
  remained completely as a tool for joint usage between the two
  flavours.

  The original sofware-properties-kde was meant to be launched by
  applications and was set not to show in DE menus by default.

  It seems that Lubuntu wishes to now have it useable directly from a
  'start'/'search' menu, hence making it visible and adding the lxqt-
  sudo in the Exec line to facilitate launch with privilege escalation.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1823306/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1823306] Re: lxqt-sudo added to Exec line of software-properties-qt.desktop breaks use in KDE Plasma Discover

2019-04-05 Thread Hans P Möller
** Changed in: software-properties (Ubuntu Disco)
 Assignee: (unassigned) => Hans P Möller (hmollercl)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to software-properties in
Ubuntu.
https://bugs.launchpad.net/bugs/1823306

Title:
  lxqt-sudo added to Exec line of software-properties-qt.desktop breaks
  use in KDE Plasma Discover

Status in software-properties package in Ubuntu:
  Confirmed
Status in software-properties source package in Disco:
  Confirmed

Bug description:
  In the upload: https://launchpad.net/ubuntu/+source/software-
  properties/0.97.8

  there is a change in the software-properties-qt.desktop files which is
  (a) not documented in the changelog, and (b) not communicated to other
  flavour users of this application (Kubuntu in this case).

  -Exec=software-properties-qt
  +Exec=lxqt-sudo software-properties-qt

  This results in Plasma Discover not being able to launch software-
  properties-qt, as it uses privilege elevation via kdesu of whatever is
  in the Exec line, and lxqt-sudo added there makes this fail.

  Context to this is:

  For Cosmic release Lubuntu developers requested agreement from Kubuntu
  to the porting of the software-properties-kde package to pure Qt, so
  that it could be used in both Kubuntu and Lubuntu (lxqt) without
  pulling a lot of KDE dependencies into Lubuntu's lqxt images/installs.
  This was on the condition that despite being renamed to -qt, it
  remained completely as a tool for joint usage between the two
  flavours.

  The original sofware-properties-kde was meant to be launched by
  applications and was set not to show in DE menus by default.

  It seems that Lubuntu wishes to now have it useable directly from a
  'start'/'search' menu, hence making it visible and adding the lxqt-
  sudo in the Exec line to facilitate launch with privilege escalation.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1823306/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1801439] Re: Unable to add software sources via the software-properties-qt

2019-02-22 Thread Hans P Möller
I uploaded solution in 
https://bazaar.launchpad.net/~hmollercl/software-properties/software-properties/revision/1071
waiting for merge

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to software-properties in
Ubuntu.
https://bugs.launchpad.net/bugs/1801439

Title:
  Unable to add software sources via the software-properties-qt

Status in software-properties package in Ubuntu:
  Triaged

Bug description:
  Test
  1. Start Software-properties. E.g. sudo software-properties-qt
  2. Navigate to Other Software (Tab), Add -> Add, to add a PPA
  3. Insert the PPA string. E.g. "deb 
http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu cosmic main " (or even the 
example repo given in the dialog, which is not a PPA)
  4. Click Okay.

  The software sources list does not contain the new field. Executing in
  terminal results in the following error message.

  Traceback (most recent call last):
    File 
"/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", 
line 627, in on_add_clicked
  self.add_source_from_line(line)
    File 
"/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 
752, in add_source_from_line
  enable_source_code=enable_source_code)
    File 
"/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 
769, in add_source_from_shortcut
  worker = self.check_and_add_key_for_whitelisted_shortcut(shortcut)
    File 
"/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 
709, in check_and_add_key_for_whitelisted_shortcut
  self.options.keyserver)})
  AttributeError: type object 'OptionParsed' has no attribute 'keyserver'

  ProblemType: Bug
  DistroRelease: Ubuntu 18.10
  Package: software-properties-qt 0.96.27
  ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
  Uname: Linux 4.18.0-10-generic x86_64
  ApportVersion: 2.20.10-0ubuntu13
  Architecture: amd64
  CurrentDesktop: LXQt
  Date: Sat Nov  3 09:59:52 2018
  InstallationDate: Installed on 2018-10-19 (14 days ago)
  InstallationMedia: Lubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 
(20181017.2)
  PackageArchitecture: all
  SourcePackage: software-properties
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1801439/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1801439] Re: Unable to add software sources via the software-properties-qt

2018-12-26 Thread Hans P Möller
** Branch linked: lp:software-properties

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to software-properties in
Ubuntu.
https://bugs.launchpad.net/bugs/1801439

Title:
  Unable to add software sources via the software-properties-qt

Status in software-properties package in Ubuntu:
  Triaged

Bug description:
  Test
  1. Start Software-properties. E.g. sudo software-properties-qt
  2. Navigate to Other Software (Tab), Add -> Add, to add a PPA
  3. Insert the PPA string. E.g. "deb 
http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu cosmic main " (or even the 
example repo given in the dialog, which is not a PPA)
  4. Click Okay.

  The software sources list does not contain the new field. Executing in
  terminal results in the following error message.

  Traceback (most recent call last):
    File 
"/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", 
line 627, in on_add_clicked
  self.add_source_from_line(line)
    File 
"/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 
752, in add_source_from_line
  enable_source_code=enable_source_code)
    File 
"/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 
769, in add_source_from_shortcut
  worker = self.check_and_add_key_for_whitelisted_shortcut(shortcut)
    File 
"/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 
709, in check_and_add_key_for_whitelisted_shortcut
  self.options.keyserver)})
  AttributeError: type object 'OptionParsed' has no attribute 'keyserver'

  ProblemType: Bug
  DistroRelease: Ubuntu 18.10
  Package: software-properties-qt 0.96.27
  ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
  Uname: Linux 4.18.0-10-generic x86_64
  ApportVersion: 2.20.10-0ubuntu13
  Architecture: amd64
  CurrentDesktop: LXQt
  Date: Sat Nov  3 09:59:52 2018
  InstallationDate: Installed on 2018-10-19 (14 days ago)
  InstallationMedia: Lubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 
(20181017.2)
  PackageArchitecture: all
  SourcePackage: software-properties
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1801439/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp