Skip to content

Ctrl+Shift+N doesn't open a new window if cosmic-term binary changes while the terminal is open #835

@hojjatabdollahi

Description

@hojjatabdollahi

If you update cosmic-term inside cosmic-term, pressing ctrl+shift+n doesn't open another window.

cosmic-term uses env::current_exe(), which reads a symlink to the executable. and if the binary gets updated that symlink is pointing to a deleted file, so the shortcut doesn't work. You have to press super+t which opens the terminal with ~ is the working directory.
Other terminals just spawn another process with the binary name and allow the OS to figure out how to run it. For example foot just asks the OS to run foot.

This is not a big issue but it's annoying. You open a terminal, run apt upgrade, try to open another window to do other stuff and it doesn't work with the normal shortcut.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions