Skip to content

Fix for backquote sign in filename#7

Open
y0g1 wants to merge 6 commits intojonashaag:masterfrom
y0g1:master
Open

Fix for backquote sign in filename#7
y0g1 wants to merge 6 commits intojonashaag:masterfrom
y0g1:master

Conversation

@y0g1
Copy link

@y0g1 y0g1 commented Jan 23, 2013

Better support for backquotes and other nasty characters in file path, using list elements in subprocess.Popen()

y0g1 added 2 commits January 22, 2013 23:49
Fixes the "moc.MocError: /bin/sh: 1: Syntax error: EOF in backquote substitution" error, when trying to play a track that contains a backquote in its filename
moc/__init__.py Outdated
Copy link
Owner

Choose a reason for hiding this comment

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

Make _check_file_args not return anything since it doesn't modify the list. This way we can remove the quoted list entirely.

@jonashaag
Copy link
Owner

Could you make a separate pull request for the filename stuff?

As for the configuration thing... it might be a better solution to just encapsulate all the logic into a class and keep the configuration file (and other parameters if there are any) as instance state.

Michal Bielecki added 2 commits April 20, 2013 22:20
get_volume gets mixer volume level from moc server by use of socket.
We are now parsing moc config file, in order to check where socket file is.
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.

2 participants