Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Apt plugin added#20

Closed
harindu95 wants to merge 2 commits intoalbertlauncher:masterfrom
harindu95:master
Closed

Apt plugin added#20
harindu95 wants to merge 2 commits intoalbertlauncher:masterfrom
harindu95:master

Conversation

@harindu95
Copy link
Copy Markdown

No description provided.

Apt.py Outdated
@@ -0,0 +1,66 @@
"""locate adapter extension
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description is missing.

@ManuelSchneid3r ManuelSchneid3r requested a review from a team January 28, 2018 13:59
__author__ = "Harindu Dilshan"
__dependencies__ = ['apt','gksu','pkexec']

if which("apt") is None:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe using apt-get is better since apt is a userfriendly frontend that may break backward compatibility

__version__ = "1.0"
__trigger__ = "apt"
__author__ = "Harindu Dilshan"
__dependencies__ = ['apt','gksu','pkexec']
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why dont you just prepend the command with sudo? sudo is way mor portable, in fact gksu is not available most of the times

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah you do in line 26

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pkexec is actually not needed


UpdateActions = [TermAction("Update database in Terminal", ["sudo", "apt", "update"])]

if gksu is not None:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd recommend to remove this. You dont want to mess with the package manager. users should always see the output of it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which would remove gksu from the dependencies. I recommend this anyway because the workflow is exactly the same but there is one additional dependency.

if query.isTriggered:
if len(query.string) > 2:
# pattern = re.compile(query.string, re.IGNORECASE)
shell_cmd = ["apt-cache" ,"search"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apt-cache is not in the deps list. I am not good with debian. If it is always installed thats fine. if not users should know it.

@ManuelSchneid3r
Copy link
Copy Markdown
Member

I dont know how to do this, but could you please finish the change request when you made your changes? Last time I did not recognize your changes since the PR overview told me that there are still changes requested.

image

@ManuelSchneid3r
Copy link
Copy Markdown
Member

@harindu95? R u still there?

@ManuelSchneid3r
Copy link
Copy Markdown
Member

Seems to be abandoned by OP.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants