Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run on Solus OS #434

Closed
Abhinav1217 opened this issue Jan 15, 2018 · 6 comments

Comments

Projects
None yet
3 participants
@Abhinav1217
Copy link

commented Jan 15, 2018

I installed Snap package for tizonia in solus. It gives me following error

abhinav@abhinav-solus ~ $ tizonia --help youtube
2018/01/16 01:09:06.705207 cmd_run.go:446: WARNING: cannot create user data directory: cannot read symlink: readlink /home/abhinav/snap/tizonia/current: invalid argument
tizonia 0.11.0. Copyright (C) 2017 Juan A. Rubio
This software is part of the Tizonia project <http://tizonia.org>

I found that default location on solus os for snap is not /var/lib/snap...... like what you mentioned in your readme. I had to copy config file from its installed location which I found through locate command.

abhinav@abhinav-solus ~ $ locate tizonia.conf
/snap/tizonia/15/etc/xdg/tizonia/tizonia.conf

so I edited your copy command to copy this file. But still I am getting same error.
how do I edit the symlink here??

@tizonia

This comment has been minimized.

Copy link
Owner

commented Jan 15, 2018

Hi!,

Thanks for trying Tizonia in Solus.

2018/01/16 01:09:06.705207 cmd_run.go:446: WARNING: cannot create user data directory: cannot read symlink: readlink /home/abhinav/snap/tizonia/current: invalid argument

Looking at this, I tend to think that this issue is not related to Tizonia. Sounds like a 'Snapd' integration issue in Solus.

Would you be able to provide details of which version of snapd is installed on your system?

There is another good point in your report. And that is the fact that copying the tizonia.conf template from the snap installation folder into the user's snap home folder is quite a chore. Snaps are not installed in the same location in all the distros. So I think I will end up adding some logic to the program to generate the tizonia.conf file automatically on the first run, to spare this confusion to the users. It is not a great experience right out of the gate to have to locate this file in the file system to then copy it to some strange snap subdir in your $HOME.

@Abhinav1217

This comment has been minimized.

Copy link
Author

commented Jan 16, 2018

Here is the snap version

abhinav@abhinav-solus ~ $ snap --version
snap    2.30
snapd   2.30
series  16
solus   3
kernel  4.14.13-46.current
abhinav@abhinav-solus ~ $ 

Yes snap location is different on every browser, Your command actually assumes it is Ubuntu based distro, I have Fedora as my main workstation and elementary and solus on another system which I use for distro hopping, Your command worked without change in elementary only, On fedora, for me, location was something in line of /usr/snapd/snaps/... I will give you exact location when I open fedora.

If it is just a matter to copying .conf file, why don't you keep one on github and users can have an option to install it using something like mkdir ~/.config/tizoniz && cd $_ && wget raw.github.com/<repo>/tizonia.conf

Or better, create a basic conf file on first run, or using something like $ tizoniz config --create which will create a file on location instead of copying from an assumed location.

Just throwing ideas, I really like to have it working on my fedora system. Since I also couldn't compile it on Fedora, I was really rooting for its snap.

@tizonia

This comment has been minimized.

Copy link
Owner

commented Jan 16, 2018

Thanks!, I've posted your question on the Snapcraft forum.
https://forum.snapcraft.io/t/solus-os-cmd-run-go-446-warning-cannot-create-user-data-directory/3547

Definitely, the best solution here is to generate the file directly on the app's first run, if it does not exist in the expected location. I think the application has access to Snapd environment variables that will provide the information on where this file is located in every system.

I think I'll create a separate issue for that.

@juanrubio

This comment has been minimized.

Copy link
Collaborator

commented Jan 17, 2018

@Abhinav1217, would you be able to continue the conversation in the Snapcraft forum?

See https://forum.snapcraft.io/t/solus-os-cmd-run-go-446-warning-cannot-create-user-data-directory/3547

@Abhinav1217

This comment has been minimized.

Copy link
Author

commented Jan 17, 2018

Yes I created an account on snapcraft just now and replied there. Thanks for posting it there. I hope I get some solution there.

@tizonia

This comment has been minimized.

Copy link
Owner

commented Mar 9, 2018

@Abhinav1217 : The master branch now will create a tizonia.conf file on first launch, if one does not exist. A new release will be out in the next few days. So I'm closing this for now. Thanks.

@tizonia tizonia closed this Mar 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.