KiTTY icon indicating copy to clipboard operation
KiTTY copied to clipboard

[Bug] Jump List in Windows not working in portable mode

Open CWempe opened this issue 4 years ago • 18 comments

When I click an a "Recent Session" Kitty opens but the Session is not started. Like double-clicking kitty.exe.

image

In case it matters: I installed Kitty via chocolatey. The shortcut in the Task bar looks like this:

image

My Sesisons are stored in c:\Users\cwempe\AppData\Local\VirtualStore\ProgramData\chocolatey\lib\kitty\tools\Sessions\

I did never tested this with older Kitty versions (with registry sessions or without `.ktx' ). So I don't know if this is a new bug or if this even worked before.

CWempe avatar Apr 24 '20 09:04 CWempe

It seems you use portable mode. To start a session with command-line you must specify the folder where the session file is located with the -folder option. Unlike registry mode, you can have several different sessions with the same name in different folders. It is described in Portability documentation page.

cyd01 avatar Apr 28 '20 15:04 cyd01

Yes, I am using portable mode.

To start a session with command-line you must specify the folder where the session file is located with the -folder option.

I am not talking about starting a session with command-line. I want to start it by clicking on one of the recent entries. If these need the -folder option, I think Kitty should provide this automatically , if possible.

CWempe avatar Apr 28 '20 16:04 CWempe

Yes clicking a recent entry means to start a session with -load option. And I think in you situation KiTTY does not really know where the file is located and I don't know why. I never use portable mode, I've tried to reproduce your issue with a simple portable KiTTY, and in my case it worked. Maybe there is something special with chocolatey (never installed too).

cyd01 avatar Apr 28 '20 16:04 cyd01

I've tried to reproduce your issue with a simple portable KiTTY, and in my case it worked. Maybe there is something special with chocolatey (never installed too).

I will try to investigate further... 😁

CWempe avatar Apr 28 '20 17:04 CWempe

@cyd01 Maybe we could reopen this issue as there are other users interested in this feature/bugfix.
If you find the time or motivation to look into this is another topic. :)

CWempe avatar Jul 07 '20 20:07 CWempe

That's true

cyd01 avatar Jul 08 '20 06:07 cyd01

Ok, I've reverted few things in this debug build. Unfortunately I won't have time to upload a new release before going to holidays. But you can test the debug build. It seems it works fine in normal mode. But in portable mode, it seems it works for the default repository only. I did not find out why it can't work for sub-directories. If someone could help ... Bye and see you in 3 weeks.

cyd01 avatar Jul 10 '20 15:07 cyd01

Tested debug build and found that JumpList working fine. Also one annoying thing is - when I launch anything from JumpList - window not focused. When I just clicked on launchbar and just run kitty - then window is focused.

sHAsHiLx avatar Jul 10 '20 21:07 sHAsHiLx

@sHAsHiLx Did you use portable mode?

I just tried it and there is no entry in my jump list.

I also created a simple setup.

D:\Downloads\kitty_test\kitty.exe
D:\Downloads\kitty_test\kitty.ini
D:\Downloads\kitty_test\Sessions\magneto

kitty.ini

[KiTTY]
savemode=dir

[ConfigBox]
defaultsettings=yes

I open Kitty, select "pin to taskbar", oben the session magneto, login and logout. I right click on the icon in the taskbar, but there is no jump list entry.

Maybe I did something wrong on my system with previous tests. Will try on another machine later.

CWempe avatar Jul 11 '20 12:07 CWempe

Use it as is. Downloaded provided by cyd01 debug build - and it works great except some thing about focused windows.

sHAsHiLx avatar Jul 11 '20 12:07 sHAsHiLx

Use it as is. Downloaded provided by cyd01 debug build

So you did not use portable mode. I don't know if there was even an issue with jump lists in normal mode.

When I disable portable mode, It works for me. Kitty is loading my putty sessions form registry (I guess). And I se many working entries in the jump list.

  • and it works great except some thing about focused windows.

When I open a session from jump list it is focused. 🤨

CWempe avatar Jul 11 '20 17:07 CWempe

I'm also seeing focus issues with jump list items in portable mode (opening an item from the jump list doesn't focus the window properly). Is this worth opening a separate issue?

jgbishop avatar Jul 19 '20 13:07 jgbishop

изображение when I click on upper element - window get opened focused (in rare cases not focues but mainly focused). when I click any element from JumpList - it opens not focused every time.

I think this was started when I updated windows to version 2004.

I'm also seeing focus issues with jump list items in portable mode (opening an item from the jump list doesn't focus the window properly). Is this worth opening a separate issue?

what windows ver for you?

sHAsHiLx avatar Jul 24 '20 16:07 sHAsHiLx

I'm seeing focus issues on 1909, so I don't think the Windows version is the factor.

jgbishop avatar Jul 24 '20 23:07 jgbishop

I also created a simple setup. ... I open Kitty, select "pin to taskbar", oben the session magneto, login and logout.

@CWempe, Did you "pin"IMMEDIATELY after launch kitty_portable.exe or when any SESSION was opened? It matters. Also, can you try 0.74.0.5 version, maybe with some steps from my https://github.com/cyd01/KiTTY/issues/198#issuecomment-679912647 (btw I use Win 10 1909)

AndNovAtor avatar Aug 25 '20 10:08 AndNovAtor

It matters

When "we" start kitty_portable.exe "unpinned", it has this icon: image And I shouldn't press "pin to taskbar" on this "state". Instead, I should run any session - then Kitty has "general" icon: image ... and then I press "pin to taskbar" Btw, everytime I update kitty exe file, I "unpin" it, update file, start any session and "pin" it

AndNovAtor avatar Aug 25 '20 11:08 AndNovAtor

I tried your way with version 0.74.0.5. (I guess 0.75.0.5 is a typo) But I get no JumpList entry at all.

This may be because I installed Kitty via Chocolatey.

CWempe avatar Aug 25 '20 20:08 CWempe

I use Kitty on Windows 7. For some reason newer Kitty versions Jump List of the Kitty in the Start Menu is not filled with used entries. Before some moment, it was working fine. Jump List in the taskbar works fine. (It's surprising that both these jump lists are separate from each other).

vrubleg avatar Nov 14 '20 12:11 vrubleg

Issue closed due to inactivity

cyd01 avatar May 23 '23 18:05 cyd01

Well, I just didn't know that there is something else to discuss. Jump Lists were working in portable mode years ago, and then suddenly stopped.

vrubleg avatar May 23 '23 18:05 vrubleg