Re: [opensuse-factory] Device Notifier - before Plasma and after

On Thursday 04 Jun 2015 13:37:00 Wolfgang Bauer wrote:
Do you actually have a "Device Notifier" in your system tray? Yes, but its one of the "hidden" icons
Does something popup when you connect USB storage devices? Only with a USB key and with not a camera
There are a lot of links in /usr/share/solid/actions for k3b and gwenview which seem to be linked to itself, i tried to "cat" one of them but it couldn;t resolve it due to too many levels of symbolic links, they all have mod levels of "lrwxrwxrwx". If i put a DVD or CD into the tray, nothing pops up e.g. k3b, and its not visible in Dolphin, I expected it to appear somewhere in the Places section.

Am Donnerstag, 4. Juni 2015, 14:01:00 schrieb ianseeks:
it seemed to be under KDE4 - what did pop up show me the device action options, i thought it was the device notifier?
Yes. But it should pop up even if there is no device action option I think. Although for storage devices there are some default actions in any case. As you cannot mount your camera if it doesn't present itself as storage device, that might not apply in this case though. Don't know, all camera's I used show up as standard storage device, just like an SD card reader.
Does something popup when you connect USB storage devices?
Only with a USB key and with not a camera
So your camera is not a storage device. You probably have to access it via MTP.
Well, for a (MTP) camera, digikam's action is the only one available I suppose.
Good.
No, those are not "linked to itself". But a link in KF5's location (that points to the actual file in KDE4's location) has been added to many openSUSE KDE4 application packages to make them show up in Plasma5. This has not been done for the digikam package yet for some reason, maybe an oversight. Inserting a CD/DVD should make the device notifier popup in any case though, and it should be shown in the Places panel. Your dolphin is still KDE4 based anyway, so at least that problem is definitely unrelated to Plasma5.
That was just a suggestion.
Thanks for the info. Do you think these actions should be automatically transferred when an update from KDE4 to Plasma is done?
No. /usr/share/ normally only contains files installed by packages anyway, there's no "automatic transfer" needed nor does it make sense. The user settings in ~/.kde4/share/apps/solid/ are a different matter though, I'm not sure whether they are migrated or not, but I'd rather think not. Although most users probably won't have any at all I guess... If you install the KF5 based digikam version (hasn't been released yet, so it is only available from KDE:Unstable:Extra), it will install the action to the correct (for KF5) directory anyway. Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Thursday 04 Jun 2015 17:55:05 Wolfgang Bauer wrote:
If i do a "readlink <directory>/filename" it just returns the filename, it doesn't show a target directory name. I have now renamed the "/usr/share/solid/actions" directory, created a new "/usr/share/solid/actions" directory and copied all the files from the "/usr/share/kde4/apps/solid/actions/" into the new directory. The "Device Notifier" now recognises the CD-R and DVDs.
Kind Regards, Wolfgang
Looks like the lining of the "/usr/share/solid/actions" files got all screwed up during the when i installed Plasma 5.3 over KDE4. Thanks for your help as always. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am Donnerstag, 4. Juni 2015, 18:23:39 schrieb ianseeks:
I don't think there should be any change between KDE4 and Plasma5 regarding this. But again, I never used such a camera. Check that you have kio_ktp5 installed. IIUYC, you copied KDE4's solid_mtp.desktop file to Plasma5, that doesn't work, as you still miss the mtp: kio slave.
Why? You replaced the KF5/Plasma5 files with KDE4's now. Probably not a good idea. And you'll get the originals back when installing updates. An Audio CD is indeed not shown if there are no device actions defined. The Packman k3b package doesn't symlink them to /usr/share/solid/actions/, so they are missing in Plasma5, the standard k3b package in Tumbleweed does though. So install that, or symlink/copy the files manually. A data CD does show up fine though, as you can "Open with file manager" (or mount it) in any case. But again, I think that KDE4 probably had exactly the same behavior. I have yet to try it though...
Ok, it doesn't popup if it is hidden. But how should it if it is hidden? If there are devices available, it should not be hidden though. Did you hide it yourself in the system tray settings? Why not just set it to "Auto"? But again, KF5 solid device actions should not really have an influence on dolphin, in particular the KDE4 version.
Looks like the lining of the "/usr/share/solid/actions" files got all screwed up during the when i installed Plasma 5.3 over KDE4.
Hm? You did not install Plasma5.3's /usr/share/solid/actions file "over" KDE4's, as they are in completely different directories. But I don't fully understand what you mean with that sentence anyway... Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am Donnerstag, 4. Juni 2015, 21:59:04 schrieb Wolfgang Bauer:
Sorrym kio_mtp5 doesn't exist any more. The mtp kio slave is part of kio- extras5 now, which should be installed in any case because it is required by plasma5-workspace. Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Thursday 04 Jun 2015 23:16:00 Wolfgang Bauer wrote:
Thanks, was just about to check that.
Kind Regards, Wolfgang
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Thursday 04 Jun 2015 21:59:04 Wolfgang Bauer wrote:
Kind Regards, Wolfgang
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am Donnerstag, 4. Juni 2015, 22:20:18 schrieb ianseeks:
Yes, but the KDE4 camera config module only has effect for KDE4 applications. Dolphin and digikam still are KDE4 based though. And which file do you mean? /usr/share/solid/actions/solid_mtp.desktop is in the package kio-extras5 as I wrote already, the KDE4 version is in kio_mtp, which you should have installed if you want to use MTP with KDE4 applications.
Do your symlinks point to themselves? They should point to the KDE4 version of course, e.g /usr/share/solid/digikam-opencamera.desktop should point to /usr/share/kde4/apps/solid/digikam-opencamera.desktop. Or just copy the missing files.
But why not leave the originals there in the first place then? Also rpm has problems with replacing symlinks by files or vice-versa in certain circumstances.
The Audio CD does now work.
Probably because you copied the K3b action files.
No. The "Open with file manager" action is part of plasma5-workspace itself.
There is no "linking of the /usr/share/solid/actions files" either. But some KDE4 packages (like TW's k3b) do create symlinks so their actions show up in Plasma5 as well. And KF5/Plasma5 packages do install their action files to the correct directories (for Plasma5) anyway.
So? That's what's supposed to work. Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Friday 05 Jun 2015 00:09:28 Wolfgang Bauer wrote:
yes, i was trying to explain what i meant in the sentence you didn't understand.
Kind Regards, Wolfgang
Thanks again for your help. This issue all seems resolved for me now but it would be nice to find out how the symlinks got into that state of "too many levels of symbolic links". -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am Freitag, 5. Juni 2015, 11:20:57 schrieb ianseeks:
Yes, the solid_mtp.desktop is the file. i don't have the kio_mtp file in either directory.
No, but you should have /usr/lib64/qt5/plugins/kf5/kio/mtp.so and /usr/share/kservices5/mtp.protocol, those are necessary for the mtp: protocol to work that's used by solid_mtp.desktop. But both are part of kio-extras5 just like solid_mtp.desktop.
Yes, that's a link that points to itself. You made a mistake there. If you try to follow that link, you enter an endless recursion...
I kept a copy of the folder with the links in so i can copy them back if i get some problems.
As mentioned, updates will "copy them back" anyway. I just see no point in replacing them with the KDE4 versions. It would have been sufficient to only copy those that are missing.
Again, you created a symlink that points to itself, which ends in an unlimited recursion of course. The symlink in /usr/share/solid/actions/ should instead point to the file in /usr/share/kde4/solid/action/. E.g. run: ln -s /usr/share/kde4/solid/action/digikam-opencamera.desktop /usr/share/solid/actions Or just use Dolphin (Superuser Mode) to create the symlinks. If you drag'n'drop a file to a different folder, it asks you whether to copy the file, move it, or create a symlink. Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Friday 05 Jun 2015 13:06:52 Wolfgang Bauer wrote:
I didn't make any mistake as I didn't create those symlinks, they were there already thats why i suggested it must have happened during the upgrade to Plasma 5.3 if that is the point when the symlinks are created.
I didn't create the symlinks. I didn't know the '/usr/share/solid/actions/" directory existed until you told me about it.
Kind Regards, Wolfgang
thanks -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am Freitag, 5. Juni 2015, 13:18:45 schrieb ianseeks:
Ok, I understood you created the symlinks yourself, sorry. But again, nothing is "migrated" during the upgrade. Such symlinks have been added to some KDE4 based packages to make their device actions appear in Plasma5 as well. Maybe there's a "bug" in one of those packages. Do you remember which symlinks were broken exactly? You mentioned k3b, were there others as well? Although, on a quick look I cannot see anything wrong with the k3b package regarding this...
I'll create them as you suggest over the next chance i get.
Well, copying over the files is fine as well. Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am Freitag, 5. Juni 2015, 14:47:32 schrieb Wolfgang Bauer:
Just to confirm: I had a look in a fresh Tumbleweed installation inside VirtualBox, and those symlinks are indeed broken, at least for k3b and gwenview. At the moment I have no idea why though. As mentioned, the commands in the specfile that create those symlinks look ok... Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Friday 05 Jun 2015 15:15:17 Wolfgang Bauer wrote:
Thanks. i wonder if all Tumbleweed/KDE4 users that upgraded to Plasma 5.3 have the same issue but haven't discovered it yet. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am Freitag, 5. Juni 2015, 16:06:45 schrieb ianseeks:
Thanks. i wonder if all Tumbleweed/KDE4 users that upgraded to Plasma 5.3 have the same issue but haven't discovered it yet.
Yes. And the same issue exists on fresh installations too. As I wrote, nothing is migrated. Those packages do contain broken symlinks, so it doesn't matter whether you do a fresh installation or upgrade. But it should be fixed as soon as my submit requests are accepted (but it will still take a while until the fixed packages actually arrive in the Tumbleweed repo). Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Friday 05 Jun 2015 17:20:05 Wolfgang Bauer wrote:
Great. Thanks -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am Freitag, 5. Juni 2015, 15:15:17 schrieb Wolfgang Bauer:
At the moment I have no idea why though. As mentioned, the commands in the specfile that create those symlinks look ok...
Well, it turned out that those "ln" commands were not quite correct after all. I submitted fixed k3b and gwenview packages now. (although gwenview probably should be switched to the KF5 based 15.04.2 release anyway, that's missing in KDE:Applications and Tumbleweed so far...) And such a symlink should probably be added to digikam as well. If you see broken links in other packages, please report it. As I understand it, you still have the old /usr/share/solid/actions/ folder, so please have a look. Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Friday 05 June 2015 17:10:01 Wolfgang Bauer wrote:
Well, Gwenview wasn't switched because of a simple reasons and that is lack of functionality. Yes, the advantage is that it is KF5 based but that is about it. Quite some functionality is missing and also the integration with kipi- plugins is lacking. Hopefully once kipi-plugins becomes KF5 based, we would see some enhancements to Gwevnewi. Regards Raymond -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am Freitag, 5. Juni 2015, 19:27:55 schrieb Raymond Wooninck:
Well, Gwenview wasn't switched because of a simple reasons and that is lack of functionality.
Ok. Thanks for the explanation. I have to admit, although I have both installed, I haven't really compared them in detail yet. And I didn't use either of them intensively recently. Just for the occasional display of some picture file... Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Friday 05 Jun 2015 14:47:32 Wolfgang Bauer wrote:
Kind Regards, Wolfgang
Will this be investigated and fixed now or does a bug report have to be created? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am Donnerstag, 4. Juni 2015, 14:01:00 schrieb ianseeks:
it seemed to be under KDE4 - what did pop up show me the device action options, i thought it was the device notifier?
Yes. But it should pop up even if there is no device action option I think. Although for storage devices there are some default actions in any case. As you cannot mount your camera if it doesn't present itself as storage device, that might not apply in this case though. Don't know, all camera's I used show up as standard storage device, just like an SD card reader.
Does something popup when you connect USB storage devices?
Only with a USB key and with not a camera
So your camera is not a storage device. You probably have to access it via MTP.
Well, for a (MTP) camera, digikam's action is the only one available I suppose.
Good.
No, those are not "linked to itself". But a link in KF5's location (that points to the actual file in KDE4's location) has been added to many openSUSE KDE4 application packages to make them show up in Plasma5. This has not been done for the digikam package yet for some reason, maybe an oversight. Inserting a CD/DVD should make the device notifier popup in any case though, and it should be shown in the Places panel. Your dolphin is still KDE4 based anyway, so at least that problem is definitely unrelated to Plasma5.
That was just a suggestion.
Thanks for the info. Do you think these actions should be automatically transferred when an update from KDE4 to Plasma is done?
No. /usr/share/ normally only contains files installed by packages anyway, there's no "automatic transfer" needed nor does it make sense. The user settings in ~/.kde4/share/apps/solid/ are a different matter though, I'm not sure whether they are migrated or not, but I'd rather think not. Although most users probably won't have any at all I guess... If you install the KF5 based digikam version (hasn't been released yet, so it is only available from KDE:Unstable:Extra), it will install the action to the correct (for KF5) directory anyway. Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Thursday 04 Jun 2015 17:55:05 Wolfgang Bauer wrote:
If i do a "readlink <directory>/filename" it just returns the filename, it doesn't show a target directory name. I have now renamed the "/usr/share/solid/actions" directory, created a new "/usr/share/solid/actions" directory and copied all the files from the "/usr/share/kde4/apps/solid/actions/" into the new directory. The "Device Notifier" now recognises the CD-R and DVDs.
Kind Regards, Wolfgang
Looks like the lining of the "/usr/share/solid/actions" files got all screwed up during the when i installed Plasma 5.3 over KDE4. Thanks for your help as always. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am Donnerstag, 4. Juni 2015, 18:23:39 schrieb ianseeks:
I don't think there should be any change between KDE4 and Plasma5 regarding this. But again, I never used such a camera. Check that you have kio_ktp5 installed. IIUYC, you copied KDE4's solid_mtp.desktop file to Plasma5, that doesn't work, as you still miss the mtp: kio slave.
Why? You replaced the KF5/Plasma5 files with KDE4's now. Probably not a good idea. And you'll get the originals back when installing updates. An Audio CD is indeed not shown if there are no device actions defined. The Packman k3b package doesn't symlink them to /usr/share/solid/actions/, so they are missing in Plasma5, the standard k3b package in Tumbleweed does though. So install that, or symlink/copy the files manually. A data CD does show up fine though, as you can "Open with file manager" (or mount it) in any case. But again, I think that KDE4 probably had exactly the same behavior. I have yet to try it though...
Ok, it doesn't popup if it is hidden. But how should it if it is hidden? If there are devices available, it should not be hidden though. Did you hide it yourself in the system tray settings? Why not just set it to "Auto"? But again, KF5 solid device actions should not really have an influence on dolphin, in particular the KDE4 version.
Looks like the lining of the "/usr/share/solid/actions" files got all screwed up during the when i installed Plasma 5.3 over KDE4.
Hm? You did not install Plasma5.3's /usr/share/solid/actions file "over" KDE4's, as they are in completely different directories. But I don't fully understand what you mean with that sentence anyway... Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am Donnerstag, 4. Juni 2015, 21:59:04 schrieb Wolfgang Bauer:
Sorrym kio_mtp5 doesn't exist any more. The mtp kio slave is part of kio- extras5 now, which should be installed in any case because it is required by plasma5-workspace. Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Thursday 04 Jun 2015 23:16:00 Wolfgang Bauer wrote:
Thanks, was just about to check that.
Kind Regards, Wolfgang
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Thursday 04 Jun 2015 21:59:04 Wolfgang Bauer wrote:
Kind Regards, Wolfgang
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
ianseeks
-
Raymond Wooninck
-
Wolfgang Bauer