linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

noddy, in I feel like I'm missing out by not distro-hopping

You can always distro hop inside a virtual machine if you have the time and nothing to do.

Scrath, in My move to wayland: it's finally ready

Unfortunately I still have some breaking bugs with wayland on my laptop.

Most notably big blue button (an open source video conference tool) refuses to connect when using firefox with wayland.

Firefox does not allow copying of urls in wayland if a certain setting is enabled in kde plasmas settings.

I cannot move views around or redock windows in eclipse.

Xilinx vivadi randomly crashes on wayland but not on X11.

Notably, aside from the url copying problem, most of those things will not be an issue for the typical user

FooBarrington, in [Fixed] Fedora 39 keeps rebooting when left idle for a long time

Is it possible that you’re on a different TTY? The login screen used in Fedora has some problems with using the correct TTY if you don’t use auto-login. If this happens again, try cycling through them, maybe your old session is still there.

Cwilliams, 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, 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

utopiah, in When do I actually need a firewall?

When you expose ports to the Internet. It’s honestly interesting to setup a Web server with the default page on it and see how quickly you get hits on it. You don’t need to register a DNS or be part of an index anywhere. If you open a port (and your router does forward it) then you WILL get scanned for vulnerabilities. It’s like going naked in the forest, you sure can do that but clothes help, even if it’s “just” again ivy or random critters. Now obviously the LONGER you run naked or leave a computer exposed, the most likely you are to get a bad bug.

Feathercrown,

Can confirm. As an example, I’m developing a game server that runs a raw socket connection over the Telnet port. Within 10 minutes of opening the port, I reliably get requests trying to use Telnet to enable command mode or login as admin. People are constantly scanning.

mvirts,

Ya. And sometimes hosting companies run active scans on customer machines. I get a crazy number of login attempts over ssh. I ❤️ fail2ban

toothbrush, 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!

MiddledAgedGuy, in Thinking about making the big switch – recommend me a distro!

Stick with your distro and try Gnome. Fedora is pretty high up there on the “just works” category.

skullgiver, 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, in Created a Java Application for Easy '.desktop' File Creation
@iuselinux@lemmy.world avatar

That’s quite useful i guess

neidu2, in Surface Laptop 3 running Kubuntu, such an improvement over what it was "designed" for.

When these launched they seemed interesting. I liked the concept, and they still do, but the biggest flaw was basing them on windows. I’ve seen windows on low-power devices before, and I’m not going through that again.

dingus, in My move to wayland: it's finally ready

I’m ignorant to all this, but I found that weirdly my mouse’s gesture features are broken on Wayland. So X11 it is then.

atzanteol, in When do I actually need a firewall?

If anything, a firewall only seems to provide extra precautions against mistakes made by the user, rather than actively preventing bad actors from getting in.

You say that like that isn’t providing value. How many services are listening on a port on your system right now? Run ‘ss -ltpu’ and prepare to be surprised.

Security isn’t about “this will make you secure” it’s about layers of protection and probability. It’s a “good practice” because people make mistakes and having a second line of defense helps reduce the odds of a hack.

treadful,
@treadful@lemmy.zip avatar

Security isn’t about “this will make you secure” it’s about layers of protection and probability. It’s a “good practice” because people make mistakes and having a second line of defense helps reduce the odds of a hack.

AKA Defense In Depth and should be considered for any type of security.

c0mbatbag3l,
@c0mbatbag3l@lemmy.world avatar

In the military when learning ORM we called this the “swiss cheese” theory.

The more layers of sliced swiss cheese, the fewer holes that go all the way through.

arthur, in Thinking about making the big switch – recommend me a distro!

Linux Mint. Works well and it’s friendly.

MrOzwaldMan, 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?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #