this post was submitted on 25 Jan 2024
69 points (88.8% liked)

Linux

48212 readers
2073 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Now, to make this appear when right-clicking. Any idea how I can achieve that?

you are viewing a single comment's thread
view the rest of the comments
[–] toothbrush@lemmy.blahaj.zone 11 points 9 months ago (4 children)

Don't most desktop environments already have this?

If you want to include this as an option when right clicking the desktop, you will probably need to patch this into the DE of your choice, however I think at least KDE has an option for custom right click actions.

[–] QuazarOmega@lemy.lol 10 points 9 months ago (1 children)

Don't most desktop environments already have this?

An environment agnostic tool isn't a bad thing though, it already exists as PinApp, though I'm guessing OP is doing this more as a learning project

[–] MrOzwaldMan@lemmy.ml 4 points 9 months ago (1 children)

Damn, i didn't know this existed. Welp, at least I know how to manipulate the system from code.

[–] QuazarOmega@lemy.lol 5 points 9 months ago

Don't be discouraged, doing something from scratch is always a great learning opportunity and even if this isn't the first iteration of such a tool there is room improvement, for instance, I don't think any of the tools that allow creation .desktop shortcuts interface with any context menu as yours would do in the future, so that could be a cool feature to show off!

[–] ScottE@lemm.ee 7 points 9 months ago

Yep, all desktop environments have this - whatever text editor is handy. :⁠-⁠)

[–] MrOzwaldMan@lemmy.ml 4 points 9 months ago* (last edited 9 months ago) (2 children)

I see, I didn't know KDE had that, does KDE allow java apps to be used as the right click action? As for GNOME, I'm still trying to figure it out.

Until then, I will post the link to the app in the future. It needs some beautification, and quality of life changes so you and the others can use it as you use sudo apt update and upgrade to update your PCs.

[–] leopold@lemmy.kde.social 3 points 9 months ago* (last edited 9 months ago)

For KDE right click menus, you need to use service menus: https://develop.kde.org/docs/apps/dolphin/service-menus/

These are used by Plasma and most KDE apps that deal with files.

Krusader has a more powerful system for this called UserActions, but they're exclusive to Krusader and afaik Krusader is also compatible with service menus, so these are much less portable: https://docs.kde.org/trunk5/en/krusader/krusader/useractions.html

[–] toothbrush@lemmy.blahaj.zone 2 points 9 months ago

Yes, it works with any command.

[–] yianiris@kafeneio.social 3 points 9 months ago

A window manager is enough with any customizable drop menu, can open a file manager of choice, create a folder or file, no desktop is needed.

worker ~/.Desktop

or whatever filemanager one is using

@toothbrush @MrOzwaldMan