Giter VIP home page Giter VIP logo

Comments (7)

Tonus1 avatar Tonus1 commented on August 19, 2024 1

Shot in the dark :
Could it be you had an alias you forgot that could be interfering ?

from khal.

Robert-Ernst avatar Robert-Ernst commented on August 19, 2024

@WhyNotHugo

from khal.

WhyNotHugo avatar WhyNotHugo commented on August 19, 2024

I cannot reproduce this.

> echo $XDG_CONFIG_HOME
/home/hugo/.config  
> khal list
...
> khal configure
critical: Found an existing config file at ~/.config/khal/config.
critical: If you want to create a new configuration file, please remove the old one first. Exiting.

What is the output of file ~/.config/khal/config and ls -l ~/.config/khal/config?

from khal.

Robert-Ernst avatar Robert-Ernst commented on August 19, 2024

As I've mentioned the config itself is working if I use the parameter with -c. But it doesn't find it via the default $XDG_CONFIG_HOME path. The change I did was from using a custom path config file to try to use the default $XDG_CONFIG_HOME path

ls -l ~/.config/khal/config
-rw-r--r-- 1 xxx xxx 429 Jan 11 11:05 /home/xxx/.config/khal/config

file ~/.config/khal/config
/home/xxx/.config/khal/config: ASCII text

cat /home/xxx/.config/khal/config

[calendars]

[[private]]
path = /mnt/xxx/khal/private
type = calendar

[[secondcalendar]]
path = /mnt/xxx/khal/secondcalendar
type = calendar

[locale]
timeformat = %H:%M
dateformat = %Y-%m-%d
longdateformat = %d %B %Y
datetimeformat = %d %B %Y %H:%M
longdatetimeformat = %d %B %Y %H:%M

[default]
default_calendar = private

@WhyNotHugo

from khal.

WhyNotHugo avatar WhyNotHugo commented on August 19, 2024

I can't reproduce the issue, and looking through the code I don't see any hints as to what could be failing.

from khal.

WhyNotHugo avatar WhyNotHugo commented on August 19, 2024

from khal.

Robert-Ernst avatar Robert-Ernst commented on August 19, 2024

@Tonus1 That was a great shot in the dark!

I checked my aliases and in fact I configured it with the -c command with the old location of my config file. So the problem occured when I moved it from the custom location and put it into the $XDG_CONFIG_HOME path.
It's working now.

Thank you for the swift replies!

from khal.

Related Issues (20)

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.