Flameshot: Flameshot hardcodes ~/.config/autostart instead of using $XDG_CONFIG_DIRS

Created on 17 Sep 2020  路  8Comments  路  Source: flameshot-org/flameshot

I was reading the source code and found that the source code handling autostart is to hardcode $HOME/.config/autostart/. According to the XDG specification (https://specifications.freedesktop.org/autostart-spec/0.5/ar01s02.html), we should be using $XDG_CONFIG_DIRS/autostart first and fallback to ~/.config/autostart only when $XDG_CONFIG_DIRS was not set.

This would require a little bit of code refactoring, including searching of both canonical and fallback locations. Maybe we can do it after 0.8.x release.

Enhancement Good first issue Help Wanted

Most helpful comment

Hi, I'll try to work on this.
but since this is my first time contribute to flameshot, it may take a bit longer

All 8 comments

Hi, I'll try to work on this.
but since this is my first time contribute to flameshot, it may take a bit longer

@adzimzf Feel free to drop in our slack group to ask for advice in the dev channel or just pm me directly. flameshotworkspace.slack.com/

thank you so much for warm welcome

@borgmanJeremy Shall I assign this to @adzimzf to indicate others that they should not spend time on this?

Yup good idea

Hi @borgmanJeremy
How to log in to flameshotworkspace.slack.com, do I have to be invited first?

Thank you @mmahmoudian

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gdude2002 picture gdude2002  路  4Comments

makz27 picture makz27  路  4Comments

omkarnathsingh picture omkarnathsingh  路  4Comments

abba23 picture abba23  路  3Comments

ElijahLynn picture ElijahLynn  路  3Comments