zhrexl / DrawOnYourScreen2

GNU General Public License v3.0
214 stars 20 forks source link

Any way to set default config? #12

Closed guidoenr closed 10 months ago

guidoenr commented 1 year ago

Hey guys! i'm using this amazing tool in my Kali Linux (cloned from github, not from gnome-extensions) and I would like to know if there is a way to setup a default settings when I start the tool. And I'm not able to access to the settings screen that the old version has (in gnome-extensions)

In this menu:

zhrexl commented 1 year ago

I'll close this issue as it is the same as #9. I'll be working on those changes for GNOME v43. I cant guarantee if I'll be able to backport it to older versions though.

zhrexl commented 1 year ago

I reopened this issue as you gave a better description than others. I'll be working on this now while I'm rethinking the UI.

mhewedy commented 11 months ago

For me, I just edited the file org.gnome.shell.extensions.draw-on-your-screen.gschema.xml and made the needed changes (in my case I changed the order of the Palette colors), then recompiled the file and it works!

compiled the file with the command:

glib-compile-schemas draw-on-your-screen2@zhrexl.github.com/schemas/
Bytezz commented 11 months ago

What about just remembering last used color and size? Saving them to a dconf every time user change them from menu.

zhrexl commented 11 months ago

Its already does it. If its not working check if the settings file was correctly installed.

Bytezz commented 11 months ago

I've tried setting color from pink to orange, disabling extension and re-enabling it. When I reopen drawing mode, the color is still the default pink. So it doesn't work for me.

I don't see any relevant setting inside gschema file. Where are these saved? Other settings are working well:

Dconf screenshot ![Dconf screenshot 1](https://github.com/zhrexl/DrawOnYourScreen2/assets/25850701/f64358bd-ef0d-45f1-9fb3-1a8672c1c489) ![Dconf screenshot 2](https://github.com/zhrexl/DrawOnYourScreen2/assets/25850701/bac05ef8-f1eb-4e24-a8ab-16e69ebb1934)