Bug 362257 - spectacle.khotkeys: The specified file is empty or not a configuration file
Summary: spectacle.khotkeys: The specified file is empty or not a configuration file
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-25 16:57 UTC by Axel
Modified: 2016-05-20 16:11 UTC (History)
3 users (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 Axel 2016-04-25 16:57:21 UTC
spectacle.khotkeys cannot be added to Custom Shortcuts and also cannot be imported

Reproducible: Always
Comment 1 Axel 2016-04-25 17:24:06 UTC
--- spectacle.khotkeys.old      2016-04-26 00:23:19.863178745 +0700
+++ spectacle.khotkeys  2016-04-26 00:22:13.310370689 +0700
@@ -1,6 +1,6 @@
 [Main]
 ImportId=spectacle
-Version=3
+Version=2
 
 [Data]
 DataCount=1
Comment 2 Boudhayan Gupta 2016-04-25 21:30:04 UTC
I cannot repro this. Triagers?
Comment 3 Boudhayan Gupta 2016-04-25 21:52:43 UTC
You're not supposed to import the .khotkeys file.

The file is installed into /usr/share/khotkeys and the shortcuts are already in use. If you want to change them, you can do it in the KCM.
Comment 4 Axel 2016-04-26 03:28:55 UTC
when i create new user there is no spectacle shotcuts
Comment 5 Axel 2016-04-26 03:33:17 UTC
plasma-5.6.3
frameworks-5.21
apps-16.04.0
Comment 6 Axel 2016-04-26 03:36:30 UTC
(In reply to Axel from comment #4)
> when i create new user there is no spectacle shortcuts
or just delete ~/.config/khotkeys and re-login
Comment 7 Boudhayan Gupta 2016-04-26 17:51:03 UTC
This is not a bug. Please don't reopen.
Comment 8 Axel 2016-04-26 18:09:55 UTC
(In reply to Boudhayan Gupta from comment #7)
> This is not a bug. Please don't reopen.

then what is it ?
new user has no shortcuts for spectacle. the problem is in version which  must be 2 not 3.
Comment 9 Axel 2016-04-26 18:43:30 UTC
 ~ $ ls -n /usr/share/khotkeys/
итого 628
-rw-r--r-- 1 0 0   9764 апр 19 18:08 defaults.khotkeys
-rw-r--r-- 1 0 0 393702 апр 19 18:08 kde32b1.khotkeys
-rw-r--r-- 1 0 0 212986 апр 19 18:08 konqueror_gestures_kde321.khotkeys
-rw-r--r-- 1 0 0  15148 апр 13 23:54 spectacle.khotkeys

~ $ cat /usr/share/khotkeys/* | grep -i version
Version=2
Version=2
Version=2
Version=3
Comment 10 Axel 2016-05-04 08:19:18 UTC
could someone explain me why this is not a bug ?
Comment 11 Niels Ole Salscheider 2016-05-05 09:56:32 UTC
I can confirm that this is in fact a bug!

The source code of libkhotkeysprivate (Settings::isConfigFileValid to be precisely) clearly states that only version 2 is supported. Therefore, spectacle.khotkeys should be adjusted accordingly.
Comment 12 Boudhayan Gupta 2016-05-05 12:26:07 UTC
Hmm, that is correct. How does it work on my computer then?

I'll push a fix tonight
Comment 13 Johannes Huber 2016-05-17 08:59:56 UTC
> The source code of libkhotkeysprivate (Settings::isConfigFileValid to be precisely) clearly states that only version 2 is supported. Therefore, spectacle.khotkeys should be adjusted accordingly.

There is still no fix for this in 16.04.1.
Comment 14 Boudhayan Gupta 2016-05-20 16:11:15 UTC
Git commit df84ed53f92c844ca98ef3b0a8bc9b4308eee816 by Boudhayan Gupta.
Committed on 20/05/2016 at 16:10.
Pushed by bgupta into branch 'Applications/16.04'.

Fix invalid KHotkeys file version

M  +1    -1    desktop/spectacle.khotkeys

http://commits.kde.org/spectacle/df84ed53f92c844ca98ef3b0a8bc9b4308eee816
Comment 15 Boudhayan Gupta 2016-05-20 16:11:15 UTC
Git commit 760315e9754fc5372924f06bcf31d70f6fa5fcb5 by Boudhayan Gupta.
Committed on 20/05/2016 at 16:11.
Pushed by bgupta into branch 'master'.

Fix invalid KHotkeys file version

M  +1    -1    desktop/spectacle.khotkeys

http://commits.kde.org/spectacle/760315e9754fc5372924f06bcf31d70f6fa5fcb5