#108 Accept "file://" at start of filename/path

Feature_suggestion
open
nobody
None
5
2013-04-21
2013-04-19
Ivan
No

Some programs put file:// as prefix to the actual pathname.
This patch allows rox to handle this requests correctly.

1 Attachments

Discussion

  • Thomas Leonard
    Thomas Leonard
    2013-04-21

    Why is this in pathdup? Surely we should handle it in the command-line arguments processing?

     
  • Ivan
    Ivan
    2013-04-21

    Looks like I've misunderstand the pathdup function purpose, due to checking it late in the night...
    It is indeed should be inserted in main.c in function main:

    533         /* Add each remaining (non-option) argument to the list of files
    534          * to run.
    535          */
    536         i = optind;
    537         while (i < argc)
    538         {
                     /* new code should be inserted HERE */
    539                 tmp = pathdup(argv[i++]);