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

Config Directory can not be created #2203

Closed
hollisterca opened this issue Jun 21, 2019 · 12 comments
Closed

Config Directory can not be created #2203

hollisterca opened this issue Jun 21, 2019 · 12 comments

Comments

@hollisterca
Copy link

No description provided.

@hollisterca
Copy link
Author

Upgraded to Ubuntu 19.04
Installed Geany via cmd line "sudo apt install geany"
When starting Geany I get the following popup (see attachment)
in the terminal Windows I see the following:
nbeerli@nbeerli-galaxy3:$ geany
symlink: Permission denied
nbeerli@nbeerli-galaxy3:
$
Screenshot from 2019-06-21 12-19-52

@elextr
Copy link
Member

elextr commented Jun 21, 2019

How did you start geany?

@elextr
Copy link
Member

elextr commented Jun 21, 2019

Ummm, it wouldn't be the piece of crossed out text in the background would it?

@hollisterca
Copy link
Author

yes, same thing happens if you start over the UI

@eht16
Copy link
Member

eht16 commented Jun 21, 2019

Could you start Geany with geany -v from the terminal and see if there is anything useful in the output?
By default, Geany's configuration directory is in ~/.config/geany, does that directory exist and can your user write to ~/.config?
If it exist, could you post the output of ls -la ~/.config/geany?

Based on the output above, it might be the symlink creation which fails: on startup, Geany creates a Unix domain socket in /tmp and then create a symlink to that file in the config directory.
Is there a file like geany_socket.<something> in your /tmp and if so, what are its permissions and ownership?

@elextr
Copy link
Member

elextr commented Jun 21, 2019

Geany creates a Unix domain socket in /tmp and then create a symlink to that file in the config directory.

Yes but that doesn't happen until after the config creation and the dialog shown has returned, so thats why I was asking if the background message is actually relevant.

@hollisterca
Copy link
Author

nbeerli@galaxy3:$ geany -v
(geany:7334): GLib-GIO-DEBUG: 15:09:16.706: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
nbeerli@galaxy3:
$

~/.config/geany
yes there is a geany below .config but the folder has a lock on it. (in the UI)

nbeerli@galaxy3:~$ ls -la /.config/geany
ls: cannot open directory '/home/nbeerli/.config/geany': Permission denied
nbeerli@galaxy3:
$

no geany* in /tmp

@eht16
Copy link
Member

eht16 commented Jun 21, 2019

nbeerli@galaxy3:~$ ls -la /.config/geany ls: cannot open directory '/home/nbeerli/.config/geany': Permission denied nbeerli@galaxy3:$

This is your problem.
What does ls -la ~/.config give?

Did you tried to start Geany as root (e.g. with sudo) before or anything else?

To solve your problem: make sure your user can write to his own configuration directory. How to do that depends on the output of the ls command above.

@hollisterca
Copy link
Author

when I run sudo geany it works, no popup.

I use geany since a while.
In 18.04 I installed it sudo apt install geany. No issues to run it as a user.
In 19.04 I installed the same way, but it seems to create the folder ~/.config/geany as root and that is why is not working.

I just checked ls -all shows root:root on the geany folder.
Maybe something in the install script not working.

@hollisterca
Copy link
Author

one other thing. Installing geany from "Ubuntu Software Center" will not work at all. But from the cmdline it worked but with above flaw. Hope this helps to make the install better.

@eht16
Copy link
Member

eht16 commented Jun 21, 2019

No, the "install script" doesn't touch anything in your $HOME directory.

The reason is probably because you ran Geany as root.
Just don't do it.

To solve your problem: chown -R nbeerli:nbeerli ~/.config/geany.

No idea why the installation won't work with the Ubuntu Software Center. We cannot provide support for distribution specifc problems. This is unrelated to Geany.

@eht16 eht16 closed this as completed Jun 21, 2019
@elextr
Copy link
Member

elextr commented Jun 21, 2019

The install script would not touch your config directory, as @eht16 asked, did you ever run Geany with sudo?

This project doesn't make the packages for the software centre, thats Ubuntus work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants