Open mamercad opened 1 year ago
Can you post an anonymized variant of the order of paths the app looks through with the command pushover-cli config paths
?
Not sure why the config ended up in /etc/xdg when the user does not have access writes, it should have failed when it tried to write it already.
The list should look something like this:
INF Folder found path=/home/adrian/snap/pushover-cli/14/.config/pushover-cli
INF Folder found path=/etc/xdg/xdg-pop/pushover-cli
INF Folder found path=/etc/xdg/pushover-cli
Can you post an anonymized variant of the order of paths the app looks through with the command
pushover-cli config paths
?Not sure why the config ended up in /etc/xdg when the user does not have access writes, it should have failed when it tried to write it already.
The list should look something like this:
INF Folder found path=/home/adrian/snap/pushover-cli/14/.config/pushover-cli INF Folder found path=/etc/xdg/xdg-pop/pushover-cli INF Folder found path=/etc/xdg/pushover-cli
Sure, this isn't anonymized, I'm not worried that my username is sensitive 😄
❯ pushover-cli config paths
2023-03-25T09:41:06-04:00 INF Collecting paths that will be used for config.json lookup
2023-03-25T09:41:06-04:00 INF Folder found path=/home/mark/snap/pushover-cli/14/.config/pushover-cli
2023-03-25T09:41:06-04:00 INF Folder found path=/etc/xdg/pushover-cli
Not sure why the config ended up in /etc/xdg when the user does not have access writes, it should have failed when it tried to write it already.
I used configuration management to push the config into /etc/xdg/pushover-cli
thinking that all system users could share the config that way.
Ok, yeah that seems OK. The problem with snap is that it is hard to access stuff outside its own security context, it acts like a jail. You could try to use the pure binary or fiddle with snap mounts --devmode
. Maybe I can add additional distribution channels if I can find the time.
Ok, yeah that seems OK. The problem with snap is that it is hard to access stuff outside its own security context, it acts like a jail. You could try to use the pure binary or fiddle with snap mounts
--devmode
. Maybe I can add additional distribution channels if I can find the time.
Not a problem at all; I've dumped config.json
into the respective user homes for the time being. Though, I'd argue that the snap shouldn't search this path if it doesn't work.
I agree, I will take this issue to at least add a check if the cli has read access to the resolved paths, if not, remove it from the list of possible paths (or at least mark it as problematic).