| Summary: | Kate on Windows: Save dialogs use "C:\Program Files\Kate\bin" as initial folder | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | fliegenblues |
| Component: | application | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | christoph, jpmbatrina01 |
| Priority: | NOR | ||
| Version First Reported In: | 20.04.2 | ||
| Target Milestone: | --- | ||
| Platform: | Microsoft Windows | ||
| OS: | Microsoft Windows | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
fliegenblues
2020-08-08 11:33:45 UTC
You are right that this is suboptimal. Unfortunately, that is not just one place and one would actually like to check if one was launched via a terminal windows and only use the home dir in the cases one was not launched there. What speaks against always using the user's home folder as default folder for the save dialogs? It is in my opinion what most users would expect, especially on Windows. Moreover, in Windows, kwrite/kate will almost never be started from a terminal window, only by using the start menu or by double clicking a file in the explorer. It's really annoying that when saving a document, one has always to navigate to the documents folder in the user's home folder first before you can save the file. Moreover, I don't think, that there is a way in Linux or Windows for querying whether one has been started from a terminal window, or by other means. https://invent.kde.org/packaging/craft-blueprints-kde/-/merge_requests/43 Partially addresses this, but only when Kate is launched via the shortcut (e.g. Start Menu), which I think is the main method in windows. Previously, the working directory of the shortcut was set to the installation folder, and kate sets the file picker's initial location to the working directory. Does this also work if I pin kwrite to the taskbar and open it from there? (In reply to fliegenblues from comment #4) > Does this also work if I pin kwrite to the taskbar and open it from there? I just tested this right now (for Kate), and it seems to work for Right Click > Pin to taskbar as well as on "Pin to Start" and "Pin to taskbar" on the Start menu. I don't know how Windows handles the "Pin to" stuff, but I think what happens is For "Pin to taskbar", a copy of the shortcut (if it exists) is placed on the taskbar, and changes to the original shortcut won't be reflected. For "Pin to Start", changes to the original shortcut are propagated. So I think it will work, as long as you set the working directory of the original shortcut first BEFORE pinning to the taskbar |