Skip to content

osdep/path-win: expand ~~exe_dir/ on portable mode - #18442

Merged
kasper93 merged 1 commit into
mpv-player:masterfrom
verygoodlee:patch-12
Sep 8, 2026
Merged

kasper93 merged 1 commit into
mpv-player:masterfrom
verygoodlee:patch-12

Conversation

@verygoodlee

@verygoodlee verygoodlee commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

don't know why it was only expanded on non-portable mode before, but adding this should be fine.

Closes: #10009
Closes: #18429

don't know why it was only expanded on non-portable mode before,
but adding this should be fine.

@Dudemanguy Dudemanguy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me.

@kasper93

kasper93 commented Sep 2, 2026

Copy link
Copy Markdown
Member

I also never understood why exe_dir is Windows only.

@avih

avih commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Seems OK, but the commit where it was added says that it's for config purposes, and I don't think it's accidental that it's only for non-portable mode - 26fc70d - it could have easily been added next to ~~desktop for both modes - but it was not.

I do agree it can have value outside of config purpose, but I wonder if there could be some implications we're not aware of currently.

@kasper93

kasper93 commented Sep 2, 2026

Copy link
Copy Markdown
Member

portable mode also have config, and not providing exe_dir is weird limitation, if not outright bug.

@llyyr

llyyr commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

I also never understood why exe_dir is Windows only.

It would just point to /usr/bin, since portable_config isn't a thing on Linux

@kasper93
kasper93 merged commit 7e4cb53 into mpv-player:master Sep 8, 2026
29 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

~~exe_dir/ is empty on portable mode Does the path ~~exe_dir/ works normally?

5 participants