Skip to content

When spawned with a directory, interpret it as the starting cwd #629

@whisperity

Description

@whisperity

When Contour is started from a desktop integration (e.g. right click -> open with -> contour), unfortunately the integration only fires contour [... directory path ...]. This causes contour to crash because a directory cannot be started as a program image.

The solution would either be:

  1. Implement desktop integrations that work with the right-click menu. This might be problematic due to the absolute plethora of desktop environments to support.
  2. "Hotwire" Contour so if it is spawned with only a directory as the first argument, interpret it as "start with the default profile but spawn the configured shell in that directory".

For example, Konsole does not crash (at least...), but is also rather buggy: when opening, from Dolphin, Konsole in ~/foo/bar as the "Open with..." action, it spawns the default shell in ~/foo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    crash(-like)Bug that results in severe state corruption, lock-ups with recovery, or outright terminationenhancementNew feature or requestfeature-requestUser requested featuresfrontendContour Terminal Emulator (GUI frontend)good first issueGood for newcomersplatform: linuxtopics that directly address Linux platform (any distro)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions