Giter Club home page Giter Club logo

freshpresence's Issues

Missing default config is not detected properly

[jvyden@the-overcooler bin]$ ./FreshPresence 
error: FileNotFound
/usr/lib/zig/lib/std/os.zig:1719:23: 0x2c647b in openatZ (FreshPresence)
            .NOENT => return error.FileNotFound,
                      ^
/usr/lib/zig/lib/std/fs.zig:1534:25: 0x2c5d92 in realpathZ (FreshPresence)
            else => |e| return e,
                        ^
/usr/lib/zig/lib/std/fs.zig:1520:9: 0x2c6bc4 in realpath (FreshPresence)
        return self.realpathZ(&pathname_c, out_buffer);
        ^
/usr/lib/zig/lib/std/fs.zig:1608:35: 0x2c7131 in realpathAlloc (FreshPresence)
        return allocator.dupe(u8, try self.realpath(pathname, buf[0..]));
                                  ^
/home/jvyden/Documents/FreshPresence/src/config.zig:29:21: 0x2caf25 in getConfig (FreshPresence)
    var full_path = try (config_dir orelse cwd).realpathAlloc(allocator, config_filename);
                    ^
/home/jvyden/Documents/FreshPresence/src/main.zig:31:20: 0x2d74c0 in runApp (FreshPresence)
    const config = try Config.getConfig(allocator);
                   ^
/home/jvyden/Documents/FreshPresence/src/main.zig:26:9: 0x2dce2c in main (FreshPresence)
        return err;
        ^

Add button to open config in text editor upon first startup

Right now it just tells you the filename and tells you to edit it, but we should have a button to open it in a system installed text editor, whether it be notepad on windows, or on linux where we just have a list of like 20 to try in order

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.