[00:00] you should be able to set everything up via "ibus-setup" [00:01] Ok, thanks === brainwash_ is now known as brainwash === pavlushka_ is now known as pavlushka [13:13] howdy [13:38] Hi! I'm trying to run a command as a shortcut to open a .jar file, and it opens a window in Terminal, but it never runs. [13:42] xubuntu61w: and the command is? [13:53] drum roll :) [13:53] Oh sorry, wasn't here. Here's the command: [13:54] java -jar RuneLite.jar --mode=OFF [13:54] so when you run it in terminal it works? [13:55] Yes, as long as I'm in the same directory as the file. [13:55] make a .desktop file with: Exec = sh -c "cd /path/to/directory && java -jar RuneLite.jar --mode=OFF" [13:57] What does that do exactly? It marks the shortcut as an executable, it goes to the same directory as the file is in, and then runs it? [13:57] yes but in that .desktop file you have to include some other info [13:58] What else is necessary? [14:00] xubuntu61w, wait [14:00] i will give you the info [14:00] Aight. [14:03] ok run: touch ~/.local/share/applications/myjava.desktop [14:03] tell me when done [14:05] Do I add that in Terminal or the shortcut? [14:05] yes in terminal [14:05] run that command [14:06] I did that, it didn't show anything else. [14:06] now run: mousepad ~/.local/share/applications/myjava.desktop [14:06] it will open a document [14:06] Yeah, it ran a blank text file. [14:06] opened* [14:07] into that document [14:07] you paste the following: [14:07] https://paste.ubuntu.com/p/mYx9fMxD8K/ [14:07] BUT instead of /path/to/directory you write your actual path to the application [14:09] Terminal is showing this: https://paste.ubuntu.com/p/Fs2jP4NRvc/ [14:10] you paste that into the blank document [14:10] save and close the document [14:11] Done. [14:11] ok now run: cat ~/.local/share/applications/myjava.desktop | nc termbin.com 9999 [14:11] share the link here [14:14] https://termbin.com/iyzt [14:15] ok now to double check if it works, in a new terminal run this: cd /home/andre/Downloads/ && java -jar RuneLite.jar --mode=OFF [14:15] and tell me if it starts your game [14:17] Yeah, it's working now. [14:17] ok close the app, and in the terminal run: chmod +x ~/.local/share/applications/myjava.desktop [14:17] tell me when done [14:18] Done. [14:18] now open the menu and look for My Java App [14:18] start it [14:18] it should be in Games [14:19] Yeah, it's running. [14:19] great, one more thing, if you want a custom icon for it, you just change Icon = xfce4 to Icon = /path/to/myicon.png [14:20] Good to know that. By the way, what is the proper directory for those kind of apps. I know on Windows it is Programs and then either x84 or AMD64. [14:21] But which is it on Linux? [14:21] you can store it in /home/$USER/bin [14:22] but as well as anywhere else, i'd usually make a special folder in ?Documents [14:22] /Documents* [14:24] It's working now, thanks! But how did you learn all of those things? [14:24] you're welcome, 5 years of linux only :)) [14:25] of course i was helped by other people and i always took notes of all the useful commands so i recomment you to take notes too [14:25] I've been running Linux for nearly a year, without counting on and off, I still find the commands rather daunting. [14:25] It's a bit difficult understanding how they get put together. [14:25] the "best" way to replace icons is to create your own icon theme in ~/.icons, and within that, inherit the "real" icon theme you want to use [14:26] all the stuff we have done in the terminal, you could have done without terminal, just clicking on things, but i find terminal way faster [14:26] this isn't the most trivial way, but this way the customization is portable and you don't have to worry about other packages updating/overwriting the .desktop files [14:26] of course you can create those .desktop files in your ~ too, but then you lose all the potential updates to those [14:27] (not that this is a huge issue, but... if you're replacing more icons, the custom icon theme way starts paying off quickly) [14:28] Where's icon's folder btw? [14:29] ~ = /home/youruser/, so the ~/.icons directory is /home/yourusername/.icons [14:29] it might not exist; simply create it in that case [14:30] creating the icon theme itself is the not-so-trivial part [14:30] in that directory, create a subdir for your theme [14:31] then in that subdir, create a file called index.theme, and populate it with something like this: https://paste.ubuntu.com/p/V4SK9j43Ht/ [14:31] note that in this theme i'm only replacing emblems, and you'll need to list the directories you wish to replace icons in [14:32] after that it's mostly providing icons of the correct name (see examples from themes in /usr/share/icons) in the listed directories [14:32] I'm getting a bit confused now. Can't I do "Edit Application" and then add the icon file from there? [14:33] yes, you can do that too. [14:33] Does it read .ico files? Because I can't select this one. [14:34] i'm not sure, but if it doesn't read.. then likely not [14:35] Btw, which is the default icon resolution on Xubuntu? [14:35] various optimized resolutions are provided. [14:36] So if I can, I should just download them all then? [14:37] if you are replacing an icon with a custom one, you can only select one size; in this case i would suggest you use the biggest possible size (and in vector, if possible) [14:42] SVG, for example? [14:46] yes [14:47] Aight, I'll be on my way now, if I need anything else I'll just check it out. While Linux has its own quirks, you eventually get used to the way things are done. [14:48] Thanks! [14:52] indeed. good luck and have fun :) [14:52] and no problem! [21:03] I'm experiencing a strange behavior of Window Buttons on Cosmic recently, sometimes it doesn't update tight away and the buttons a [21:04] sorry [21:04] have a space between them, see here -> https://i.ibb.co/2PLfBf7/panel-refresh.png [21:04] is that a known issue? [21:05] after a few seconds it refreshes and it's ok again [21:08] Spass: https://bugzilla.xfce.org/show_bug.cgi?id=14627 [21:08] bugzilla.xfce.org bug 14627 in Window Buttons "Panel window buttons stop updating" [Normal,New] [21:09] thanks, will look at that === dreamon_ is now known as dreamon