UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. adeliepenguin
    3. Best
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 1
    • Posts 25
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: How to open a .txt file that I copy from PC to FP2 with UT? [Solved]

      @AppLee said in How to open a .txt file that I copy from PC to FP2 with UT?:

      @Opolork
      The files created with Tedit can be found there : ~phablet/.local/share/tedit.fulvio/
      You can access it with the file manager and move or copy them wherever you want.

      I am doing the same, but mostly from the terminal (copying to/from USB). I took the liberty to create myself a short-cut (~phablet: ln -s /.local/share/tedit.fulvio/ MyTextFiles)

      The file manager (in unlocked mode) displays the symlink "MyTextFiles" as if it was a directory, so you don't have to navigate the full path every time.

      But if (as your title suggest) you want the other way around, I'm not sure if Tedit can handle it... but I didn't read the code, so maybe.

      I have copied many a text file to tedit's directory. From there, it can open them alright (settings icon / open / select a file by touching it / swipe to the left, click the "edit" icon).

      I'm very glad about tedit, it has proven to be really helpful to me. It stores plain text that I can re-use later any time, anywhere. I tried the Note app first, but it's actually storing XML (~phablet/.local/share/com.ubuntu.reminders/); fine for what it is, but not what I need.

      BTW, I got really skilled at using vi with the on-screen keyboard, I don't need any other games. 😉
      (explanation: I'm using "view" aka "vi -R" when I want to read a config file, since "less" seems to mess up the terminal, and "cat" isn't always an option. Maybe I could start using uText for that like @Giiba mentioned. Since the root file system is read-only, no risk messing up.)

      posted in Support
      adeliepenguinA
      adeliepenguin
    • RE: file manager authentication

      @dtarrant I noticed the same on my phone:
      (0) Both file manager and terminal grant full access without asking for a password. Some update must have brought this (last time I am sure it worked was in December). I suppose this is a bug, maybe in another component.

      Here's what I observed:
      (1) I used to have no system password / PIN on this phone, just the default, and both apps would ask to be unlocked. Now that I suddenly have full access without being asked,
      (2) I set my own PIN and locked the screen. After unlocking, both apps work as expected, asking me to unlock. (Just setting a PIN without locking the screen had no effect on the apps. Of course, I closed each app before the next try.)
      (3) Even after removing the PIN again (but not lock/unlock), they still keep asking and grant access upon entering the default PIN.
      (4) after screen lock/unlock with a swipe, I am back to (0).
      So I guess the bug is not in these two apps, but on a more basic level. The modus of file manager and terminal seems to depend on whether the screen has been unlocked with a PIN or a swipe before. Did others observe the same?

      posted in Support
      adeliepenguinA
      adeliepenguin
    • RE: How to open a .txt file that I copy from PC to FP2 with UT? [Solved]

      @Opolork said in How to open a .txt file that I copy from PC to FP2 with UT?:

      So this is correct to be run from the home folder?

      ln -s ~/.local/share/tedit.fulvio/notes.txt ~/Downloads/notes.txt
      

      Yes, that's correct syntax. (I forgot the ~ in my post. And the -s is required if you want a symbolic link like in my example. Without any options, ln on my UT system creates a hard link. That's a different story.)

      In the terminal, you can look at the result with ls:

      ls -l ~/Downloads/notes.txt
      

      The output shows that notes.txt in the Downloads folder is not a file, but a symbolic link, pointing to your notes.txt file in its original place.

      Most programs will follow the symlink and access the actual file. File manager does a good job on this. (It lets me open the referenced file with another app, but when I have it delete the symlink, it correctly removes the link only and keeps the file untouched.)

      However, I'm not sure whether you can access your notes.txt via the PC that way. Exporting only those special folders is a security feature, so following symlinks might be prohibited. Let us know how it turns out.

      posted in Support
      adeliepenguinA
      adeliepenguin