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

"preferences" window is not available #883

Open
3 of 16 tasks
IIVQ opened this issue Jul 17, 2023 · 8 comments
Open
3 of 16 tasks

"preferences" window is not available #883

IIVQ opened this issue Jul 17, 2023 · 8 comments
Labels
invalid Not a valid AutoKey Issue user support Requests for support - best handled on our forums

Comments

@IIVQ
Copy link

IIVQ commented Jul 17, 2023

AutoKey is a Xorg application and will not function in a Wayland session. Do you use Xorg (X11) or Wayland?

Xorg

Has this issue already been reported?

  • I have searched through the existing issues.

Is this a question rather than an issue?

  • This is not a question.

What type of issue is this?

UI/Usability

Choose one or more terms that describe this issue:

  • autokey triggers
  • autokey-gtk
  • autokey-qt
  • beta
  • bug
  • critical
  • development
  • documentation
  • enhancement
  • installation/configuration
  • phrase expansion
  • scripting
  • technical debt
  • user interface

Other terms that describe this issue if not provided above:

No response

Which Linux distribution did you use?

Operating System: Kubuntu 22.10
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.19.0-46-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700 CPU @ 3.40GHz
Memory: 15,4 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 530
Manufacturer: MSI
Product Name: MS-7982
System Version: 1.0

Which AutoKey GUI did you use?

Qt

Which AutoKey version did you use?

0.95.10

How did you install AutoKey?

sudo apt-get install autokey-qt

Can you briefly describe the issue?

Autokey automatically starts, I don't want this. Upon googling I find to disable it in the "preferences" which should be under edit.

The "Edit" menu has no preferences entry:
image

As an aside: I don't understand how autokey autostarts. It is not in ~/.config/autostart:

iivq@Betsy:~/.config/autostart$ ls -la
total 16
drwxrwxr-x  2 tijmen tijmen 4096 Apr  3  2021 .
drwxr-xr-x 57 tijmen tijmen 4096 Jul 17 18:49 ..
-rw-rw-r--  1 tijmen tijmen  309 Jul 17 09:48 dropbox.desktop
-rw-rw-r--  1 tijmen tijmen  192 Jun 30  2020 remmina-applet.desktop

Can the issue be reproduced?

Always

What are the steps to reproduce the issue?

  1. Open Autokey (via the "A" in the system tray)
  2. Go to menu -> Edit
  3. No preferences item

What should have happened?

I expected a preferences window, like the one shown in #149

What actually happened?

There is no preferences menu

Do you have screenshots?

No response

Can you provide the output of the AutoKey command?

No response

Anything else?

No response

@josephj11
Copy link
Contributor

josephj11 commented Jul 17, 2023

Welcome to the AutoKey community, IIVQ!

Google isn't always your friend... :)

It's under Settings->Configure AutoKey->Automatically start AutoKey after login.

Note that some desktop environments, notably, KDE, will notice that AutoKey was running when they shutdown and will restore it as part of their session restore after they are restarted. There is usually a list of applications you can tell it to ignore when restoring a session or you can tell it not to restore at all or to restore from a static saved session.

On my old KDE system, the file is

$HOME/.config/autostart/autokey.desktop

I also have a custom startup script that doesn't involve AutoKey

$HOME/.config/autostart-scripts/mystart

Because AutoKey can be started by session restore and by the above .desktop file, it is sometimes necessary to disable one of the two methods so it doesn't get started twice and issue an error message.

This is really more of a support question than a valid issue. Please see the boiler plate below on the best ways to get AutoKey support.


BTW: Whenever you have a question (as opposed to an issue) it's better to post it on our list or on Gitter. The list is more user oriented whereas more technical questions will get a better answer on Gitter.

Both of these venues have a number of active users, so you are likely to get more, better, and faster answers on them than here on GitHub where only our very busy developers and a few users see the posts. We also prefer to have the developers developing rather than taking time to answer questions and manage issues that the user community could handle for them.

New users are encouraged to spend some time browsing through our wiki. There are a number of helpful articles there as well as many example AutoKey scripts.


I notice that you are not running 0.96.0, our current release. This release contains a lot of bug fixes and a few new features. We highly encourage users to upgrade as soon as possible. You can find it here and instructions are here.

The installation is pretty easy to do and we also provide .deb packages for users of Debian and Debian-derived distributions (Ubuntu, Mint, ...).

@josephj11 josephj11 added invalid Not a valid AutoKey Issue user support Requests for support - best handled on our forums labels Jul 17, 2023
@Elliria
Copy link
Contributor

Elliria commented Jul 17, 2023

Note that some desktop environments, notably, KDE, will notice that AutoKey was running when they shutdown and will restore it as part of their session restore after they are restarted. There is usually a list of applications you can tell it to ignore when restoring a session or you can tell it not to restore at all or to restore from a static saved session.

This is somebody's idea of "good" default behavior in Kubuntu. For my sanity's sake, one of the first things I do after the operating system is installed is to make it boot to an empty session.

For Kubuntu: Application menu or Application Launcher or Application DashboardSettingsSystem SettingsStartup and ShutdownDesktop Session → Change the "When logging in" option to "Start with an empty session" or "Restore manually saved session".

@josephj11
Copy link
Contributor

@Elliria I prefer the session restore. In fact, it doesn't do enough for me and I have a custom bash script that makes sure everything I want running gets started and is on the desired virtual desktop. It has a switch that disables it for when I'm doing repeated boots, etc.

That's what's really cool about Linux (and, especially, KDE). We can each have it our way and change it whenever we want to.

@Elliria
Copy link
Contributor

Elliria commented Jul 18, 2023

Yeah, I figured I'd include "Restore manually saved session" in the steps for just such a scenario. For the time being, an empty session works for me, but if I eventually end up having stuff that needs to be run on boot or that's in specific places, then that option would also be useful for me.

@IIVQ
Copy link
Author

IIVQ commented Jul 18, 2023

@josephj11 (and others)
All the discussions of what KDE's good behaviour for saving Desktop states, autokey is not in ~/.config/autostart.

Thx for helping me. I also checked the "settings -> configure autokey" menu. Repeatedly. And wanted to upload images there is no "Automatically start Autokey" option.

But it is there ... And somehow I completely missed it ... multiple times (because I checked this a few weeks ago as well).
I am on antibiotics, didn't realize I was this far off.

Thx for helping me. I'll go sit in the corner of shame for a while now.

image

Then a very, very low-priority suggestion: make the "Automatically start AutoKey after Login"-button left-aligned, as the 5 other buttons are...

@josephj11
Copy link
Contributor

Go take some prebiotics and probiotics and get your second brain back up to speed. LOL - Not medical advice.

Left-aligning that option makes sense to me if we're in that code for something else. It needs its own enhancement issue if you want us to remember to do it.

For now, you can close this issue as completed.

@Elliria
Copy link
Contributor

Elliria commented Jul 18, 2023

If you look at each of the sections in that screenshot, they all have a title except for the Auto-start section. The titles are all centered. The checkbox line in the Auto-start section is centered, so it's being treated as a title. This should be easily remedied by adding a title.

I poked around in the code and it looks like the generalsettings.ui file is the culprit.

Each section in the screenshot above is a widget.If you do a search for title on that page, you'll see that each of the groupbox widgets have a title line with a title that corresponds to those you see in the screenshot above, but the autostart_groupbox widget doesn't have a proper title. It's using a title element as the text for the checkbox (see line 114 through line 116 on that page), which is being detected by AutoKey as the title for that widget, so AutoKey is helping us out by centering it for us.

I'll bet that changing title to text on that line and inserting a proper title element at the beginning of the autostart_groupbox widget will take care of it.

I'm going to go try that in a VM and see. If not, then someone more experienced can take a look at these notes and will know how to fix it.

What should we use as the title for that section?

  • Automatic Start
  • Auto-start
  • Start-up
  • Startup
  • Start
  • etc...?

Update

I've now tried and tried and am not able to edit the code in the generalsettings.ui file. This will need to be a "Help wanted" issue where someone more knowledgeable than me takes up the torch and runs with it. Hopefully the information I've provided here will be of some use.

@josephj11
Copy link
Contributor

I like Automatic Start, but I'd also like a blank title if that works to fix the justification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Not a valid AutoKey Issue user support Requests for support - best handled on our forums
Projects
None yet
Development

No branches or pull requests

3 participants