This error pops up when trying to use software-properties-qt under Kubuntu: Cannot execute command 'lxqt-sudo software-properties-qt'
This should be fixed before the release.
This error pops up when trying to use software-properties-qt under Kubuntu: Cannot execute command 'lxqt-sudo software-properties-qt'
This should be fixed before the release.
Status | Assigned | Task | ||
---|---|---|---|---|
Resolved | tsimonq2 | T1 Lubuntu 19.04 | ||
Resolved | hmollercl | T15 Fix software-properties-qt under other DEs |
does Kubuntu want to have software-properties-qt?
currently the .desktop should only be build for lxqt.
https://git.launchpad.net/software-properties/tree/data/software-properties-qt.desktop.in
line 7:
OnlyShowIn=LXQt;
before was:
NoDisplay=true
requirements of root permision was before my interbention as can be seen in line 105 in https://git.launchpad.net/software-properties/tree/software-properties-qt and commit https://git.launchpad.net/software-properties/commit/?id=20ab26e195747cec8256f5cb3b2b1cf827b69ffe
@@ -100,7 +104,7 @@ if __name__ == '__main__': # Check for root permissions if os.geteuid() != 0: - text = "Please run this software with administrative rights. To do so, run this program with pkexec." + text = "Please run this software with administrative rights. To do so, run this program with lxqt-sudo or pkexec." title = "Need administrative powers" msgbox = QMessageBox.critical(None, title, text) sys.exit(1)
maybe run it with sudo instead of lxqt-sudo ???
when running software-properties-qt w/o root privileges (bypassing the control)
Traceback (most recent call last):
File "/home/hmoller/discoMod/swProp/software-properties/softwareproperties/qt/SoftwarePropertiesQt.py", line 433, in set_update_automation_level SoftwareProperties.set_update_automation_level(self, softwareproperties.UPDATE_INST_SEC) File "/home/hmoller/discoMod/swProp/software-properties/softwareproperties/SoftwareProperties.py", line 197, in set_update_automation_level self.set_modified_config() File "/home/hmoller/discoMod/swProp/software-properties/softwareproperties/qt/SoftwarePropertiesQt.py", line 585, in set_modified_config SoftwareProperties.set_modified_config(self) File "/home/hmoller/discoMod/swProp/software-properties/softwareproperties/SoftwareProperties.py", line 502, in set_modified_config self.write_config() File "/home/hmoller/discoMod/swProp/software-properties/softwareproperties/SoftwareProperties.py", line 646, in write_config f = open(periodic, "w")
PermissionError: [Errno 13] Permission denied: '//etc/apt/apt.conf.d/10periodic'
I have the solution in the code here https://code.launchpad.net/~hmollercl/+git/software-properties but I don't know how to propose merge. Previously with bzr it was as simply as pressing a "propose merge" button now this button doesn't exist.
It landed in the release pocket 45 mins ago. Please, someone upgrade to it and test it ASAP.
I tested that it fixed Discover earlier from the proposed pocket.
Other changes, I did not test.
Thanks, @rikmills! As long as it still works under Lubuntu dailies, I think we're golden.
debian/software-properties-qt.install
has
debian/tmp/usr/share/software-properties/designer debian/tmp/usr/lib/python3*/*-packages/softwareproperties/qt/*.py debian/tmp/usr/bin/software-properties-qt debian/tmp/usr/share/applications/software-properties-qt.desktop
so I would imagine needs adding to that?
But /usr/share/applications is exactly where we want it, so we shouldn't have an issue.
So I mean, like:
diff -Nru software-properties-0.97.10/debian/software-properties-qt.install software-properties-0.97.11/debian/software-properties-qt.install --- software-properties-0.97.10/debian/software-properties-qt.install 2019-04-10 21:38:53.000000000 +0100 +++ software-properties-0.97.11/debian/software-properties-qt.install 2019-04-11 17:16:46.000000000 +0100 @@ -2,3 +2,4 @@ debian/tmp/usr/lib/python3*/*-packages/softwareproperties/qt/*.py debian/tmp/usr/bin/software-properties-qt debian/tmp/usr/share/applications/software-properties-qt.desktop +debian/tmp/usr/share/applications/software-properties-lxqt.desktop
I see a "Software Sources" menu entry and an "Additional Drivers" menu entry and there are three desktop files:
That last one is NoDisplay=true and indeed I don't see an entry for "Software Sources" anywhere in their menus. It seems the only option is to either dig through /usr/share/applications and run it that way or to get it from muon. I think that's right. Also they have a whole separate thing for "Additional Drivers" which does have its own menu entry. @rikmills does that sound right? You don't want to expose "Software Sources" in the menu?