Skip to content

Teknofest 2026: Arka Planda İşlem Yürütme ve Takip Bildirim Yönetimi İyileştirmesi - #47

Open
umutKaracelebi wants to merge 1 commit into
pardus:masterfrom
umutKaracelebi:master
Open

Teknofest 2026: Arka Planda İşlem Yürütme ve Takip Bildirim Yönetimi İyileştirmesi#47
umutKaracelebi wants to merge 1 commit into
pardus:masterfrom
umutKaracelebi:master

Conversation

@umutKaracelebi

@umutKaracelebi umutKaracelebi commented May 7, 2026

Copy link
Copy Markdown

Bu geliştirme, Teknofest 2026 Pardus Hata Yakalama ve Öneri Yarışması (Öneri/Hata Yakalama Kategorisi) kapsamında İnoTürk takımı tarafından hazırlanmıştır.

Yapılma Amacı:

  • Pardus Yazılım Merkezi'nde pencere kapatıldığında işlemlerin arka planda güvenli bir şekilde devam etmesini sağlamak.
  • GNOME bildirim sistemi kısıtlamalarını aşarak, kullanıcıya sadece gerekli anlarda (başlangıç ve bitiş) anlamlı bildirimler sunmak.
  • Arka planda çalışan uygulama sayısını ve durumunu kullanıcıya bildirmek.

Bu bir taslak gönderimdir, yarışma süreci ve ek geliştirmeler için güncellenmeye devam edilecektir.

@umutKaracelebi
umutKaracelebi marked this pull request as ready for review July 30, 2026 19:59
Copilot AI review requested due to automatic review settings July 30, 2026 19:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to improve Pardus Software Center’s behavior when the main window is closed during an ongoing install/remove/upgrade by keeping operations running in the background and managing user notifications more intentionally.

Changes:

  • Adds a delete-event handler to hide the window (instead of exiting) when an operation is in progress and sends a background-running notification via D-Bus.
  • Introduces scaffolding for progress-related notification updates and resets related state when actions complete.
  • Routes progress text updates through a new helper (update_progress_notification) alongside existing UI progress updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/MainWindow.py
Comment on lines +69 to +73

self.MainWindow = self.GtkBuilder.get_object("MainWindow")
if self.MainWindow:
self.MainWindow.connect("delete-event", self.on_delete_event)

Comment thread src/MainWindow.py
)),
None,
Gio.DBusCallFlags.NONE,
-1,
Comment thread src/MainWindow.py
Comment on lines +4898 to +4899
def update_progress_notification(self, text, percent):
pass
Comment thread src/MainWindow.py
Comment on lines +4988 to +4989
self.bg_notified = False
self.last_notified_percent = -1
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