AppImageLauncher icon indicating copy to clipboard operation
AppImageLauncher copied to clipboard

Corrupted configuration file

Open FedericoStra opened this issue 2 years ago • 1 comments

Pre-submit checks

  • [X] I checked for similar issues beforehand, but could not find any, not even closed ones. I could not add my bug report to any existing issue.
  • [x] I am going to take the time to to fill in all the required details. I know that the bug report will be dismissed otherwise.

Describe the bug

The configuration file ~/.config/appimagelauncher.cfg gets corrupted whenever AppImageLauncher runs, including implicitly when executing an *.AppImage file.


Upon installation the config file looks like this:

[AppImageLauncher]
ask_to_move=true
destination=/home/me/.local/bin
%23%20enable_daemon=true

[appimagelauncherd]
%23%20additional_directories_to_watch=~/otherApplications:/even/more/applications
%23%20monitor_mounted_filesystems=false

Notice that the intended # is replaced by the URL encoded sequence %23%20.

If I correct it with sed 's/^%23%20/# /' -i ~/.config/appimagelauncher.cfg, then as soon as I run an *.AppImage file the config gets reverted to the incorrect one with the leading sequence %23%20 instead of # .

Expected behavior

I expect AppImage not to mess up its own configuration file.

Steps to reproduce the issue

  1. Install AppImageLauncher via RPM.
  2. Open the config file: it is messed up.
  3. Fix it with sed 's/^%23%20/# /' -i ~/.config/appimagelauncher.cfg.
  4. Run an *.AppImage file.
  5. Open the config file: it is messed up again.

Screenshots

No response

Distribution and desktop environment

Fedora Linux 37 (Workstation Edition)

Installed AppImageLauncher version

AppImageLauncher version 2.2.0 (git commit 0f91801), built on 2020-09-29 21:36:22 UTC

List of AppImages you tried

Additional context

No response

FedericoStra avatar Oct 26 '23 13:10 FedericoStra

I should add that I managed to work around the bug by removing the commented lines, i.e. using the config

[AppImageLauncher]
ask_to_move=true
destination=/home/me/.local/bin
enable_daemon=false

FedericoStra avatar Oct 26 '23 13:10 FedericoStra