Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

Save New profile pop up after reboot #28

Closed
prog-amateur opened this issue Oct 6, 2018 · 23 comments
Closed

Save New profile pop up after reboot #28

prog-amateur opened this issue Oct 6, 2018 · 23 comments
Labels
bug Something isn't working

Comments

@prog-amateur
Copy link

Hello, thank you for you kind support about this issue :
I have made a profile, then saved it. I have also put is as "Default profile" and also ticked the "auto-load" option. However, when I reboot the programm or my computer, I have this pop-up "Save profile changes ?".
Because despite the fact that I have saved my profile, the program load the "New profile" at start.

How to solve this issue please ? Thank you very much for you help.

@juliagoda
Copy link
Owner

I understand. I will be fixing it from tomorrow.

@prog-amateur
Copy link
Author

Thank you very much, please feel free to confirm when you succeed, and also to tell me how to fix it (to update, or compile new release from scratch).
Just for information, I am on Ubuntu 18.04.

juliagoda pushed a commit that referenced this issue Oct 8, 2018
@juliagoda
Copy link
Owner

Is it ok now?

@prog-amateur
Copy link
Author

@juliagoda Thank you for your help, but I don't know how to update your changes.
I have tried to replace the files and start the cmake .. make sudo make install but I have error messages. I am sure I did it wrong.
Please, could you tell me how to update, then I will do and feedback. Sorry for disturbing, and thank you very much.

@sirlucjan
Copy link
Contributor

Paste logs with errors.

@prog-amateur
Copy link
Author

prog-amateur commented Oct 8, 2018

I have downloaded the git into zip file, and have tried to compile again.
Everything is OK until sudo make install :

[100%] Built target antimicro
Install the project...
-- Install configuration: ""
-- Installing: /usr/bin/antimicro
-- Installing: /usr/share/pixmaps/antimicro.png
-- Installing: /usr/share/applications/antimicro.desktop
-- Installing: /usr/share/mime/packages/antimicro.xml
Scanning dependencies of target manpage
Built target manpage
Scanning dependencies of target appdata
/bin/sh: 1: itstool: not found
other/appdata/CMakeFiles/appdata.dir/build.make:57: recipe for target 'appdata' failed
make[4]: *** [appdata] Error 127
CMakeFiles/Makefile2:255: recipe for target 'other/appdata/CMakeFiles/appdata.dir/all' failed
make[3]: *** [other/appdata/CMakeFiles/appdata.dir/all] Error 2
CMakeFiles/Makefile2:262: recipe for target 'other/appdata/CMakeFiles/appdata.dir/rule' failed
make[2]: *** [other/appdata/CMakeFiles/appdata.dir/rule] Error 2
Makefile:216: recipe for target 'appdata' failed
make[1]: *** [appdata] Error 2
Scanning dependencies of target updateqm
Built target updateqm
-- Installing: /usr/share/man/man1/antimicro.1.gz
CMake Error at other/appdata/cmake_install.cmake:41 (file):
  file INSTALL cannot find
  "/home/minitel/Documents/antimicro2/build/other/appdata/antimicro.appdata.xml".
Call Stack (most recent call first):
  other/cmake_install.cmake:46 (include)
  cmake_install.cmake:83 (include)


Makefile:117: recipe for target 'install' failed
make: *** [install] Error 1

FYI : the normal logfile with errors (from the app) is empty

@prog-amateur
Copy link
Author

If you don't know how to help, at least, could you explain how to uninstall please ? Then I will try to recompile from scratch. Thank you

@sirlucjan
Copy link
Contributor

itstool: not found

You should install itstool.

@juliagoda
Copy link
Owner

If you don't know how to help, at least, could you ...

Ok, I've just read your message. It's not that I didn't know it because I wasn't even here. I was busy. I have my private life yet, people, so please calm down.

@juliagoda juliagoda added the bug Something isn't working label Oct 8, 2018
@prog-amateur
Copy link
Author

prog-amateur commented Oct 8, 2018

I have my private life yet, people, so please calm down.

I think it is a misunderstanding (I think due to translation), so sorry please don't take it personal. I mean (not in an aggressive way) : if you don't know how to solve this issue, maybe I can try to remove Antimicro (and please tell me how to do that), then I will reinstall from scratch. Then maybe it will work.

@sirlucjan : I will install itstool and feedback

Thank you both

EDIT : I have installed itstool, now I have no error by doing cmake .. make sudo make install however, the bug is still there.

@juliagoda
Copy link
Owner

juliagoda commented Oct 9, 2018

Does the problem disappear, when you uncheck first row in "Active" column in Auto Profile option in Settings? Or when you choose the first row -> click on "Edit" button -> Choose your default profile from your system -> and check finally the row as "Active"?
I have noticed that it has something to do with AutoProfileWatcher, because when the row is checked, the profile is not edited in the first row and the tray icon is right-clicked, you can notice the moment, when it's changing to "New" profile. Is it all true in your case too?

@juliagoda
Copy link
Owner

As I can see now it's even logical, because when you don't set default profile (editing it) for the first row, the program thinks that empty item in column named "Profile" means using of new profile. But I am not sure, if it's the same behaviour in your case.

@prog-amateur
Copy link
Author

Does the problem disappear, when you uncheck first row in "Active" column in Auto Profile option in Settings? Or when you choose the first row -> click on "Edit" button -> Choose your default profile from your system -> and check finally the row as "Active"?
I have noticed that it has something to do with AutoProfileWatcher, because when the row is checked, the profile is not edited in the first row and the tray icon is right-clicked, you can notice the moment, when it's changing to "New" profile. Is it all true in your case too?

So I have just tried these steps without success. Does it work on your computer ?

As I can see now it's even logical, because when you don't set default profile (editing it) for the first row, the program thinks that empty item in column named "Profile" means using of new profile. But I am not sure, if it's the same behaviour in your case.

Yes, in my case, I can't even delete the first row. Just impossible, no matter what I do, this one, is on Default with no program for it. I have succeed anyway to add other default profiles for gnome-terminal-server (used for emulationstation), but no matter I make it active or not, no matter the order, this does not change.
However, I have noticed something : when I open Antimicro, I have the popup message in the dialbox, and I have another window saying that no joystick has been found, and that I should update the devices. When I try to update, the program crashes.

It seems to be a complex issue ^^

@juliagoda
Copy link
Owner

juliagoda commented Oct 9, 2018

So I have just tried these steps without success. Does it work on your computer ?

Yes, it works on my computer. Those problems appear only when I have a checked first row and when it's not edited (item for "Profile" column is empty). Btw you can't delete the first row, that's the way it was created by somebody earlier. You can just uncheck the option in the first row, because autoload of last profile works anyway (of course when checked in settings). Could you again make "git pull" to add new changes to your local files and rebuild it? It's strange because I don't have any of those problems anymore.

I will check it on another computer.

@juliagoda
Copy link
Owner

juliagoda commented Oct 9, 2018

Well, on another system it's the same. It's just like in my case.

2018-10-10-000909_1366x768_scrot

@prog-amateur
Copy link
Author

So, I have git clone your files and build them again (git pull does nothing in my side)

In my case I have kept the settings like this :
20-43-07

Then I have tested many scenarios :
20-43-24
20-43-40
20-43-51

However, each time (after each change) I close, then re-open AntiMicro, I have this :
20-42-03

@juliagoda
Copy link
Owner

git pull does nothing in my side

  1. Do you use my version from last commit from master branch? (git clone -b master https://github.com/juliagoda/antimicro.git)
  2. Do you use at least Qt5 with version greater or equal to 5.10? If not, I can help you with that.

If anyone else has the same problem, feel free to let me know here

@juliagoda juliagoda reopened this Oct 10, 2018
@prog-amateur
Copy link
Author

Hello, I am sorry, I did not have time to test. It is possible that I don't use the last commit (because I have just used git clone https://github.com/juliagoda/antimicro.git) I will try to confirm as soon as possible.

juliagoda pushed a commit that referenced this issue Oct 12, 2018
@juliagoda
Copy link
Owner

git clone [link] is equal to git clone -b master [link], because the default branch on this site is master. I hope that this time I've found a real solution (emitting of propertyUpdated() signals too many times) , not temporary (using of disconnectCheckUnsavedEvent() and reconnectCheckUnsavedEvent() in JoyTabWidget::loadSetting method)

@AdamKane41
Copy link
Contributor

last version of antimicro from juliagoda repo also gave me the pop up window on antimicro open and quit..looked like this:
screenshot from 2018-10-15 10-29-45

but now with latest master from juliagoda (october 15) this anoying window no longer pop ups on antimicro open and quit.

I consider this issue fixed on my machine now. thanks
peace!

@juliagoda
Copy link
Owner

Thanks for your response

@prog-amateur
Copy link
Author

This is a knightmare. I still have the issue. I have also installed QT 5.11.2 but when I do qmake -v, it gives me Qt version 4 (strange).
In any case, please do you know how to uninstall everything ? I am sure I did something wrong, so I would like to reinstall everything from scratch properly.
Thank you very much

@juliagoda
Copy link
Owner

The command below will remove qt4 and qt4 deps. Try this, because you can still have remains of such packages in your system.

sudo apt purge qt4*

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants