[GH-ISSUE #87] 'open' command on Linux #25

Closed
opened 2026-03-14 12:26:21 +03:00 by kerem · 1 comment
Owner

Originally created by @baodrate on GitHub (Apr 19, 2023).
Original GitHub issue: https://github.com/aome510/hackernews-TUI/issues/87

Currently, the url_open_command has a hard-coded default of open:

github.com/aome510/hackernews-TUI@3da2bc0703/hackernews_tui/src/config/mod.rs (L51-L54)

That is (AFAIK) a MacOS-ism. On most Linux systems, the equivalent command is xdg-open. Since we're compiling separate binaries for each anyways, could the default be set to xdg-open when targeting Linux? This would provide a much more sane default for Linux users.

Originally created by @baodrate on GitHub (Apr 19, 2023). Original GitHub issue: https://github.com/aome510/hackernews-TUI/issues/87 Currently, the `url_open_command` has a hard-coded default of `open`: https://github.com/aome510/hackernews-TUI/blob/3da2bc07034b451dedfea434f00946fa0025e197/hackernews_tui/src/config/mod.rs#L51-L54 That is (AFAIK) a MacOS-ism. On most Linux systems, the equivalent command is [`xdg-open`](https://linux.die.net/man/1/xdg-open). Since we're compiling separate binaries for each anyways, could the default be set to `xdg-open` when targeting Linux? This would provide a much more sane default for Linux users.
kerem closed this issue 2026-03-14 12:26:36 +03:00
Author
Owner

@aome510 commented on GitHub (Apr 19, 2023):

Updated in #88. Can you try the new changes in the PR to see if they work?

<!-- gh-comment-id:1515435588 --> @aome510 commented on GitHub (Apr 19, 2023): Updated in #88. Can you try the new changes in the PR to see if they work?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hackernews-TUI#25
No description provided.