mmozeiko / RcloneBrowser

Simple cross platform GUI for rclone
https://mmozeiko.github.io/RcloneBrowser
The Unlicense
1.32k stars 415 forks source link

Issue with terminal on ARCH #57

Open rufuswilson opened 7 years ago

rufuswilson commented 7 years ago

When I click on Config..., I briefly see the screen flashing but the terminal window does not stay opened.

My ~/.profile file contains the following line: export TERMINAL=/usr/sbin/xfce4-terminal

I have also tried the following without success: export TERMINAL=/usr/sbin/xterm

In the command line, nothing appears. What can I do?

mmozeiko commented 7 years ago

What is your location of rclone? Do you have it set properly in RcloneBrowser? Do you use custom .rclone.conf location? Please check .config/rclone-browser/rclone-browser.conf file for rclone and rcloneConf settings under [settings] section.

What happens if you execute this in terminal? /usr/sbin/xfce4-terminal -e path/to/rclone config (append --config path/to/.rclone.conf if you use custom conf location)

ljubacanoa commented 7 years ago

I have exactly same issue, but in Cinnamon (gnome-terminal). How to solve it?

mmozeiko commented 7 years ago

Please answer the questions I asked above (replace xfce4-terminal with /usr/bin/gnome-terminal/gnome-terminal). And how are you settings TERMINAL variable? Is it set for same sessions in where you are launching RcloneBrowser?

ljubacanoa commented 7 years ago

1) I I did well command (/usr/sbin/gnome-terminal -e .config/rclone-browser/rclone-browser.conf), output is in new terminal window with red banner - There was an error creating the child process for this terminal - Failed to execute child process “.config/rclone-browser/rclone-browser.conf” (Permission denied). 2) export TERMINAL=/usr/bin/gnome-terminal

mmozeiko commented 7 years ago

After -e argument you should put path to rclone executable, then put space, and then word "config" (without quotes). Not path to RcloneBrowser config file.

What global settings have you set exactly? a) what is path to rclone? b) what is path to rclone.conf file? Do you have it in custom location or in standard one?

ljubacanoa commented 7 years ago

1) So, I set export TERMINAL=/usr/bin/gnome-terminal -e .config/rclone-browser/rclone-browser.conf Same problem keep on. 2) That is the path (standard).

mmozeiko commented 7 years ago

You need to set terminal only to executable, no arguments. export TERMINAL=/usr/bin/gnome-terminal If you use standard path to rclone.conf then don't put anything in preferences for config location.

ljubacanoa commented 7 years ago

That was (export TERMINAL=/usr/bin/gnome-terminal) 5 days ago and you wrote that I should to change it. So, it simply not working.

mmozeiko commented 7 years ago

Sorry, my mistake.

Just to confirm: 1) in preferences dialog you have full path to rclone location (/usr/bin/rclone or similar) 2) in preferences dialog .rcone.conf location is empty

Is that correct?

Now if you execute this in new terminal: TERMINAL=gnome-terminal path/to/rclone-browser Does config button work or not?

ljubacanoa commented 7 years ago

1) Yes. 2) Yes 3) TERMINAL=gnome-terminal /usr/bin/rclone-browser

mmozeiko commented 7 years ago

That probably means you put export TERMINAL=... in wrong place. I'm not sure I understand what you mean by "set such command in Menu". What menu are you talking about? Do you use bash? Put that export command at end of ~/.bashrc file. Then logout and login and try launching GUI again.

ljubacanoa commented 7 years ago

1) Your first and third paragraph states same think. My line is in ~/.bashrc file. BTW - I tried also in .bash_profile file (essentially same). 2) Menu, Desktop Launcher, Shortcut, .... - it is what I mean. P.S. Problem is obviously only in ARCH package (paths) and basically in permissions, as I think that your package looking for terminal in root (home) and not in user (home), but I could be wrong. You know, if your git package is extracted in Home, it can be launched without problem (that is why I think what I wrote to think),

mistical2008 commented 6 years ago

I just paste "TERMINAL=/usr/bin/konsole /usr/bin/rclone-browser" in rclone-brower shortcut (rclone-browser.desktop) in Exec section and it works. You may replace «konsole» with terminal you prefered. Sorry for my English.

actondev commented 6 years ago

having the same problem (kinda) - cause the fix people are saying here doesn't work.. otherwise the application works prefectly (shows the remotes/mounting/syncing and everyting)

Installed terminals

Producing the problem

Other info

Some quotes missing from https://github.com/mmozeiko/RcloneBrowser/blob/master/src/main_window.cpp#L295 ?

        p->setArguments(QStringList() << "-e" << GetRclone() << "config" << GetRcloneConf());

A single quotes before GetRclone and one after GetRcloneConf would fix it I suppose

daert commented 6 years ago

I solved the issue by changing the Exec parameter in the desktop entry. Try: Exec=bash -c "TERMINAL=gnome-terminal /usr/bin/rclone-browser"