[PATCH] kate 20 login boxes was Re: RFC: Syncrounous execution with fish ioslave
Willy De la Court
Willy.DelaCourt at pandora.be
Sat Mar 22 15:49:30 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday 21 March 2003 21:53, Willy De la Court wrote:
> On Friday 21 March 2003 17:15, Jörg Walter wrote:
> > On Friday, 21. March 2003 11:06, Waldo Bastian wrote:
> > > > Which brings up another problem on the wishlist/TODO for kio_fish:
> > > > Synchronizing password dialogs. Users are annoyed by loading up kate
> > > > with 20 docs reopened at startup, all of them via kio_fish, and 20
> > > > password dialogs pop up. Using 'keep password', they would only have
> > > > to enter the password once.
> > > >
> > > > What can be done there?
> > >
> > > The kate mainwindow needs to be passed to all KIO::Jobs so that the
> > > password server will automatically cache passwords for jobs that
> > > originate from kate.
> >
> > Well, that part is working. It is the problem of 20 password boxes
> > popping up at once while 20 files are loaded at startup. Password caching
> > won't help there, as the password boxes are already showing before the
> > password cache is populated. I thought of doing some locking in kio_fish
> > so that no two password dialogs are shown for the same host/user/port
> > simultaneously, i.e. having all but one kioslave wait until the first
> > pass dialog is dismissed. Yet, this doesn't seem belong into kioslaves as
> > I read in the original mail. What better way is there?
>
> this patch should solve that problem
> if the kate maintainer can comment on this and let me know if i can commit
> it. The patch will test the file existance in a synchrounous way so if you
> load 20 files from the same fish ftp or other remote protocol it will ask
> the password ones for every server. This is a quick hack and maybe can be
> optimized.
Optimized so it only checks remote files. SInce the donwload of the files is
going to take some time it should not have big performance implications.
- --
Simple things make people happy.
Willy De la Court
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+fIYK/ghobDfHpokRAn0KAKCRWpvDpleOvupCZIAE+rAN2vRW5QCgswPm
m7VIXd6kIUbGZ0GLiPZYskg=
=47+0
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kate.remote.patch
Type: text/x-diff
Size: 964 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030322/59f6da2b/attachment.patch>
More information about the kde-core-devel
mailing list