Bug 338156 - plasma-nm does not save settings anymore
Summary: plasma-nm does not save settings anymore
Status: RESOLVED NOT A BUG
Alias: None
Product: plasma-nm
Classification: Plasma
Component: general (show other bugs)
Version: 0.9.3.4
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Lukáš Tinkl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-09 19:47 UTC by gokcehankara
Modified: 2014-08-10 12:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gokcehankara 2014-08-09 19:47:49 UTC
Before the update plasma-nm was automatically saving passwords the first time I enter and now it doesn't. Also I can not change any settings in the connection editor as 'OK' button is always passive.

Reproducible: Always

Steps to Reproduce:
1.Click plasma-nm icon in the system tray and select settings (wrench button).
2.Select a connection and push edit.
3.Try to modify some settings.
4.Now the 'OK' button is not active, therefore can't really save any setting.
Actual Results:  
I wasn't able to change any settings.

Expected Results:  
I should be able to change settings.

This is pretty much a vanilla arch-linux 64-bit setup with `kdebase` package group installed. I had no problem last week before I updated my system so I doubt it's related to my configuration.
Comment 1 Jan Grulich 2014-08-10 08:26:56 UTC
Do you use KWallet or you store secrets into NetworkManager (your connection is available for all users)? Can you check whether our kded module is running? 

Regarding that you cannot save any settings. I guess you are trying to configure your wireless connection and because your secrets were not stored, therefore they are not loaded and the dialog doesn't allow you to save the configuration with an empty password.
Comment 2 gokcehankara 2014-08-10 11:58:18 UTC
I don't think I'm using kwallet but I'm new to kde anyway. I have now checked if kwallet is installed:

    $ pacman -Ss kwallet
    extra/kdeutils-kwalletmanager 4.13.3-1 (kde kdeutils)
        Wallet Management Tool
    extra/kwallet 5.1.0-1 (kf5) [installed]
        KWallet Framework
    ..

So as far as I understand kde4 version is not installed but kde5 version is automatically installed since it's part of kf5 group in arch. I tried to run the daemons as such (it seeems that daemons are the only kwallet executables I have):

    $ kwalletd
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated. please move it to /home/gokce/.config/fontconfig/fonts.conf manually
    kwalletd(799): Communication problem with  "kwalletd" , it probably crashed. 
    Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Message did not receive a reply (timeout by message bus)" " 

    $ kwalletd5
    "Using saveLocation /home/gokce/.local/share/kwalletd"
    Added Dir "/home/gokce/.local/share/kwalletd" for "" ["KWallet Directory Watcher"]
    kwalletd5 started
    Migration agent starting...
    old wallets were already migrated
    Migration agent stop.
    ^C

So the kde4 version is not working (not sure why it is installed anyways) and kde5 version showed me a migration dialog the first time I run. Now I'm able to save the password in the edit window (I don't think I was able to do that before). Also you were right about the password thing because now that I have saved the password I can change other settings as well. Lastly `kded` module also seems to be working:

    $ ps -A | grep kded
    345 ?        00:00:02 kded4

To sum up my current situation:

- When I try to connect to a new network it asks me the password and doesn't save it afterward. I need to manually save the password in the configuration window. When I do that it doesn't ask me the password anymore each time I try to connect.
- If the password is not saved (empty in the configuration window) it doesn't let me change any settings. When I save the password everything is ok.

Workaround for those having the same problem:

1. (Not really sure if this step is necessary) Run `kwalletd5` from the command line and choose do not migrate.
2. Open the settings for your connection and save the password there.
3. Now it shouldn't ask you the password each time you connect and you should be able to change other settings as well.
4. Currently I don't know how to save the password automatically when you first enter it while connecting a new network. I would try to install and play with kwallet.

As for this bug itself, it seems like an archlinux or kwallet bug so you can close it here I guess.