mirror of
https://git.freebsd.org/ports.git
synced 2025-06-21 04:30:37 -04:00
ChangeLog: https://github.com/elementary/code/releases/tag/7.1.0 * Ensure active project at startup (include non-git folders) * Handle saving to unwritable location better to avoid data loss * Flatpak: Use 7.1 Sdk, Update Dependencies * Make symbol outline aware of follow-system-style setting * Show running branch if not master * appdata: Minor wording fixes in release notes * Fix styling when no documents * Ensure Replace button (and other search widget) states are mutually consistent * Switch to GHCR containers * Delay asking for save location if cannot determine write access * Additional Search options in menu * Implement option to show files with unknown characters as new document * Do not change document search results unexpectedly on focus in * Add ctrl + pageUp and pageDown for switching tabs * Persist search settings * Set search entry icon and styleclass according to results * Add release metainfo and update screenshot addresses for 7.1.0 * Ask save location with dialog * Metainfo: set brand color to Latte 500 * Ensure folder items in sidebar always expandable * Fix creating duplicates of unwritable files * Update metainfo for pull 1252 * Fix typo in metainfo * Install man page with meson * Reduce terminal noise * Remove plugin set option * FormatBar: Show column number not buffer offset * Handle only relevant settings key changes * Use dialog for external changes * Sync tab settings * Fix searchterm reverts * Ensure correct sidebar item is focused, or none, when tab removed * Fix logic for clearing search entry * Fix spurious external change warnings * Meson: modernize PR: 272979 Reported by: duchateau.olivier@gmail.com Approved by: miguel@gocobachi.dev (maintainer)
21 lines
752 B
Vala
21 lines
752 B
Vala
--- src/Widgets/Terminal.vala.orig 2023-08-01 20:46:55 UTC
|
|
+++ src/Widgets/Terminal.vala
|
|
@@ -87,13 +87,14 @@ public class Code.Terminal : Gtk.Box {
|
|
}
|
|
|
|
private string get_shell_location () {
|
|
- int pid = (!) (this.child_pid);
|
|
+ string cwd = "";
|
|
try {
|
|
- return GLib.FileUtils.read_link ("/proc/%d/cwd".printf (pid));
|
|
- } catch (GLib.FileError error) {
|
|
+ GLib.Process.spawn_command_line_sync ("pwd", out cwd);
|
|
+ } catch (GLib.SpawnError error) {
|
|
warning ("An error occurred while fetching the current dir of shell: %s", error.message);
|
|
- return "";
|
|
}
|
|
+
|
|
+ return cwd;
|
|
}
|
|
|
|
private void update_terminal_settings (string settings_schema) {
|