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

"Show again on startup" not saving setting #60

Closed
ElijahLynn opened this issue Nov 20, 2018 · 6 comments
Closed

"Show again on startup" not saving setting #60

ElijahLynn opened this issue Nov 20, 2018 · 6 comments

Comments

@ElijahLynn
Copy link

After each restart, Gromit shows the help screen again, even after unchecking "show again on startup". I am using the Arch package if that makes a difference:

# Maintainer: Kyle Keen <keenerd@gmail.com>

pkgname=gromit-mpx-git
_gitname=gromit-mpx
pkgver=1.2.r7.g295a34b
pkgrel=1
pkgdesc="Desktop annotation tool. GTK3 multi-pointer variant of original gromit utility."
arch=('i686' 'x86_64')
url="https://github.com/bk138/gromit-mpx"
license=("GPL2")
depends=('libappindicator-gtk3')
makedepends=('cmake')
provides=('gromit')
conflicts=('gromit')
source=("git://github.com/bk138/gromit-mpx.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_gitname"
    git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
    cd "$srcdir/$_gitname"
    cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
    make
}

package() {
    cd "$srcdir/$_gitname"
    make DESTDIR="$pkgdir/" install
}

@ElijahLynn
Copy link
Author

I see in the gromit-mpx.ini it was last modified 2 days ago, I am going to manually change it and see if it sticks.

@ElijahLynn
Copy link
Author

K, that worked, so it seems somehow it isn't saving that setting on my system. I just verified again, by setting it to true in the GUI but it isn't modifying the ini file. The ini permissions have write access and gromit is running as my user for the write permissions.

@ElijahLynn
Copy link
Author

K, seems like what is happening is that it saves to the config/ini not upon "apply" but only after "apply" AND you exit the program (this is when the write happens). On my system, what was likely happening is that on a restart, it didn't get closed the right way, maybe it was a SIGTERM instead of a SIGINT?

The workaround for now is to manually edit ~/.config/gromit-mpx.ini or manually close it from the systray and then it will stick.

@bk138
Copy link
Owner

bk138 commented Nov 21, 2018

OK, thanks for the info.

@bk138 bk138 closed this as completed Nov 21, 2018
@jgrocha
Copy link

jgrocha commented Mar 14, 2020

Nice work @ElijahLynn
Same problem here, on Ubuntu 19.10. The .config/gromit-mpx.ini is written only if the user quits the application. With a regular reboot/shutdown, the config file is never written. Only after a few days, I decided to check what was going on.

@jfcaron3
Copy link

This is still a bug in 1.4.2 (in Linux Mint 21). The workaround of manually closing gromit-mpx at least once seems to have worked.

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

4 participants