need some guidance on a project
Matthew Paul Thomas
mpt at canonical.com
Mon Jul 12 13:13:03 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Pranay
Sorry for the late reply.
pranay agarwal wrote on 30/06/10 18:07:
>
> hi, whenever i shutdown or restart the system when i am downloading
> any package from synaptic package manager, the system does not show me
> any warnings that some download is in progress, so i intend to add
> this feature in ubuntu. Can someone please guide me as to how should i
> proceed about it?
> Thanks.
Over the next couple of Ubuntu releases, we're migrating from Synaptic
to Ubuntu Software Center and Update Manager. However, they currently
have this same problem as Synaptic.
Ubuntu Software Center uses aptdaemon for package installation, and
Update Manager from Maverick onwards will use aptdaemon too. So to fix
this problem in both programs, you could change aptdaemon so that any
package operation (1) inhibits session exit and (2) inhibits shutdown.
Here's the aptdaemon code:
https://code.launchpad.net/aptdaemon
Here's the reference for how to inhibit session exit:
http://people.gnome.org/~mccann/gnome-session/docs/gnome-session.html#org.gnome.SessionManager.Inhibit
Inhibiting shutdown can be done with an Upstart script. The
unattended-upgrades package contains a script doing the same thing:
https://code.launchpad.net/~ubuntu-branches/ubuntu/maverick/unattended-upgrades/maverick
http://upstart.ubuntu.com/getting-started.html
Thanks for getting involved!
- --
Matthew Paul Thomas
http://mpt.net.nz/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkw7FN4ACgkQ6PUxNfU6ecoXxwCcCHpEO1ZbnwPXAsFiFdaUUJFV
xdEAn3SSmJ9gb/GHdgNzpckiJ3J9qPDk
=jK2H
-----END PGP SIGNATURE-----
More information about the Ubuntu-devel-discuss
mailing list