ChangeLog: https://github.com/elementary/code/releases/tag/7.0.0 * Fix compile warnings * add code to keywords * Fix drag and drop of accented text and between tabs * Git ignore flatpak build files * Ensure tab toggle label is always correct * Add follow system style switch * Explicitly handle missing cases * Remove unused properties * Change key to trigger rebuild completion word list * Global search selected * Move strip trailing whitespace into main code; remove plugin * Fix meson warning for run_command * Add custom elementary syntax styles * Hide non-active documents when project manually chosen * Show symbol outline pane on right of document * ProjectFolderItem: Fix wrong ngettext syntax * Redesign app icon as a tile * Put the ProjectChooserButton inside the sidebar * HeaderBar: put find actions in menu * EditorConfig plugin overrides global settings for indent width and style * Make sidebar pane the toplevel container * Use elementary styles when following system style * Change panel menu items to linkbutton * FormatBar: use SwitchModelButton in tab popover * Move Terminal to core * Headerbar: remove sep before Revert * FormatBar: use menubuttons instead of ToggleButtons * Sidebar: Remove minimum width * GSchema: follow system style * Only restore documents for first window. * Do not add duplicate project * Update ci.yml * FormatBar: Set sensitivity of affected items, fix binding * PluginManager: Remove unused hooks * Make Control-Scroll zooming controllable * Metainfo improvements * Headerbar: code style, small fixes * Application: use built-in GLib functions in Activate * Inactivate find actions when no current doc * Fix startup warnings * Styles: misc refinements PR: 269135 Reported by: duchateau.olivier@gmail.com Approved by: miguel@gocobachi.dev (maintainer)
21 lines
709 B
Vala
21 lines
709 B
Vala
--- src/Widgets/Terminal.vala.orig 2023-01-24 16:59:41 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));
|
|
+ GLib.Process.spawn_command_line_sync ("pwd", out cwd);
|
|
} catch (GLib.FileError 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) {
|