l3ib / nitrogen

Background browser and setter for X windows.
http://projects.l3ib.org/nitrogen
GNU General Public License v2.0
352 stars 40 forks source link

Incorrectly parses filename containing two dashes #171

Open cptchuckles opened 2 weeks ago

cptchuckles commented 2 weeks ago

Version: 1.6.1-6

Command:

nitrogen --head=0 --set-zoom-fill -- /home/grendel/pictures/wallpapers/s/kmc_B87KFrhCUAM6qA--magickrop_upscayl_3x_ultrasharp.jpg

Output:

Error parsing command line: Unexpected argument magickrop_upscayl_3x_ultrasharp.jpg

The problem seems to be that .*--.* is still treated as special characters, even after encountering the first stand-alone -- literal in the args list, which conventionally is supposed to mean there will absolutely be no more options.

cptchuckles commented 2 weeks ago

it seems #77 was not fixed