[00:00] <brainwash> you should be able to set everything up via "ibus-setup"
[00:01] <xubuntu24w> Ok, thanks
[13:13] <visone> howdy
[13:38] <xubuntu61w> 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] <brainwash> xubuntu61w: and the command is?
[13:53] <diogenes_> drum roll :)
[13:53] <xubuntu61w> Oh sorry, wasn't here. Here's the command:
[13:54] <xubuntu61w> java -jar RuneLite.jar --mode=OFF
[13:54] <diogenes_> so when you run it in terminal it works?
[13:55] <xubuntu61w> Yes, as long as I'm in the same directory as the file.
[13:55] <diogenes_> make a .desktop file with: Exec = sh -c "cd /path/to/directory && java -jar RuneLite.jar --mode=OFF"
[13:57] <xubuntu61w> 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] <diogenes_> yes but in that .desktop file you have to include some other info
[13:58] <xubuntu61w> What else is necessary?
[14:00] <diogenes_> xubuntu61w, wait
[14:00] <diogenes_> i will give you the info
[14:00] <xubuntu61w> Aight.
[14:03] <diogenes_> ok run: touch ~/.local/share/applications/myjava.desktop
[14:03] <diogenes_> tell me when done
[14:05] <xubuntu61w> Do I add that in Terminal or the shortcut?
[14:05] <diogenes_> yes in terminal
[14:05] <diogenes_> run that command
[14:06] <xubuntu61w> I did that, it didn't show anything else.
[14:06] <diogenes_> now run: mousepad ~/.local/share/applications/myjava.desktop
[14:06] <diogenes_> it will open a document
[14:06] <xubuntu61w> Yeah, it ran a blank text file.
[14:06] <xubuntu61w> opened*
[14:07] <diogenes_> into that document
[14:07] <diogenes_> you paste the following:
[14:07] <diogenes_> https://paste.ubuntu.com/p/mYx9fMxD8K/
[14:07] <diogenes_> BUT instead of /path/to/directory you write your actual path to the application
[14:09] <xubuntu61w> Terminal is showing this: https://paste.ubuntu.com/p/Fs2jP4NRvc/
[14:10] <diogenes_> you paste that into the blank document
[14:10] <diogenes_> save and close the document
[14:11] <xubuntu61w> Done.
[14:11] <diogenes_> ok now run: cat ~/.local/share/applications/myjava.desktop | nc termbin.com 9999
[14:11] <diogenes_> share the link here
[14:14] <xubuntu61w> https://termbin.com/iyzt
[14:15] <diogenes_> 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] <diogenes_> and tell me if it starts your game
[14:17] <xubuntu61w> Yeah, it's working now.
[14:17] <diogenes_> ok close the app, and in the terminal run: chmod +x  ~/.local/share/applications/myjava.desktop
[14:17] <diogenes_> tell me when done
[14:18] <xubuntu61w> Done.
[14:18] <diogenes_> now open the menu and look for My Java App
[14:18] <diogenes_> start it
[14:18] <diogenes_> it should be in Games
[14:19] <xubuntu61w> Yeah, it's running.
[14:19] <diogenes_> 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] <xubuntu61w> 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] <xubuntu61w> But which is it on Linux?
[14:21] <diogenes_> you can store it in /home/$USER/bin
[14:22] <diogenes_> but as well as anywhere else, i'd usually make a special folder in ?Documents
[14:22] <diogenes_>  /Documents*
[14:24] <xubuntu61w> It's working now, thanks! But how did you learn all of those things?
[14:24] <diogenes_> you're welcome, 5 years of linux only :))
[14:25] <diogenes_> 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] <xubuntu61w> I've been running Linux for nearly a year, without counting on and off, I still find the commands rather daunting.
[14:25] <xubuntu61w> It's a bit difficult understanding how they get put together.
[14:25] <knome> 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] <diogenes_> 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] <knome> 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] <knome> of course you can create those .desktop files in your ~ too, but then you lose all the potential updates to those
[14:27] <knome> (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] <xubuntu61w> Where's icon's folder btw?
[14:29] <knome> ~ = /home/youruser/, so the ~/.icons directory is /home/yourusername/.icons
[14:29] <knome> it might not exist; simply create it in that case
[14:30] <knome> creating the icon theme itself is the not-so-trivial part
[14:30] <knome> in that directory, create a subdir for your theme
[14:31] <knome> 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] <knome> 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] <knome> 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] <xubuntu61w> I'm getting a bit confused now. Can't I do "Edit Application" and then add the icon file from there?
[14:33] <knome> yes, you can do that too.
[14:33] <xubuntu61w> Does it read .ico files? Because I can't select this one.
[14:34] <knome> i'm not sure, but if it doesn't read.. then likely not
[14:35] <xubuntu61w> Btw, which is the default icon resolution on Xubuntu?
[14:35] <knome> various optimized resolutions are provided.
[14:36] <xubuntu61w> So if I can, I should just download them all then?
[14:37] <knome> 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] <xubuntu61w> SVG, for example?
[14:46] <knome> yes
[14:47] <xubuntu61w> 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] <xubuntu61w> Thanks!
[14:52] <knome> indeed. good luck and have fun :)
[14:52] <knome> and no problem!
[21:03] <Spass> 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] <Spass> sorry
[21:04] <Spass> have a space between them, see here -> https://i.ibb.co/2PLfBf7/panel-refresh.png
[21:04] <Spass> is that a known issue?
[21:05] <Spass> after a few seconds it refreshes and it's ok again
[21:08] <brainwash> Spass: https://bugzilla.xfce.org/show_bug.cgi?id=14627
[21:09] <Spass> thanks, will look at that