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

  • MrOzwaldMan@lemmy.mlOP
    link
    fedilink
    arrow-up
    5
    ·
    8 months ago

    I’d recommend converting to Kotlin, which saves a lot on bureaucracy and IntelliJ can easily do

    I’d love to, but my mind, time, and energy is being spent on other studies.

    https://askubuntu.com/questions/431703/how-to-add-open-with-custom-command-option-in-right-click-menu-of-nautilus might have what you want

    Didn’t work, no new option appears after following the steps.

    Also, how’d you get the IntelliJ titlebar to work properly? In the new theme, I get two title bars on my machine.

    Easy, I made a .desktop file for IntelliJ and boom, no double title bars.

      • MrOzwaldMan@lemmy.mlOP
        link
        fedilink
        arrow-up
        2
        ·
        8 months ago

        Hmm, why the bold?

        to distinguish the quote from my reply

        Maybe try https://stackoverflow.com/questions/47235022/add-a-custom-option-in-nautilus-right-click-menu ?

        Will do, i’ll reply if it’ll work or not.

        What did you put in the .desktop file?

        I put the following:-

        [Desktop Entry]
        Name=IntelliJ Idea
        Comment=IDE
        Exec=/home/user/Programs/IntelliJ\ Idea/bin/idea.sh
        Icon=/home/user/Programs/IntelliJ Idea/bin/idea.svg
        Type=Application
        Categories=Development;
        

        basically

        [Desktop Entry]
        Name=<Name that will be seen in the start menu for whatever DE>
        Comment=<Just write anything here>
        Exec=<Your executable or shell application location goes here>
        Icon=<Any icon you want to use>
        Type=Application <this is default, no change here>
        Categories=Development; <There are many categories, they go here>
        

        For ‘Exec’ and ‘Icon’, type the absolute path for both em like the example. As for categories, here they are below:

        • Audio
        • Video
        • Development
        • Education
        • Game
        • Graphics
        • Network
        • Office
        • Science
        • Settings
        • System
        • Utility
        • Other
        • Aatube@kbin.social
          link
          fedilink
          arrow-up
          2
          ·
          8 months ago

          I already have a normal desktop file like yours. I don’t see how replacing it with yours would provide any benefit as the execution arguments are all the same. I guess you won’t be able to help me then.

        • simonced@lemmy.one
          link
          fedilink
          English
          arrow-up
          2
          ·
          8 months ago

          That sample text file, you can save it in the “Template” folder in your home folder, and then you can create a new file from that template with the right click menu > new entry :)