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

  • toothbrush@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    11
    ·
    5 months ago

    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
      link
      fedilink
      arrow-up
      10
      ·
      5 months ago

      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.mlOP
        link
        fedilink
        arrow-up
        4
        ·
        5 months ago

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

        • QuazarOmega@lemy.lol
          link
          fedilink
          arrow-up
          5
          ·
          5 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
      link
      fedilink
      arrow-up
      7
      ·
      5 months ago

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

    • MrOzwaldMan@lemmy.mlOP
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      5 months ago

      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.