youtube.com

dephyre, to aww in Caracal laser noises
@dephyre@lemmy.world avatar

Setting this as my alarm.

Cwilliams, to linux in Created a Java Application for Easy '.desktop' File Creation

No offense, but why Java?

skullgiver,
@skullgiver@popplesburger.hilciferous.nl avatar

Easy to make, cross platform GUI toolkit.

I dislike the look of standard Java applications myself, but it still makes a lot of sense for a quick form based application like this.

vredez,

Why do you need cross platform availability, if .desktop files are (mostly) Linux only?

skullgiver,
@skullgiver@popplesburger.hilciferous.nl avatar

I believe some BSDs use it too, and WSL2 will make Linux applications automatically appear on Windows, so editing desktop files may be useful there too. Plus, you don’t need to deal with different architectures (aarch vs amd64).

vredez,

Alright, but maybe take a look into something like Zenity. The task done by your tool doesn’t really justify installing a huge JRE, when a simple bash script would suffice.

skullgiver,
@skullgiver@popplesburger.hilciferous.nl avatar

I didn’t make the tool, I merely answered a question.

Had I wanted to develop such a tool myself I probably would’ve gone Python + Qt6 or used some Rust GTK wrapper, or maybe dust off Gambas if all I want it a a few buttons and text fields.

Blaiz0r,

Write with what you know

ulkesh,
@ulkesh@beehaw.org avatar

Because despite the popular bandwagon belief, there’s nothing wrong with using Java. It’s just a tool, like so many others.

This is like saying, “Why that Philips head screwdriver? Why not this other Philips head screwdriver?”

MrOzwaldMan, (edited )

Because that’s what I learned from Uni, didn’t want that skill to go to waste. I was thinking about how it would be easier to make the apps (plain applications that use executables and shell to run) .desktop file without any hassle (for new Linux users).

Also, Python was two semesters ago, so I forgot all about it.

isVeryLoud,

Learn Kotlin, it’s adjacent and better.

QuazarOmega, to linux in Created a Java Application for Easy '.desktop' File Creation

That’s neat

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

Right clicking where exactly? If you mean the desktop, then I imagine you’ll likely need a GNOME Shell or Nautilus extension

MrOzwaldMan,

An application and programs that use shell as their application, for example, IntelliJ IDEA use ‘idea.sh’ to run the IDE, so it would be useful for people to right-click and just create the ‘.desktop’ file right away.

QuazarOmega,

Yes, but on what environment are you going going to right click in? The desktop? The file manager?
That’s what I’m asking

MrOzwaldMan,

File managers, because that’s where the applications are. As for desktop, I will give the option for that one or more users who do that.

QuazarOmega,

I see, then yes, as others have suggested the Nautilus extension is what you’re looking for

toothbrush, to linux in Created a Java Application for Easy '.desktop' File Creation
@toothbrush@lemmy.blahaj.zone avatar

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.

ScottE,

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

MrOzwaldMan, (edited )

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.

toothbrush,
@toothbrush@lemmy.blahaj.zone avatar

Yes, it works with any command.

leopold, (edited )

For KDE right click menus, you need to use service menus: 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: docs.kde.org/trunk5/en/…/useractions.html

yianiris,
@yianiris@kafeneio.social avatar

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

QuazarOmega,

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,

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

QuazarOmega,

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!

skullgiver, to linux in Created a Java Application for Easy '.desktop' File Creation
@skullgiver@popplesburger.hilciferous.nl avatar

I believe this tool will allow you to register an action in nautilus for your desktop file.

MrOzwaldMan,

Does it allow java applications to be used as an ‘action’?

skullgiver,
@skullgiver@popplesburger.hilciferous.nl avatar

I don’t see why not. The example config file has a whole bunch of complex commands, far more than just the java --jar you need to run a Java application.

MrOzwaldMan,

Great! This is going to be my first time doing this, hopefully this comes to everybody’s machine as default.

iuselinux, to linux in Created a Java Application for Easy '.desktop' File Creation
@iuselinux@lemmy.world avatar

That’s quite useful i guess

MrOzwaldMan, to linux in Created a Java Application for Easy '.desktop' File Creation

How do I integrate gtk and qt, so both GNOME and KDE users can use this?

havuq, to star_wars in BETRAYAL - Star Wars: Order 66 Short Film (Seriously it's really good)

Thanks for sharing. Good stuff, hadn’t seen that one

Waldowal, to star_wars in BETRAYAL - Star Wars: Order 66 Short Film (Seriously it's really good)
@Waldowal@lemmy.world avatar

Very well done. The trooper voices sound exactly like Temuera Morrison. Enough so I’m wondering if this will attract a legal issue.

Blaze, to star_wars in A Disturbance in the Force - Official Trailer (2023) Seth Green, Weird Al Yankovic
@Blaze@discuss.online avatar

Weird al Yankovic, now that’s a name I hadn’t heard in a long time

FenrirIII,

He has a biopic on Hulu.

Ultragramps,
@Ultragramps@lemmy.blahaj.zone avatar

The 2022 movie just won 2 Emmy awards and was nominated for 6 others.

light_mnemonic, to star_wars in A Disturbance in the Force - Official Trailer (2023) Seth Green, Weird Al Yankovic

Damn. Any idea what platform it’ll premiere as a basic option on? I assume it’s premiering as rent/own on Amazon?

Ultragramps,
@Ultragramps@lemmy.blahaj.zone avatar

Yarr. Some say there’s a map to the treasure.

khan_shot_1st,

Blu-ray is available already.

djsoren19, to star_wars in A Disturbance in the Force - Official Trailer (2023) Seth Green, Weird Al Yankovic

Gilbert Gottfried! Is this the last film he’ll be seen in?

Habahnow, to star_wars in Star Wars: Knights of the Old Republic 2: The Sith Lords, video by Warlockracy
1984, to star_wars in Star Wars: Knights of the Old Republic 2: The Sith Lords, video by Warlockracy
@1984@lemmy.today avatar

I really, really enjoyed this game. Being evil and gaining sith powers was so different and fun compared to other games at the time. The more evil you are in this game, the stronger you get in the force dark side.

0x4E4F, to linuxmemes in Average Linux user

That kinda looks like me though… wait… am I an average Linux user 🤔…

QuazarOmega,

Holy shit, Ryan Gosling uses Linux?

0x4E4F, (edited )

That kinda looks like Terry Davis, creator of TempleOS. I knew he looked familiar, just couldn’t remember who he reminded me of.

QuazarOmega,

Yes, it’s him, I was just pulling your leg for the “literally me” kind of comment
(btw, Terry is literally me (I am the best programmer that’s ever lived))

0x4E4F,

So… on what meds are you and why have you stopped taking them?

QuazarOmega,

Uhh, to follow God’s word?

0x4E4F,

Fair enough. Sooo… I guess I’ll go this way then…

siipale,

Probably an average. I think the above average types usually have a vim keybinding configured to send current buffer to CIA via curl so they don’t have to use bloated web browser for doing everyday task.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #