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

Forcibly remove gtk_config files if not symlinks #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lucyllewy
Copy link
Contributor

The launcher tries to create symbolic links to GTK configuration files such as gtkfilechooser.ini. This process will fail and continue if the file exists, but is not already a symbolic link. This PR forcibly removes the file(s) if they are present, but not currently a symbolic link and then creates the link appropriately as before.

Once merged this PR will squash messages from ln like:

$ irccloud-desktop
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8)
ln: failed to create symbolic link '/home/dllewellyn/snap/irccloud-desktop/x2/.config/gtk-2.0/gtkfilechooser.ini': File exists

The launcher tries to create symbolic links to GTK configuration files such as gtkfilechooser.ini. This process will fail and continue if the file exists, but is not already a symbolic link. This PR forcibly removes the file(s) if they are present, but not currently a symbolic link and then creates the link appropriately as before.

Once merged this PR will squash messages from `ln` like:
```plain
$ irccloud-desktop
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8)
ln: failed to create symbolic link '/home/dllewellyn/snap/irccloud-desktop/x2/.config/gtk-2.0/gtkfilechooser.ini': File exists
```
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

Successfully merging this pull request may close these issues.

1 participant