Hey, everyone. I ran across a problem of some applications being unable to access any files that I have on external media such as a thumb drive. This is a problem for me because I do all my work on external media. For example, I have one thumb drive for writing and another identical one for backing that one up. I don't store any of my work files on my PC?s external hard drive for a few reasons. First, if Kubuntu ever gets buggy or crashes, I can just boot to my Kubuntu thumb drive and reinstall everything. I don't have to take any time out backing up my files. They?re already in external media, and I have two copies.
So that?s why it was a bit of a frustration when I installed a simple text editor I like named ?Leafpad? and I got this:
I don?t know why Leafpad has a problem with my external media, but I found a solution. I simply installed a fork program named Mousepad, which is the same program, except it?s able to access my external media, no problem.
However, the no access to external media bug hit me again. CherryTree is maybe the most important application that I run under Kubuntu. It's my note-taking program. I have numerous CT databases containing all of my Kubuntu install notes, notes on how to do things in applications like Gimp, outlines of story plots that I'm writing, etc., in CT. So to have this app unable to access my media would be a major problem, and this is an app I cannot replace with a fork. So I uninstalled CT from Discovery and reinstalled it via Flatpak. Problem solved! I don't understand why the Flatpak package gave CT the ability to access my media files while the other one didn't, but that's the case.
However, solving this problem this way caused another problem. For each of my applications that I use a lot, I install a keyboard hot key for it. It's really easy in Kubuntu by doing this:
System Settings ==> Shortcuts ==> Custom Shortcuts.
For most apps, I can simply put the name of the app under "Action" and that app then runs with whatever hot key I put in. For example, for the text editor, Kate, I simply put in:
kate
For LibreOffice writer, it?s slightly more complicated with:
libreoffice --writer
But with a Flatpak-based install, no way would it be that simple. I put a CherryTree shortcut on my desktop so that I could right click and choose "Properties" and see what command Flatpak set up for CherryTree. This is what I got:
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=cherrytree --file-forwarding com.giuspen.cherrytree @@ %f @@
However, when I put that into Action and specify my hot key, it does not work. I get a "no host name specified" error. Once again, installing via Flatpak is a little bit like making a deal with the Devil. It does a great job getting an app installed and guaranteeing it has all its dependencies and runs flawlessly, but there always seems to be a gotcha. For example, I then don't know where an app's config files are. They're not where the would be with a standard install. And now here I can't seem to get a simple hot key for CherryTree set up.
So it would seem I need to do one of two things:
1. Somehow figure out how to put in Flatpak's version of CherryTree's command into Custom Shortcuts.
2. Uninstall the Flatpak-based CherryTree and install it once again from the repository, but then figure out why it won't access my external media.
Either way, it would be nice to know why some apps have such a problem accessing my external media right out of the box.
Edit: Update
I found a PPA for CherryTree. Then I uninstalled the Flatpak one and replaced it with the PPA one from this code:
Now it both accesses my external media and the simple hot key command "cherrytree" works.
Thus, this has solved my problem, though I am still stumped as to why two installs from the Discover repository have yielded programs that run, but cannot access my external media. Any ideas?
So that?s why it was a bit of a frustration when I installed a simple text editor I like named ?Leafpad? and I got this:
I don?t know why Leafpad has a problem with my external media, but I found a solution. I simply installed a fork program named Mousepad, which is the same program, except it?s able to access my external media, no problem.
However, the no access to external media bug hit me again. CherryTree is maybe the most important application that I run under Kubuntu. It's my note-taking program. I have numerous CT databases containing all of my Kubuntu install notes, notes on how to do things in applications like Gimp, outlines of story plots that I'm writing, etc., in CT. So to have this app unable to access my media would be a major problem, and this is an app I cannot replace with a fork. So I uninstalled CT from Discovery and reinstalled it via Flatpak. Problem solved! I don't understand why the Flatpak package gave CT the ability to access my media files while the other one didn't, but that's the case.
However, solving this problem this way caused another problem. For each of my applications that I use a lot, I install a keyboard hot key for it. It's really easy in Kubuntu by doing this:
System Settings ==> Shortcuts ==> Custom Shortcuts.
For most apps, I can simply put the name of the app under "Action" and that app then runs with whatever hot key I put in. For example, for the text editor, Kate, I simply put in:
kate
For LibreOffice writer, it?s slightly more complicated with:
libreoffice --writer
But with a Flatpak-based install, no way would it be that simple. I put a CherryTree shortcut on my desktop so that I could right click and choose "Properties" and see what command Flatpak set up for CherryTree. This is what I got:
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=cherrytree --file-forwarding com.giuspen.cherrytree @@ %f @@
However, when I put that into Action and specify my hot key, it does not work. I get a "no host name specified" error. Once again, installing via Flatpak is a little bit like making a deal with the Devil. It does a great job getting an app installed and guaranteeing it has all its dependencies and runs flawlessly, but there always seems to be a gotcha. For example, I then don't know where an app's config files are. They're not where the would be with a standard install. And now here I can't seem to get a simple hot key for CherryTree set up.
So it would seem I need to do one of two things:
1. Somehow figure out how to put in Flatpak's version of CherryTree's command into Custom Shortcuts.
2. Uninstall the Flatpak-based CherryTree and install it once again from the repository, but then figure out why it won't access my external media.
Either way, it would be nice to know why some apps have such a problem accessing my external media right out of the box.
Edit: Update
I found a PPA for CherryTree. Then I uninstalled the Flatpak one and replaced it with the PPA one from this code:
Code:
sudo add-apt-repository ppa:giuspen/ppa sudo apt-get update sudo apt-get install cherrytree
Thus, this has solved my problem, though I am still stumped as to why two installs from the Discover repository have yielded programs that run, but cannot access my external media. Any ideas?
Comment