Ignore:
Timestamp:
Mar 7, 2024, 1:55:18 PM (2 months ago)
Author:
Bruno Cornec
Message:

Change find_my_editor and find_home_of_exe to return dynamically assigned stringsi - adapt whine_if_not_found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/common/libmondo-stream.c

    r3860 r3866  
    315315    log_to_screen("I am looking for your tape streamer. Please wait.");
    316316    mr_free(dev);
    317     if (find_home_of_exe("cdrecord")) {
    318         mr_asprintf(cdr_exe, "cdrecord");
    319     } else {
    320         mr_asprintf(cdr_exe, "dvdrecord");
     317    if ((cdr_exe = find_home_of_exe("cdrecord")) != NULL) {
     318        if ((cdr_exe = find_home_of_exe("wodim")) != NULL) {
     319            cdr_exe = find_home_of_exe("dvdrecord");
     320        }
    321321    }
    322322    mr_asprintf(command, "%s -scanbus 2> /dev/null | grep -i tape | wc -l", cdr_exe);
Note: See TracChangeset for help on using the changeset viewer.