Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Next] Added "Software Sources" option to submenu #382

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

loganjameshart
Copy link

From Issue #369

Creates a submenu item which opens Mint's "Software Sources" application, then refreshes the cache immediately after.

From Issue linuxmint#369

Creates a submenu item which opens Mint's "Software Sources" application, then refreshes the cache immediately after.
@mtwebster
Copy link
Member

Hi, I like the idea but it needs to be done a bit differently than this - this freezes mintinstall until mintsources closes. There's an event loop running that needs to continue running while waiting on the return, or we get 'window is not responding' dialogs and more.

Something more along the lines of this is needed:

# callback function for later
def on_process_exited(proc, result):
    proc.wait_finish(result)
    # now refresh...

# Launch mintsources
p = Gio.Subprocess.new(["mintsources"], 0)
# Add a callback for when it finishes...
p.wait_async(None, on_process_exited)
...
# other things can keep going in the meantime...
...

@clefebvre clefebvre changed the title Added "Software Sources" option to submenu [Next] Added "Software Sources" option to submenu Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants