Bug 22518

Summary: ksnapshot fails under GNOME3
Product: Mageia Reporter: Franz Holzinger <flink>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: davidwhodgins, geiger.david68210, j.alberto.vc
Version: 6Keywords: IN_RELEASENOTES6
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: spectacle-16.12.3-1.mga6.x86_64 CVE:
Status comment:

Description Franz Holzinger 2018-02-04 08:05:38 CET
Description of problem:

Mageia6 GNOME

I want to start ksnapshot. So I installed it and it is not there.


[franz@localhost ~]$ sudo urpmi ksnapshot 
[sudo] Mot de passe de franz : 
Pour satisfaire les dépendances, les paquetages suivants vont être installés :
  Paquetage                      Version      Révision      Arch    
(média « Core Release »)
  khotkeys                       5.8.7        1.mga6        x86_64  
  lib64kf5declarative5           5.32.0       1.mga6        x86_64  
  lib64kf5kdelibs4support5       5.32.0       2.mga6        x86_64  
  lib64kf5kipi5                  16.12.3      1.mga6        x86_64  
  lib64khotkeysprivate5          5.8.7        1.mga6        x86_64  
  lib64kworkspace5               5.8.7        6.mga6        x86_64  
  lib64xcb-util-cursor0          0.1.3        1.mga6        x86_64  
  spectacle                      16.12.3      1.mga6        x86_64  
un espace additionnel de 6.4Mo sera utilisé.
2.5Mo de paquets seront récupérés.
Procéder à l'installation des 8 paquetages ? (O/n) o


    $MIRRORLIST: media/core/release/lib64xcb-util-cursor0-0.1.3-1.mga6.x86_64.rpm
    $MIRRORLIST: media/core/release/lib64kf5declarative5-5.32.0-1.mga6.x86_64.rpm
    $MIRRORLIST: media/core/release/khotkeys-5.8.7-1.mga6.x86_64.rpm        
    $MIRRORLIST: media/core/release/lib64kworkspace5-5.8.7-6.mga6.x86_64.rpm
    $MIRRORLIST: media/core/release/spectacle-16.12.3-1.mga6.x86_64.rpm     
    $MIRRORLIST: media/core/release/lib64kf5kipi5-16.12.3-1.mga6.x86_64.rpm 
    $MIRRORLIST: media/core/release/lib64khotkeysprivate5-5.8.7-1.mga6.x86_64.rpm
    $MIRRORLIST: media/core/release/lib64kf5kdelibs4support5-5.32.0-2.mga6.x86_64.rpm
installation de lib64xcb-util-cursor0-0.1.3-1.mga6.x86_64.rpm lib64kf5declarative5-5.32.0-1.mga6.x86_64.rpm khotkeys-5.8.7-1.mga6.x86_64.rpm spectacle-16.12.3-1.mga6.x86_64.rpm lib64kworkspace5-5.8.7-6.mga6.x86_64.rpm lib64kf5kdelibs4support5-5.32.0-2.mga6.x86_64.rpm lib64kf5kipi5-16.12.3-1.mga6.x86_64.rpm lib64khotkeysprivate5-5.8.7-1.mga6.x86_64.rpm depuis /var/cache/urpmi/rpms
Préparation...                   ##########################################
      1/8: lib64kf5kdelibs4support5
                                 ##########################################
      2/8: lib64kf5kipi5         ##########################################
      3/8: lib64kworkspace5      ##########################################
      4/8: lib64khotkeysprivate5 ##########################################
      5/8: khotkeys              ##########################################
      6/8: lib64kf5declarative5  ##########################################
      7/8: lib64xcb-util-cursor0 ##########################################
      8/8: spectacle             ##########################################
[franz@localhost ~]$ ksnapshot &
[1] 19731
bash: ksnapshot : commande introuvable
[1]+  Termine 127             ksnapshot
[franz@localhost ~]$ ksnapshot &
[1] 19753
bash: ksnapshot : commande introuvable
[1]+  Termine 127             ksnapshot
[franz@localhost ~]$ ksnapshot &
[1] 19770
bash: ksnapshot : commande introuvable
[1]+  Termine 127             ksnapshot
[franz@localhost ~]$ ksnapshot 
bash: ksnapshot : commande introuvable
[franz@localhost ~]$ which ksnapshot
which: no ksnapshot in (/bin:/usr/bin:/usr/bin:/usr/ucb:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/franz/bin)
[franz@localhost ~]$ sudo urpmi ksnapshot 
Le paquetage spectacle-16.12.3-1.mga6.x86_64 est déjà installé
[franz@localhost ~]$ ksnapshot 
bash: ksnapshot : commande introuvable
[franz@localhost ~]$ rpm -ql | grep  ksnapshot 
rpm: aucun argument fournit à la requête
[franz@localhost ~]$ rpm -qa | grep  ksnapshot 
[franz@localhost ~]$ rpm -qa   ksnapshot 
[franz@localhost ~]$
Comment 1 David GEIGER 2018-02-04 08:43:01 CET
ksnapshot no more exist and it is replaced now by spectacle so you should use:

$ spectacle


Closed as INVALID.

Resolution: (none) => INVALID
Status: NEW => RESOLVED
CC: (none) => geiger.david68210

Comment 2 Franz Holzinger 2018-02-05 14:58:18 CET
But why did it let me install ksnapshot when it does not exist any more. This is weird. It should have told me that a "urpmi ksnapshot" gives no package and it downloads no rpm!
Comment 3 katnatek 2018-02-08 00:18:50 CET
(In reply to Franz Holzinger from comment #2)
> But why did it let me install ksnapshot when it does not exist any more.
> This is weird. It should have told me that a "urpmi ksnapshot" gives no
> package and it downloads no rpm!

I thik for simplificate the MGA 5 -> MGA 6 upgrading process
But is something that must have a section in the _Release Notes

By the way is possible that you can't use spectacle as must 
https://forums.mageia.org/en/viewtopic.php?f=7&t=12189

CC: (none) => j.alberto.vc

Comment 4 Dave Hodgins 2018-02-08 19:40:19 CET
In addition to allowing specific package names, the urpmi command allows it
to search for packages that provide a given feature ...
$ urpmq --provides spectacle
appdata()
appdata(org.kde.spectacle.appdata.xml)
application()
application(org.kde.spectacle.desktop)
ksnapshot[== 16.12.3-1.mga6]
ksnapshot-handbook[== 16.12.3-1.mga6]
spectacle[== 16.12.3-1.mga6]
spectacle(x86-64)[== 16.12.3-1.mga6]
$ urpmq --whatprovides ksnapshot
spectacle

It's done this way to ensure spectacle will replace ksnapshot when upgrading to
the new version. Having the spectacle package be selected when the user
specifically asks for ksnapshot is a side effect. Whether the side effect is
a good thing or not is debatable.

Most of the time ksnapshot/spectacle is run by pressing the print screen in
which case the name change is transparent, so most users don't even know the
name of the command/package.

CC: (none) => davidwhodgins

Comment 5 Franz Holzinger 2018-02-08 20:06:18 CET
It would help a lot if a execution of "ksnapshot" from a command shell would give a hint that "spectacle" must be used from now on.
Comment 6 katnatek 2018-02-10 00:42:52 CET
I add a note https://wiki.mageia.org/en/Mageia_6_Release_Notes#spectacle_replace_ksnapshot_as_screenshot_tool

Keywords: (none) => IN_RELEASENOTES6