KDE

Zamundaaa , in Install updates from Discover without password ?

Yes, and many distros have a polkit rule set up to allow installing or updating without a password. You can likely just copy it from Fedora or sth

KaKi87 OP ,
@KaKi87@jlai.lu avatar

Could you please elaborate on that ? Thanks

Zamundaaa ,

Fedora just has

polkit.addRule(function(action, subject) {
    if ((action.id == "org.freedesktop.packagekit.package-install" ||
         action.id == "org.freedesktop.packagekit.package-remove") &&
        subject.active == true && subject.local == true &&
        subject.isInGroup("wheel")) {
            return polkit.Result.YES;
    }
});

in /usr/share/polkit-1/rules.d/org.freedesktop.packagekit.rules. If you put the same file in there, it should work.

MajinBlayze , in Install updates from Discover without password ?

For flathub packages, you could switch to user installs instead of system. Settings, then click the up arrow next to flathub (user) (if it's configured, otherwise you'd have to add it)

It will prevent multiple users from being able to use the same installation of packages, but if you're the only user if the machine it doesn't really matter

KaKi87 OP ,
@KaKi87@jlai.lu avatar

Yes but APT packages are the ones requiring the password. Thanks

MajinBlayze ,

Yeah, I don't think there's any getting around that. Apt package modify the system, and by nature require elevated permissions.

boredsquirrel , in Install updates from Discover without password ?

Without telling your distro this question is not helpful.

Discover uses packagekit, an abstraction layer that can do things like install, update, remove on many different distros.

So this might be distro-independent, but maybe not.

Try to enter in the terminal pkcon upgrade and if a GUI password prompt pops up, click on "expand" and see the action that is used like org.somenama.packagekit_update

This GUI prompt might also already be the one you described

https://github.com/boredsquirrel/Linux/tree/main/polkit

KaKi87 OP ,
@KaKi87@jlai.lu avatar

Sorry I thought that Discover was only used on KDE neon, which thefore is the distro, and the CLI equivalent is indeed the one you mentioned.

So what's the solution for this distro ?

Thanks

boredsquirrel , (edited )

I used Neon for a while. Again, can you please give the needed information. If the password dialog shows, at the left click on "expand"/"show more" and you see the exact action that is executed.

Then have a look at the rules in my linked repo, and replace the action in "libvirt" with that, and the group with "wheel"

(Use groups and send me the output, no idea if the sudo users are in the sudo group on Ubuntu)

Then send that rule, embed it in

```
Rule
```

To format correctly. I look at it and if it is correct, we go on.

minecraftchest1 ,
@minecraftchest1@social.opendesktop.org avatar

@boredsquirrel
You need to create a polkit rule that allows authentication without password. I will see if I can send an example your way sometime this comming week.
@KaKi87

boredsquirrel , (edited )

I have examples in the repo I linked

polkit.addRule(function(action, subject) {
  if action.id == "org.freedesktop.packagekit.system-update" {
    if subject.isInGroup("wheel") {
      return polkit.Result.YES;
    }
  }
});

Please ask KDE Neon devs, if placing this rule as /etc/polkit-1/rules.d/packagekit-update.rules is safe

KaKi87 OP ,
@KaKi87@jlai.lu avatar

I don't have a rules.d directory at /etc/polkit-1/ though, I only have localauthority and localauthority.conf.d.

Should I create the directory then create the file ?

Thanks

boredsquirrel ,

Please ask KDE Neon devs.

Discuss.kde.org

Or file a bug on bugs.kde.org

minecraftchest1 ,
@minecraftchest1@social.opendesktop.org avatar
KaKi87 OP ,
@KaKi87@jlai.lu avatar

org.freedesktop.packagekit.system-update

Thanks

boredsquirrel ,

That was only one of the requested info. But I edited the rule.

Mikufan , in Install updates from Discover without password ?
@Mikufan@ani.social avatar

Set the password to Password1! Basically the same.

therealjcdenton , in Install updates from Discover without password ?
@therealjcdenton@lemmy.zip avatar

Yes but the only way I know is to make your whole system use no password
Do sudo visudo and change the line
%wheel ALL=(ALL:ALL) ALL
To
%wheel ALL=(ALL:ALL) NOPASSWD: ALL
and make sure you are in the wheel group you can check by doing groups | rg wheel
If not add yourself via
sudo passwd --add $USER wheel
Then edit the file ~/.config/kdesurc to be
[super-user-command]
super-user-command=sudo

This is a massive security risk but hey windows let's you do admin stuff without a password as well

boredsquirrel ,

Many Distros use polkit instead of sudo actions. Though many sudo actions dont have polkit rules.

nieminen , in KleverNotes Version 1.0 official release

Anyone familiar with obsidian and have also used this? Any comparisons you can make?

louis_sch OP ,

Based on you use of Obsidian this might change

If you don't use some crazy Obsidian plugin the biggest change is the folder structure, which wil change to be less strict in the future

lemmytellyousomething , in KleverNotes Version 1.0 official release

I'm not against one more md note taking app and I like KDE, but do we really need one more?

Are there major differences planned compared to Joplin?

klangcola ,

directly reflected on your system in the hierarchy of your KleverNotes storage folders.

This is a big deal. Joplin is great, but its database structure is horrible for interoperability.

Hopefully Klevernotes will also be more snappy and "native feeling". Joplin being Electron can be a bit sluggish sometimes ( which is mildly infuriating given that the database structure was chosen over plain files due to "performance").

That said, it be nice if Klevernotes was a WYSIWIG editor. There really are a lot of dual-view markdown editors with a preview. For generel notes / productivity I find the dual view distracting, but need the preview for images etc

penquin ,
@penquin@lemm.ee avatar

I thought we already had a note taking app for plasma?

louis_sch OP ,

Not from KDE

I tried it before creating Klevernotes, and it was just to much for me. I would like to make an alternative that look and feel simpler, while keeping the power.

But if QOwnNote is good for you, that's cool

penquin ,
@penquin@lemm.ee avatar

Makes sense.

louis_sch OP ,

"WYSIWYG like" editor is the next step

Not full richtext mode, but something similar to Marktext

klangcola ,

*Happy noises* :)

And I see there's a plugin for cross-linking between documents! More happy noises :)

And a nightly flatpak build :) Thanks for making it so easy to try out!

louis_sch OP ,

It's normal! I want people to try it out and give me some feedback ;)

KaKi87 ,
@KaKi87@jlai.lu avatar

I was going to ask about exactly that, I'm very much looking forward to it, thanks !

louis_sch OP ,

You might not need one more, but I'm having fun making it and the work is here, so why not sharing it

Next step is "WYSIWYG like editor"
And the addition of different Plugins

AusatKeyboardPremi ,

Joplin’s storage model made me stop using it.

Managing plain text notes should not be this convoluted.

lemmytellyousomething ,

I'm not a fan of the bloated plain text md files either. But I had not found a FOSS alternative that offers all the other features, like Android apps, pencip drawing support on tablets, the E2E encrypted sync between devices via a central server, ...

some_guy , in KleverNotes Version 1.0 official release

Looks nice from the screenshot. Very clean.

louis_sch OP ,

Thanks you !

I want it to look nice and easy to use while keeping some power under the hood ;-)

anime_ted , in KleverNotes Version 1.0 official release

Maybe an edge case, but playing around with this I notice that if I create an ordered list at the same level directly after an unordered list, the preview displays it as an unordered list. This doesn't seem to happen if there is a separator between the two or if the ordered list is indented. Is this expected behavior or is it worthy of an issue?

louis_sch OP ,

Just to be sure

Create an issue with the list sample so I can try it out by myself, it will be easier to debug ;-)

anime_ted ,

Done. Thanks!

graphito , in KleverNotes Version 1.0 official release
@graphito@beehaw.org avatar

In the future, if you plan to add sync, consider reimplementing Joplin sync algorithm

That would give you tens of thousands of passionate users, dedicated FOSS server as well as webdav/s3/dropbox/onedrive client sync ability, webclipper and a lot of support to navigate future issues/roadmap

If you ever decide to do that, there's even a plan to repackage the algorithm as a standalone library

louis_sch OP ,

My first plan is to add NextCloud Note sync

But if the two are compatible let's go for it ! Thanks for sharing this

ChaoticNeutralCzech ,

Yeah, I'm using Joplin over Nextcloud and it would absolutely be compatible, the Markdown syntax is the same after all.

louis_sch OP ,

I'm not to much worried about the syntax, KleverNotes follows Common Mark, so as long as the other app follows it too (which it should) this part is okay

I'm more worried about directory structure and things like that, but I'll have to read more about both API before I can really say anything concrete on this subject

By the way, if you have something in Joplin that you really can't live without, let me know, I'm always looking for pottential features :)

Rustmilian , in KleverNotes Version 1.0 official release
@Rustmilian@lemmy.world avatar

Is this why Kate dropped Markdown previews?

edinbruh , in KleverNotes Version 1.0 official release

Does it support KaTeX math, git integration, and spell checking? I'm using vscode for note taking but it's slow and power hungry

louis_sch OP ,

Math integration is something I want, hesitant between Katex and ASCIIMATH, but there's no such thing currently

Technicaly no git integration, as in, there's no way to "git add/commit/Push" directly from the app, but you can style do it. Your notes are saved inside a folder, you can see the path directly from the settings, so you can technicaly use git on it. I personnaly use syncthing

No spell checking, never thought about it, could be a cool feature, thanks for the idea

edinbruh ,

Well, I'm biased because KaTeX is load bearing to my use case. But I would argue that it:

  • Is more powerful
  • Is an introduction to LaTeX (which is an industry standard)
  • It's ubiquitous

You could consider using mathjax instead of KaTeX which should render both latex math and asciimath, (and should be better in general).
If you had unlimited resources (which I guess you don't) it would be cool if you made the math language into a setting.

For git, other than the add and commit buttons, it would be useful to have a "git gutter" which shows changes from the last commit. Which is the only git integration feature that you can't get away with external tools.

For spell checking, even just pulling in some dictionary, like the ones in vscode's cspell extension and having a basic dictionary check is much better than nothing.

louis_sch OP ,

You make a good case for it!
But one thing that I also have to consider is the ease of implementing this into my C++ parser...

Right now I don't see how that would fit into the app to be honest, I'm not fully against the idea, but it would have to be nicelly integrated and I don't see how it would be (mostly in terms of UI/UX)

There's also KDE sonnet, I will have to look further into this, but that will most certainly be a future addition to the project!

minecraftchest1 ,
@minecraftchest1@social.opendesktop.org avatar

@edinbruh
Aspell should work for spellcheck.
@louis_sch

louis_sch OP ,

Will have to check it out, thanks

DmMacniel , in KleverNotes Version 1.0 official release

Does it support inline editing?

louis_sch OP ,

Can you be more precise ?

DmMacniel ,

Sure. I would like to know if this app allows to edit inside the rendered view. E.g. you click on a table cell and you get a caret to manipulate tect inside that cell. Something akin to a richtext editor.

louis_sch OP ,

No, there's currently nothing similar to richtext editing.

You edit your text inside the editor and it is renderer in the preview. You can toggle on/off one or the other.

I tried to make things easier with the editor toolbar. You can easily create table from it through a dialog similar to the one from richtext editor such as LibreOffice writter

Linus_Torvalds ,

To add on to that: Obsidian is the only program that currently has this (to my knowledge) and it is a huge gamechanger. It just feels so much more usable than anything with a source and preview view. [I'm not demanding or anything, this is the stuff you do in your freetime, but you might want to go down that road.]

louis_sch OP ,

A "WYSIWYG like" editor is currently in progress (next big update)

I don't want to go full richtext mode a la LibreOffice writter, it will be something similar as Marktext instead

You will still see the Markdown tag (e.g: the "#" in your heading) but with the possibility to style them in a way that make them pretty much dissapear when your note editing that part, and some nice color and font size for the important part, that would pretty much mimic the preview style ;-)

Linus_Torvalds ,

Sounds cool, where do I best keep up with the project? Is there some RSS feed?

louis_sch OP ,

RSS feed looks good but to be honest I'm completly clueless about it, never used one

I'm posting detailled update on KDE Discuss (see the "last update" link in this post) when I've made enough progress in my opinion
I think you can search them using the "klevernotes" tag

And I make Lemmy and Reddit post linking to those each time

Edit: and if you want to ask question, my dm on those platform are always open, or there's a Matrix channel (not super active, but I check it every day), the link is in the Readme of the project

Linus_Torvalds ,

Thanks, will check it out :)

DmMacniel ,

Sounds pretty great, is there a way to support this project and or you?

louis_sch OP ,

Thanks !

What do you mean by support ? :-)

DmMacniel ,

Code Contributions, donations, testing, moral support. I dunno.

louis_sch OP ,

If you have a KDE dev account and want to contribute, feel free to do so
But, obviously, if you want to work on a new feature, it would be better to first talk to me to see if this align with the general idea of the project

Donation, no need for money, unless you really love the project and absolutely want to give something to me. I'm just a student who want to share it's work to make it better :-D

Yes please, test the app, I'm always looking for constructive criticism !

And moral, I'm good, but thanks for asking !

DmMacniel ,

Well, I hadn't had a KDE dev account until now :)

hinterlufer ,

Have you looked at how Obsidian handles it? I think their solution is pretty much perfect. You have the markdown, you write wysiwym, but you only ever see the source when your cursor is in that specific line/part. Also for equations.

louis_sch OP ,

Yes that's pretty much the plan ;-)

And math support is wanted, I just need to check what would be best to do it

guillem ,
@guillem@aussie.zone avatar

If I understood it well, zettlr and trilium haves this too: you start a line with pound signs and it changes its appearance to that of a header.

limitedduck ,

Nextcloud also has this

vintageballs , in KleverNotes Version 1.0 official release

Can I sync it with Nextcloud notes?

louis_sch OP ,

Sadly not right now.
I'm not against doing it, I just need to figure out the API

magikmw ,

Probably can open your notes directory in the nextcloud sync dir and it'd work.

louis_sch OP ,

I don't have a Next Cloud instance but I don't see why this would not work :-)

Just need to walk the folder hierachy to your note

magikmw ,

It's how I sync my obsidian vault right now. Works well enough.

greencactus , in Appreciation post for Plasma 6 - My current experience with the Fedora 40 beta

Thank you - I'll try it out again. I had exactly the same feeling about KDE5 - too fractured, too inconsistent, too many weird options. GNOME just was more polished in that regard. But your post makes me hopeful that KDE 6 fixes these things :)

Overall I'm just happy that Linux has multiple competing DEs which often inspire each other and give great new design ideas. As long as we have GNOME, KDE, Cinnamon, Budgie, Pantheon etc., I will be happy. I have learned lots of things in regards to my design preferences (and about quality of design in general), and I'm glad knowing that I can switch DEs anytime. RIP for Windows/Mac users who don't have thus luxury.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • All magazines